Skip to content

dnsrecon

10 commands

A DNS enumeration script: record retrieval, zone transfers, subdomain brute forcing, reverse lookups, SRV discovery and certificate-log harvesting.

  • DNS
  • enumeration
  • recon
  • subdomains

Install dnsrecon

sudo apt install dnsrecon

Standard enumeration3

dnsrecon -d <domain>

Default scan: SOA, NS, MX, A, AAAA, SRV and TXT records, plus a zone-transfer attempt.

Link
dnsrecon -d <domain> -a

Also tries AXFR zone transfers against every name server.

Link
dnsrecon -d <domain> -n <server>

Uses a specific resolver.

Link

Brute forcing3

dnsrecon -d <domain> -D <wordlist> -t brt

Brute-forces subdomains from a wordlist.

Link
dnsrecon -d <domain> -t std,brt -D <wordlist>

Combines standard enumeration with brute forcing.

Link
dnsrecon -d <domain> -t srv

Enumerates common SRV records (LDAP, Kerberos, SIP, autodiscover) — useful for finding AD and VoIP services.

Link

Other modes4

dnsrecon -r <cidr>

Reverse lookups across a network range.

Link
dnsrecon -d <domain> -t zonewalk

Walks an NSEC-signed zone to enumerate names.

Link
dnsrecon -d <domain> -j <file>

Saves results as JSON; -c writes CSV and -x XML.

Link
dnsrecon -d <domain> -t goo,crt

Pulls subdomains from certificate-transparency logs (crt) and search engines (goo).

Link