| Field | Detail |
|---|---|
| Summary | Actively enumerate DNS — zone transfers, subdomain brute, record lookups |
| Category | DNS enumeration |
| Phase | recon, enumeration |
| Interface | CLI |
| Platform | Linux |
| Licence | Open source |
| Docs | https://github.com/darkoperator/dnsrecon |
| Related | OSINT and recon, Nmap, ffuf and Gobuster |
Active DNS enumeration — zone transfers, record lookups, subdomain brute-forcing and reverse sweeps — to map a target's hosts and services. This is the hands-on, query-the-nameserver counterpart to the passive sources in OSINT and recon (crt.sh, Amass passive, etc.).
⚠️ Warning — Scope Zone-transfer attempts and subdomain brute-forcing are active queries against the target's (or its provider's) nameservers. Stay within the authorised scope.
Quick lookups (dig / host)
dig target.com ANY +noall +answer # grab common records at once
dig +short mx target.com # mail servers
dig +short ns target.com # nameservers (your AXFR targets)
dig +short txt target.com # SPF/DMARC/verification strings
dig -x 10.10.10.5 # reverse (PTR) lookup
host -t mx target.com ; host 10.10.10.5
Zone transfer (AXFR) — the classic quick win
dig axfr @ns1.target.com target.com # dump the ENTIRE zone if the NS allows it
host -l target.com ns1.target.com # same, via host
dnsrecon -d target.com -t axfr # tries AXFR against every NS automatically
A successful AXFR hands you every record in the zone (all subdomains, internal hosts, mail/infra) — always test it against each nameserver first.
dnsrecon (the all-rounder)
dnsrecon -d target.com # standard: SOA/NS/MX/A/AAAA/SRV/TXT + AXFR attempt
dnsrecon -d target.com -t brt -D subs.txt # subdomain brute-force from a wordlist
dnsrecon -d target.com -t rvl -r 10.10.10.0/24 # reverse-lookup a range
dnsrecon -d target.com -t std -j out.json # JSON output for reporting
dnsrecon -d target.com -t zonewalk # NSEC zone walking (DNSSEC)
-t type |
What it does |
|---|---|
std |
Standard record enumeration + AXFR attempt |
brt |
Brute-force subdomains (-D <wordlist>) |
rvl |
Reverse lookup over a range (-r) |
axfr |
Zone-transfer attempt against all NS |
zonewalk |
Walk NSEC records on DNSSEC zones |
dnsenum & fierce
dnsenum --enum target.com # records + AXFR + Google scrape + brute
dnsenum -f subs.txt -r target.com # recursive brute from a wordlist
fierce --domain target.com # finds NS, tries AXFR, brutes subdomains, reverse-sweeps neighbours
fierce --domain target.com --subdomain-file subs.txt
fierce is good at finding non-contiguous IP blocks: it reverse-resolves the IPs around hosts it discovers, often surfacing extra infrastructure.
Wordlists
/usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt
/usr/share/seclists/Discovery/DNS/bitquark-subdomains-top100000.txt
/usr/share/dnsrecon/namelist.txt
Worked example
dnsrecon -d target.com -t axfr || dnsrecon -d target.com -t brt \
-D /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt
Try a zone transfer first (if it works, you get everything instantly); if the nameservers refuse it, fall back to subdomain brute-forcing with a SecLists wordlist. Discovered hostnames become scan targets for Nmap and web targets for ffuf and Gobuster.
Kill-chain usage
Recon
dig +short ns target.com # find the nameservers
Enumeration
dnsrecon -d target.com -t axfr # attempt a zone transfer
Where it fits
Early active recon: expand one domain into a full host/subdomain list before scanning. Pair with the passive side in OSINT and recon (subfinder/amass/crt.sh — no packets to the target) for coverage, then resolve live hosts and hand them to Nmap. nmap --script dns-* and dnsx are lightweight in-pipeline alternatives.