dnsx Bulk DNS Resolution Methodology
- 攻击大类:C46 二进制漏洞利用与Pwn
dnsx is a high-speed DNS tool from ProjectDiscovery. Core advantages: multiple record types + automatic wildcard filtering + pipeline friendly.
Project URL: https://github.com/projectdiscovery/dnsx
Phase 1: Basic Resolution
# A record for a single domain
echo target.com | dnsx -a -resp
# bulk resolution
dnsx -l subdomains.txt -a -resp -silent
# multiple record types
echo target.com | dnsx -a -aaaa -cname -ns -mx -txt -resp
Phase 2: Subdomain Validation
# validate subdomain liveness
subfinder -d target.com -silent | dnsx -silent
# filter out wildcard domains
subfinder -d target.com -silent | dnsx -wd target.com -silent
# extract IP addresses
subfinder -d target.com -silent | dnsx -a -resp-only -silent | sort -u
Phase 3: Advanced Usage
# brute-force enumerate subdomains
dnsx -d target.com -w subdomains-wordlist.txt -silent
# custom DNS resolvers
dnsx -l domains.txt -a -resp -r 8.8.8.8,1.1.1.1
# PTR reverse resolution
echo 10.0.0.1 | dnsx -ptr -resp
# JSON output
dnsx -l domains.txt -a -resp -json -o results.json
# Control concurrency
dnsx -l domains.txt -a -t 200 -silent
Pipeline Integration
# subdomain → DNS resolution → IP deduplication
subfinder -d target.com -silent | dnsx -a -resp-only -silent | sort -u
# subdomain → DNS validation → HTTP liveness check
subfinder -d target.com -silent | dnsx -silent | httpx -silent
# CNAME extraction (for subdomain takeover detection)
subfinder -d target.com -silent | dnsx -cname -resp -silent