Information Gathering
DNSenum is a multithreaded Perl script for DNS enumeration that discovers DNS records, attempts zone transfers, brute-forces subdomains, and performs reverse lookups. It is a foundational reconnaissance tool in Kali Linux for mapping a target domain's DNS infrastructure.
sudo apt install dnsenum
dnsenum [options] <domain>
DNSenum is a multithreaded Perl script designed for DNS enumeration that combines record gathering, zone transfer attempts, subdomain brute-forcing, and reverse DNS lookups into a single automated workflow. It is one of the most widely used dnsenum kali linux tools for mapping a target domain's DNS infrastructure during the reconnaissance phase of penetration testing.
The dnsenum command works by querying authoritative DNS servers for a domain and extracting A, AAAA, MX, NS, SOA, TXT, and CNAME records. It then attempts a DNS zone transfer (AXFR request) to retrieve the complete zone file, which can reveal every registered subdomain. If the zone transfer fails — which is common on modern DNS configurations — DNSenum falls back to dictionary-based subdomain brute-forcing to discover hidden hosts.
DNSenum is commonly used in Kali Linux for OSINT investigations, penetration testing reconnaissance, brand protection monitoring, and infrastructure mapping. Security professionals use it to identify the attack surface of a target domain by discovering all publicly accessible subdomains, mail servers, and name servers. For a complete DNS record analysis, combine DNSenum results with DNS Lookup to query individual record types in detail.
The tool supports multi-threaded scanning with the --threads flag, custom wordlists for subdomain brute-force with -f, custom DNS resolvers with --dnsserver, and reverse DNS lookups to map IP addresses back to hostnames. For subdomains not found through DNS enumeration, pair DNSenum with Subfinder for passive subdomain discovery from multiple data sources.
Understanding DNS enumeration is essential for cybersecurity professionals because DNS is the backbone of internet infrastructure. Every web service, email server, and API endpoint has a DNS record that can be discovered through systematic enumeration. The dnsenum kali linux tutorial approach teaches you to map this infrastructure methodically, from basic record gathering to advanced zone transfer techniques and subdomain brute-force strategies.
dnsenum example.comRun the default enumeration workflow against a domaindnsenum --enum example.comConvenience mode equal to --threads 5 -s 15 -wdnsenum -hDisplay the help message with all optionsdnsenum --threads 10 example.comIncrease the number of concurrent query threadsdnsenum -f /usr/share/dnsenum/dns.txt example.comBrute-force subdomains using a named wordlistdnsenum -f /path/to/file example.comBrute-force subdomains from a custom dictionary filednsenum -r example.comRecurse into discovered subdomains that have NS recordsdnsenum --dnsserver 10.10.10.10 example.comForce A, NS, and MX queries through a specific DNS serverdnsenum -w example.comPerform whois queries on discovered class C netrangesdnsenum -o results.xml example.comSave the full run to an XML file (MagicTree-compatible)dnsenum -p 10 -s 20 example.comScrape more Google result pages and subdomainsdnsenum -s 30 example.comSet the maximum number of subdomains scraped from Googlednsenum --private example.comShow and save private (RFC1918) IPs to domain_ips.txtdnsenum --subfile subs.txt example.comWrite every valid subdomain found to a filednsenum --noreverse example.comSkip reverse-lookup operations on netrangesGather A, AAAA, MX, NS, SOA, TXT, and CNAME records for a target domain to understand its DNS infrastructure configuration.
Test whether a target DNS server permits unauthorized zone transfers (AXFR) that reveal the complete list of registered subdomains.
Discover hidden subdomains using dictionary-based attacks when zone transfers are denied, finding hosts not listed in public DNS.
Map discovered IP addresses back to hostnames using PTR records, identifying additional infrastructure and shared hosting arrangements.
Identify MX records and mail server configurations to understand email infrastructure and potential social engineering targets.
Build a comprehensive profile of a target domain's infrastructure for open-source intelligence investigations and security assessments.
| Feature | DNSenum | Dig | Fierce |
|---|---|---|---|
| Primary purpose | All-in-one DNS enumeration | Precise single-record queries | Subdomain/zone discovery |
| Zone transfer (AXFR) | Automatic attempt | Manual (dig axfr) | Automatic attempt |
| Subdomain brute-force | Yes (-f wordlist) | No | Yes (built-in) |
| Reverse DNS sweep | Yes (--enum) | Yes (dig -x) | Yes (range scan) |
| Multi-threaded | Yes (--threads) | No | Limited |
| Best for beginners | Yes — one command | No — DNS expertise | Yes |
| Feature | DNSenum | Subfinder | Amass | theHarvester |
|---|---|---|---|---|
| Query method | Active (direct) | Passive (APIs) | Both | Passive (OSINT) |
| Touches target DNS | Yes | No | Optional | No |
| Detection risk | Medium | Very low | Low–medium | Very low |
| Data sources | Live DNS + wordlist | 40+ sources | 80+ sources | Search engines |
| Zone transfer testing | Yes | No | No | No |
| Best combined role | Active verification | Fast passive sweep | Deep mapping | Email + host OSINT |
| Feature | Stealth | Balanced | Aggressive |
|---|---|---|---|
| Example command | dnsenum --noreverse --threads 2 | dnsenum --enum | dnsenum -f big.txt --threads 20 |
| Thread count | 1–2 | 5 (default enum) | 15–30 |
| Wordlist size | None / tiny | Top 5k | 1M+ |
| Speed | Slow | Moderate | Fast |
| Detection risk | Low | Medium | High |
| Use when | Monitored production | Most engagements | Authorized labs |
DNSenum actively queries DNS servers, attempts zone transfers, and brute-forces subdomains, making it an active reconnaissance tool. Subfinder is passive-only — it queries public sources like certificate transparency logs and never sends traffic to the target. Use DNSenum for active DNS testing; use Subfinder for stealthy passive enumeration.
Yes. DNSenum attempts DNS zone transfer (AXFR) against name servers discovered for the target domain. A successful zone transfer reveals the entire DNS zone file, including all subdomains, IP addresses, and record types. Use --noreverse to skip reverse lookups and focus on zone transfer attempts.
Use the -f flag to specify a custom wordlist for subdomain brute-forcing: dnsenum -f /usr/share/wordlists/subdomains.txt example.com. For comprehensive results, combine with --threads N for multi-threaded scanning and --subfile output.txt to save discovered subdomains.
DNSenum is safe to use on domains you own or have explicit authorization to test. It is an active tool that sends DNS queries to target servers, which may be logged and detected. Unauthorized DNS enumeration may violate computer fraud laws. Always obtain written permission before scanning domains you do not own.
DNSenum discovers A, AAAA, MX, NS, SOA, TXT, and CNAME records. It also performs reverse DNS lookups to map IP addresses back to hostnames and attempts zone transfers to retrieve the complete zone file from misconfigured name servers.
DNSenum is specialized for DNS enumeration — it focuses on DNS records, zone transfers, and subdomain brute-forcing with multi-threaded performance. Nmap has broader capabilities including port scanning, service detection, and OS fingerprinting but is less focused on DNS-specific tasks. Use DNSenum for DNS recon, then Nmap for port scanning discovered hosts.
Information Gathering
DNS query tool for detailed record lookups with TTL, flags, and authoritative response data.
Information Gathering
Passive subdomain discovery tool using 40+ public data sources without querying the target.
Information Gathering
Query domain registration data including registrar, owner, creation date, and expiration.
Information Gathering
OWASP subdomain discovery tool combining passive and active techniques for large-scale domain mapping.
Information Gathering
OSINT tool for gathering emails, subdomains, and employee names from public sources.
Web Application
Web server scanner for detecting misconfigurations, outdated software, and dangerous files.
DNSenum output displays discovered A records (host IP addresses), AAAA records (IPv6 addresses), MX records (mail servers with priority), NS records (authoritative name servers), SOA records (start of authority with serial and refresh data), TXT records (text annotations including SPF and DKIM), CNAME records (canonical name aliases), and any subdomains found through zone transfer attempts or dictionary brute-forcing. Reverse DNS results show PTR records mapping IP addresses back to hostnames.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.