root@thehacksparrow:~/writeups$ SYSTEM ONLINE
root@sparrow:~/writeups$ cat dnsenum.md
// recon

DNSenum

22 Jul 2026 · 2 min read

DNSenum is a DNS enumeration tool designed to gather as much information as possible about a domain using DNS queries, reverse lookups, brute force, and DNS server detection. Similar to DNSrecon, but more focused on automating the whole process in a single run.

It enumerates DNS records (A, MX, NS, TXT, SOA...), detects additional DNS servers, attempts AXFR zone transfers, brute-forces subdomains, enumerates IPv4/PTR hosts across ranges, and builds a map of the DNS infrastructure. Useful for pentesting, technical OSINT, and infrastructure audits.

TypeCLI
PlatformKali / Linux
DNSenum cheat sheet

Basic commands

CommandWhat it does
dnsenum domain.comSimple DNS enumeration
dnsenum --enum domain.comFull enumeration (recommended): brute force, transfers, reverse lookup
dnsenum domain.com -f /usr/share/wordlists/dnsmap.txtSubdomain brute force with a wordlist
dnsenum --reverse 192.168.1.0/24Reverse lookup over a range
dnsenum domain.com --axfrAXFR zone transfer
dnsenum domain.com -o result.txtSave the results

What it returns

  • Authoritative DNS servers
  • Discovered subdomains
  • MX, NS, TXT records (sometimes with SPF/DKIM keys)
  • Exposed internal hosts
  • Reverse PTR
  • Possible zone transfers (critical if it works)

Responsible use

These commands are for systems you own or have explicit written authorisation to test (labs, CTFs, contracted engagements). Using them against third-party infrastructure without permission is illegal in most countries.