Information Gathering
DNSRecon provides the ability to check NS records, MX records, zone transfers, SRV records, and cache snooping capabilities within a comprehensive Python network inspection script environment.
sudo apt install dnsrecon
dnsrecon -d <domain>
DNSRecon is a comprehensive DNS enumeration tool that performs zone transfers, DNS record enumeration, brute-forcing, reverse DNS lookups, and cache snooping. Written in Python, it provides a complete DNS audit of target domains.
Created by Carlos Perez in 2007, DNSRecon is one of the most feature-rich DNS enumeration tools available. It supports checking for misconfigured DNS servers that allow zone transfers, which can reveal the entire DNS database in a single request.
The tool supports multiple enumeration modes including standard record checking, dictionary-based brute-forcing, zone transfer attempts, and reverse DNS lookups across IP ranges. Results can be saved in multiple formats for later analysis.
dnsrecon -d example.com -t stdStandard check - Perform general record type parsing and wildcards checkdnsrecon -d example.com -t brt -D subdomains.txtDictionary brute force - Guess host names using a custom local text wordlist filednsrecon -d example.comStandard enumerationdnsrecon -d example.com -t axfrZone transferdnsrecon -d example.com -t brt -D wordlist.txtBrute forcednsrecon -r 192.168.1.0/24Reverse lookupdnsrecon -d example.comStandard DNS recondnsrecon -d example.com -t stdStandard enumerationdnsrecon -d example.com -t brt -D wordlist.txtBrute-force subdomainsdnsrecon -d example.com -t axfrZone transfer attemptdnsrecon -d example.com -t srvSRV record enumerationdnsrecon -d example.com -t tldTLD enumerationdnsrecon -d example.com -n 8.8.8.8Custom DNS serverdnsrecon -d example.com -j output.jsonJSON outputdnsrecon -d example.com -x output.xmlXML outputCheck if DNS servers allow unauthorized zone transfers, revealing all DNS records.
Discover NS, MX, TXT, SOA, SRV, and other DNS records for target domains.
Discover subdomains by guessing hostnames using custom wordlists.
Resolve IP addresses to hostnames to discover additional infrastructure.
Check if DNS servers cache specific records to gather intelligence.
Perform comprehensive DNS security audits for compliance and assessment.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.