GO KALI FREE
IntermediateOSINT

How to Do DNS Enumeration: Beginner's Guide to DNS Recon in Kali Linux

Learn how to do DNS enumeration step by step with dig, nslookup, dnsrecon and gobuster — a worked example, tool comparison and cheat sheet.

#how to do dns enumeration#what is dns enumeration#dns enumeration tools#dns enumeration kali linux#dns enumeration cheat sheet#dns enumeration commands#subdomain enumeration#dns recon

DNS as an Intelligence Goldmine

DNS enumeration is a methodology for extracting intelligence from the Domain Name System. Every domain publishes a wealth of data through its DNS records — IP addresses, mail servers, name servers, subdomains, and service configurations — that collectively map an organization's entire online infrastructure. Systematically querying these records reveals the hidden architecture behind any domain.

Prerequisites

Before studying DNS enumeration, you should understand:

  • Networking Basics — DNS protocol, record types
  • OSINT Introduction — Information gathering methodology
  • Linux Commands Explained — Command line proficiency
  • WHOIS Guide — Domain registration concepts
  • What Is DNS Enumeration?

    DNS enumeration is the process of systematically querying a domain's DNS records to discover its infrastructure: IP addresses, mail servers, name servers, subdomains, services, and security policies. It turns the public DNS directory into a map of the target's online footprint.

    DNS enumeration splits into two styles. Passive DNS enumeration gathers records from third-party sources — certificate transparency logs, cached datasets, and search engines — without ever contacting the target's servers. Active DNS enumeration queries the target's name servers directly with dig, nslookup, zone-transfer attempts, and subdomain brute forcing. Passive work is silent and safe to start with; active work is faster and more complete, but it is visible to the target, so it belongs only in authorized testing.

    How to Do DNS Enumeration in 5 Steps

    Follow this workflow on every target. It takes the process from a single domain name to a full infrastructure map.

    Step 1: Query Every Record Type

    Start with the basics. Query A, AAAA, MX, NS, TXT, SOA, and CNAME records for the target domain with dig. Record everything — even an empty answer is intelligence (a domain with no MX record does not receive mail directly).

    Step 2: Find the Authoritative Name Servers

    Use dig +trace or query the NS records to identify the authoritative servers. Authoritative servers hold the complete zone data; recursive resolvers only return cached, possibly incomplete answers.

    Step 3: Try a Zone Transfer

    Attempt an AXFR zone transfer against each name server. Most servers refuse it, but a misconfigured one hands over the entire zone — every subdomain in a single query. Always test this first; it is the highest-value check in the whole workflow.

    Step 4: Brute-Force Subdomains

    Run gobuster or dnsrecon against a wordlist of common subdomain names. Watch for wildcard DNS, which makes every guess appear valid — verify any hit by checking whether random nonsense subdomains resolve to the same IP.

    Step 5: Cross-Check with Certificate Transparency Logs

    Query crt.sh for the domain. Every TLS certificate ever issued for the domain or its subdomains is logged there, and the log often reveals subdomains that brute forcing missed. Combine the two lists and remove duplicates.

    DNS Record Types

    RecordPurposeExample
    AIPv4 addressdomain.com -> 192.0.2.1
    AAAAIPv6 addressdomain.com -> 2001:db8::1
    CNAMECanonical name (alias)www -> domain.com
    MXMail exchangedomain.com -> mail.domain.com
    NSName serverdomain.com -> ns1.domain.com
    TXTText records (SPF, DKIM)v=spf1 include:_spf.google.com
    SOAStart of AuthorityZone metadata
    SRVService location_sip._tcp.domain.com
    PTRReverse DNS (IP to name)192.0.2.1 -> host.domain.com
    CAACertificate authority authorization0 issue "letsencrypt.org"
    DSDelegation signer (DNSSEC)Key tag and digest
    DNSKEYDNSSEC public keyZone signing key

    Basic DNS Queries with dig and nslookup

    Using dig

    # Basic A record lookup
    dig example.com
    
    # Short answer only
    dig example.com +short
    
    # Query specific record type
    dig example.com MX +short
    dig example.com NS +short
    dig example.com TXT +short
    dig example.com SOA
    
    # Query specific DNS server
    dig @8.8.8.8 example.com
    
    # Trace DNS resolution path
    dig example.com +trace
    
    # Reverse DNS lookup
    dig -x 93.184.216.34
    

    Reading dig Output

    A normal dig answer has three useful sections. The ANSWER SECTION holds the records you asked for. The AUTHORITY SECTION names the servers responsible for the zone. The ADDITIONAL SECTION carries extra records, usually the IP addresses of the name servers. When a query returns no ANSWER SECTION, check the status line: NOERROR with zero answers means the record type genuinely does not exist, while SERVFAIL or REFUSED means the server would not answer at all.

    Using nslookup

    # Basic lookup
    nslookup example.com
    
    # Query specific record type
    nslookup -type=MX example.com
    nslookup -type=NS example.com
    nslookup -type=TXT example.com
    nslookup -type=SOA example.com
    
    # Query a specific server
    nslookup example.com 8.8.8.8
    

    Using host

    The host command is the simplest of the three — one line per answer, easy to pipe into scripts:

    # Basic lookup
    host example.com
    
    # Query specific record type
    host -t mx example.com
    host -t ns example.com
    host -t txt example.com
    
    # Reverse lookup
    host 93.184.216.34
    

    A Note on ANY Queries

    dig example.com ANY used to return every record type in one query. Most public resolvers now refuse or truncate ANY queries because they were abused for DNS amplification attacks. Query each record type separately instead — it is slower, but it works everywhere.

    Worked Example: Mapping example.com from Scratch

    This example uses example.com, a domain reserved for documentation by IANA. All outputs below are illustrative — run the commands yourself to see the live values.

    Step 1: The A Record and Name Servers

    $ dig example.com +short
    93.184.216.34
    
    $ dig example.com NS +short
    a.iana-servers.net.
    b.iana-servers.net.
    
    $ dig example.com AAAA +short
    2606:2800:220:1:248:1893:25c8:1946
    

    One IP address, two name servers, one IPv6 address. Already the shape of the infrastructure is visible: a single-hosted site on IANA's name servers.

    Step 2: Mail and Text Records

    $ dig example.com MX +short
    # (no output — example.com publishes no MX record)
    
    $ dig example.com TXT +short
    # (no output — example.com publishes no TXT record)
    

    Empty answers are still answers. No MX record means the domain does not receive mail directly. No TXT record means there is no SPF, DKIM, or DMARC policy to read. On a real target, these two queries often reveal the mail provider, the email security posture, and third-party services in use.

    Step 3: Trace the Resolution Path

    $ dig example.com +trace
    # dig walks the chain: root servers -> .com servers -> a.iana-servers.net
    # The final answer comes from the authoritative server, not a cache.
    

    The trace confirms which servers are authoritative for the zone. Those are the servers you target for the zone-transfer attempt in the next step.

    Step 4: Try a Zone Transfer

    $ dig @a.iana-servers.net example.com AXFR
    ; Transfer failed.
    
    $ dnsrecon -d example.com -t axfr
    # dnsrecon reports the transfer as refused on both name servers.
    

    The transfer is refused, as it should be on a properly configured server. A successful AXFR here would have listed every record in the zone — the entire subdomain list in one response. The refusal itself is a useful finding: the zone is not leaking.

    Step 5: Brute-Force Subdomains

    $ gobuster dns -d example.com -w /usr/share/wordlists/dns/subdomains-top1million-5000.txt
    # Found: www.example.com
    # (illustrative — on a real target this list is usually much longer)
    

    Step 6: Cross-Check Certificate Transparency

    $ curl -s "https://crt.sh/?q=%25.example.com&output=json" | jq -r '.[].name_value' | sort -u
    example.com
    www.example.com
    

    The certificate log agrees with the brute-force result. When the two sources disagree, investigate the extra names — CT logs often reveal subdomains that wordlists miss, including staging and internal names that were once given certificates.

    Zone Transfers (AXFR)

    A zone transfer replicates an entire DNS zone from a primary server to a secondary server. The AXFR request asks for everything: every A, MX, TXT, and subdomain record in one response. Secondary servers need this to stay in sync, so the protocol itself is legitimate — the vulnerability is a server that answers AXFR requests from anyone.

    Misconfigured servers allow anyone to request a copy of the DNS zone:

    # Find name servers
    dig example.com NS +short
    
    # Attempt zone transfer from each NS
    dig @a.iana-servers.net example.com AXFR
    
    # Using dnsrecon
    dnsrecon -d example.com -t axfr
    

    A refused transfer returns "; Transfer failed." A successful transfer dumps the whole zone. Because a single successful AXFR replaces hours of brute forcing, test every name server for it before doing anything else.

    Subdomain Brute Forcing

    Choosing a Wordlist

    Kali ships SecLists wordlists under /usr/share/wordlists/dns/. Start small and grow only if the target justifies it:

    WordlistEntriesUse when
    subdomains-top1million-5000.txt5,000First pass on any target
    subdomains-top1million-20000.txt20,000Deeper pass after the first
    subdomains-top1million-110000.txt110,000Thorough pass on a large target
    dns-Jhaddix.txt~200,000Maximum coverage, slow

    Brute Forcing Commands

    # Using dnsrecon
    dnsrecon -d example.com -D /usr/share/wordlists/dns/subdomains-top1million-20000.txt -t brt
    
    # Using gobuster (fastest option)
    gobuster dns -d example.com -w /usr/share/wordlists/dns/subdomains-top1million-5000.txt
    
    # Using ffuf (HTTP-based subdomain discovery)
    ffuf -w /usr/share/wordlists/dns/subdomains.txt:HOST -u http://FUZZ.example.com -fc 400,404,403
    

    The Wildcard Trap

    A wildcard record (*.example.com) matches any subdomain not explicitly defined. This causes brute forcing tools to return false positives since every query appears valid. Verify findings by checking if multiple random subdomains all resolve to the same IP:

    # If all three resolve to the same IP, the zone uses a wildcard
    dig random12345.example.com +short
    dig nonsense98765.example.com +short
    dig qwertyuiop.example.com +short
    

    If a wildcard is present, filter results to only the subdomains that resolve to a DIFFERENT address, or switch to passive sources (CT logs, datasets) that do not depend on live resolution.

    Certificate Transparency Logs

    # Using crt.sh to find subdomains
    curl -s "https://crt.sh/?q=%25.example.com&output=json" | jq -r '.[].name_value' | sort -u
    

    Certificate Transparency logs record every TLS certificate issued by public certificate authorities, including subdomains. This passive technique reveals subdomains without directly querying the target's DNS infrastructure, making it ideal for stealthy reconnaissance. It also catches names that wordlists never contain — staging systems, internal tools, and one-off project subdomains that were given a certificate once and forgotten.

    DNS Enumeration Tools Compared

    ToolBest forKey flags
    digIndividual queries, scripting+short, +trace, @server, -x
    nslookupQuick interactive lookups-type=MX/NS/TXT/SOA
    hostSimple one-line answers-t mx/ns/txt, reverse lookup
    dnsreconAll-in-one scanning-t axfr/brt/srv/zonewalk, -D wordlist
    dnsenumComprehensive probing-f wordlist, --noreverse
    fierceSubdomain discovery--domain, --subdomains
    gobusterFast DNS brute forcingdns -d domain -w wordlist
    ffufHTTP-based subdomain fuzzing-w wordlist:HOST -u http://FUZZ.domain
    subfinderPassive subdomain discovery-d domain, -all
    amassDeep passive + active enumenum -d domain
    theHarvesterOSINT aggregation-d domain -b crtsh
    massdnsHigh-speed bulk resolution-r resolvers.txt -t A -w out.txt

    dig, nslookup, host, dnsrecon, dnsenum, fierce, gobuster, ffuf, subfinder, amass, and theHarvester are all available in Kali Linux. massdns is a separate high-speed resolver for bulk work — useful when you need to resolve hundreds of thousands of names quickly.

    DNS Enumeration with Nmap

    Nmap ships DNS enumeration scripts that fit naturally into a wider port scan:

    # Brute-force subdomains with Nmap
    nmap --script dns-brute example.com
    
    # Attempt a zone transfer against a name server
    nmap -p 53 --script dns-zone-transfer --script-args dns-zone-transfer.domain=example.com a.iana-servers.net
    
    # Enumerate SRV records
    nmap --script dns-srv-enum example.com
    

    The dns-brute script is slower than gobuster but useful when Nmap is already running against the target. The dns-zone-transfer script automates the AXFR check against every name server Nmap finds.

    Automated DNS Enumeration Tools

    dnsrecon

    # Comprehensive DNS reconnaissance
    dnsrecon -d example.com
    
    # Zone transfer test
    dnsrecon -d example.com -t axfr
    
    # Subdomain brute force
    dnsrecon -d example.com -D subdomains.txt -t brt
    
    # SRV record enumeration
    dnsrecon -d example.com -t srv
    
    # DNSSEC zone walking
    dnsrecon -d example.com -t zonewalk
    

    dnsenum

    # Full DNS enumeration
    dnsenum example.com
    
    # With custom wordlist
    dnsenum -f /usr/share/wordlists/dns/subdomains.txt example.com
    

    fierce

    # Discover subdomains and test zone transfers
    fierce --domain example.com
    
    # With a wordlist
    fierce --domain example.com --subdomains /usr/share/wordlists/dns/subdomains-top1million-5000.txt
    

    Security Assessment via DNS

    Email Security Checks

    # Check for DMARC policy
    dig _dmarc.example.com TXT +short
    
    # Check SPF record
    dig example.com TXT +short | grep "v=spf1"
    
    # Check for DKIM
    dig default._domainkey.example.com TXT +short
    

    A missing DMARC policy means the domain's mail can be spoofed more easily — a finding worth reporting. A strict policy (p=reject) means the domain owner has hardened email authentication. SPF tells you which servers may send mail for the domain; DKIM selectors reveal the mail provider.

    DNSSEC and Zone Walking

    DNSSEC zone walking exploits NSEC records in DNSSEC-signed zones to enumerate all domains. NSEC records prove non-existence of a domain but inadvertently list the next existing domain, allowing complete zone enumeration. Query one name, read the NSEC record for the next name, and repeat until the zone is mapped.

    NSEC3 was designed to stop this: it hashes the names, so the chain reveals hashes instead of readable domain names. Zone walking still works in theory against NSEC3, but it requires cracking the hashes, which is slow. Test for it with dnsrecon:

    dnsrecon -d example.com -t zonewalk
    

    If the zone uses plain NSEC, the walk returns the full name list. If it uses NSEC3, note it as a hardening finding and move on.

    Passive vs Active DNS Enumeration

    AspectPassiveActive
    SourcesCT logs, datasets, search enginesDirect queries, AXFR, brute forcing
    Touches target servers?NoYes
    Detectable by target?NoYes — queries appear in server logs
    SpeedFast (pre-collected data)Slower (live queries, rate limits)
    CompletenessMisses unlisted namesFinds live names wordlists contain
    Best forFirst pass, stealth, scopingConfirmation, depth, live verification

    Start passive, then go active. The passive pass tells you what exists in public records; the active pass confirms what is live right now and fills the gaps the logs missed.

    What DNS Enumeration Reveals

    Attack Surface Mapping

    # Discover cloud-hosted services
    dig example.com CNAME +short | grep -E "cloudfront|aws|azure|google|cloudflare"
    
    # Identify third-party services via MX records
    dig example.com MX +short | awk '{print $NF}' | sort -u
    

    CNAME records pointing at cloud providers reveal where the target hosts its services. MX records reveal the mail provider and any third-party email services. TXT records reveal verification tokens for services the target uses. Together, the records sketch the target's vendor list — and every vendor is another place to look for exposed assets.

    DNS Enumeration Cheat Sheet

    Commands

    CommandPurpose
    dig example.com +shortQuick A record lookup
    dig example.com MX/NS/TXT/SOA +shortQuery one record type
    dig @8.8.8.8 example.comQuery a specific resolver
    dig example.com +traceWalk the resolution chain
    dig -x 93.184.216.34Reverse lookup an IP
    nslookup example.comBasic lookup
    nslookup -type=MX example.comMX record via nslookup
    host example.comOne-line lookup
    host -t mx example.comMX record via host
    dig @ns1.example.com example.com AXFRZone transfer attempt
    dnsrecon -d example.comFull automated scan
    dnsrecon -d example.com -t axfrZone transfer test
    dnsrecon -d example.com -t brt -D wordlistSubdomain brute force
    dnsenum example.comComprehensive probing
    fierce --domain example.comSubdomain discovery + AXFR test
    gobuster dns -d example.com -w wordlistFast DNS brute forcing
    nmap --script dns-brute example.comNmap subdomain brute force
    curl crt.sh query + jqCertificate transparency lookup
    dig _dmarc.example.com TXT +shortDMARC policy check

    Record Types at a Glance

    RecordReveals
    A / AAAAServer IP addresses
    MXMail provider and mail servers
    NSName servers and DNS provider
    TXTSPF/DKIM/DMARC, verification tokens
    SOAZone admin and serial
    CNAMEAliases and cloud services
    SRVServices and their ports
    PTRReverse mapping, hostnames
    CAAWhich CAs may issue certificates
    DS / DNSKEYDNSSEC deployment

    Troubleshooting DNS Enumeration Problems

    ProblemLikely causeFix
    dig returns no answer (NOERROR, 0 answers)The record type does not exist for the domainTry other record types; an empty answer is still a finding
    dig returns SERVFAILResolver or server error, often DNSSEC validation failureQuery the authoritative server directly with @ns
    Zone transfer refusedServer is correctly configuredNote it as a hardening finding and move to brute forcing
    Every brute-force guess resolvesWildcard DNS record in the zoneVerify with random subdomains; filter to non-wildcard IPs
    Brute force finds nothingWordlist too small or subdomains use unusual namesTry a larger wordlist, then CT logs and datasets
    Scans are very slowRate limiting or a huge wordlistReduce threads, use a smaller wordlist, resolve with massdns
    crt.sh returns too many resultsCertificates for many subdomains over yearsFilter by date and de-duplicate with sort -u
    dig +trace times outFirewall blocks outbound DNS or trace queriesUse a public resolver (@8.8.8.8) instead of tracing
    DNS over HTTPS hides queriesThe target uses DoH/DoT resolversUse passive sources; active queries still work via the resolver

    Common Mistakes

    Not checking all record types: MX, TXT, and SRV records reveal infrastructure not visible in A records.

    Assuming zone transfers are always blocked: Some servers still allow AXFR.

    Ignoring wildcard records: *.example.com can make brute forcing find false positives.

    Forgetting IPv6: AAAA records may expose additional attack surface.

    Trusting a single tool: One tool's wordlist or data source always misses names. Combine dig, gobuster, dnsrecon, and crt.sh.

    Skipping the email security checks: SPF, DKIM, and DMARC records reveal the mail provider and the domain's spoofing resistance in seconds.

    Recording nothing: Enumeration produces dozens of findings. Write them down as you go — IPs, names, providers — or the map falls apart.

    Best Practices

  • Always check for zone transfers first
  • Use multiple wordlists for subdomain brute forcing
  • Cross-reference with certificate logs (crt.sh)
  • Check for wildcard records to avoid false positives
  • Use authoritative DNS servers for accurate results
  • Record every finding in one place as you enumerate
  • Is DNS Enumeration Legal?

    Querying public DNS records is legal — DNS is a public directory by design, and anyone can ask a name server for a domain's records. What matters is scope and intent. Enumerate only domains you own or have written permission to test, and use the results for defense, research, or authorized assessment — never to attack the target. Aggressive brute forcing or repeated zone-transfer attempts against someone else's infrastructure without permission can cross into unauthorized testing, even though each individual query is harmless.

    Summary

    DNS enumeration reveals an organization's online infrastructure. Key techniques include querying all record types, attempting zone transfers, brute forcing subdomains, and leveraging certificate transparency logs. Automated tools like dnsrecon streamline the process. Start passive with certificate logs, go active with dig and gobuster only on authorized targets, and always check the email security records — the whole map usually takes less than an hour to build.

    Knowledge Check

  • What is a DNS zone transfer and why is it valuable?
  • How can DNSSEC zone walking enumerate DNS records?
  • What is a wildcard DNS record and how does it affect enumeration?
  • Why query authoritative DNS servers over recursive resolvers?
  • What information can TXT records reveal?
  • What are the five steps of the DNS enumeration workflow?
  • How do you verify whether a zone uses a wildcard record?
  • What is the difference between passive and active DNS enumeration?
  • Answers: 1. An AXFR request that copies the entire zone; it reveals every subdomain at once. 2. NSEC records list the next existing name, so walking the chain maps the zone. 3. A wildcard matches any undefined subdomain, making brute forcing return false positives. 4. Authoritative servers hold complete zone data; recursive resolvers return cached, possibly incomplete answers. 5. SPF policies, DKIM keys, DMARC policies, verification tokens, and third-party services. 6. Query all record types, find authoritative servers, try a zone transfer, brute-force subdomains, cross-check CT logs. 7. Query several random subdomains — if they all resolve to the same IP, a wildcard is present. 8. Passive uses third-party sources without touching the target; active queries the target's servers directly.

    Keep Learning

  • DNS Enumeration Guide
  • OSINT Guide
  • WHOIS Beginner Guide
  • Recon Workflow
  • Passive OSINT Guide
  • dnsrecon
  • dnsenum
  • fierce
  • gobuster
  • Frequently Asked Questions

    What is a DNS zone transfer?

    A zone transfer (AXFR) replicates the entire DNS zone from a primary server to a secondary server. If misconfigured, any client can request a zone transfer, revealing all DNS records including subdomains. Always test for this first during enumeration.

    Why query authoritative DNS servers instead of recursive resolvers?

    Recursive resolvers cache data and may return incomplete results. Authoritative servers hold the complete zone data, providing accurate and comprehensive records. Use dig +trace to find the authoritative server.

    What DNS record types reveal the most information?

    MX records reveal mail infrastructure (and third-party providers), TXT records expose SPF/DKIM/DMARC policies, SRV records identify services, and CNAME records map aliases. Don't limit yourself to A records — check all types.

    What is a wildcard DNS record?

    A wildcard record (*.example.com) matches any subdomain not explicitly defined. This causes brute forcing tools to return false positives since every query appears valid. Verify findings by checking if multiple random subdomains all resolve to the same IP.

    How do certificate transparency logs help DNS enumeration?

    Certificate Transparency logs (crt.sh) record every SSL certificate issued, including subdomains. This passive technique reveals subdomains without directly querying the target's DNS infrastructure, making it ideal for stealthy reconnaissance.

    What is DNSSEC zone walking?

    DNSSEC zone walking exploits NSEC records in DNSSEC-signed zones to enumerate all domains. NSEC records prove non-existence of a domain but inadvertently list the next existing domain, allowing complete zone enumeration.

    How does dig differ from nslookup for DNS enumeration?

    dig provides more detailed output, supports DNSSEC queries, offers trace mode for full resolution paths, and is more scriptable. nslookup is simpler but less powerful. For security testing, dig is the preferred tool.

    What information can TXT records reveal?

    TXT records contain SPF policies (email sending sources), DKIM public keys, DMARC policies, domain verification tokens, and sometimes internal infrastructure details. They often expose third-party services in use.

    How do you enumerate email security via DNS?

    Check DMARC with dig _dmarc.domain.com TXT, SPF with dig domain.com TXT | grep v=spf1, and DKIM with dig selector._domainkey.domain.com TXT. Weak email security indicates potential phishing opportunities.

    What tools automate DNS enumeration?

    dnsrecon combines zone transfers, brute forcing, and SRV enumeration. dnsenum performs comprehensive probing. gobuster offers fast DNS brute forcing. massdns enables high-speed resolution. Combine multiple tools for thorough results.

    How do I do DNS enumeration?

    Start by querying every record type for the target domain with dig, then find its authoritative name servers and try a zone transfer. Next, brute-force subdomains with gobuster or dnsrecon using a wordlist, and cross-check your findings against certificate transparency logs (crt.sh). Finish by checking email security records (SPF, DKIM, DMARC) and recording everything in one place.

    What is the best DNS enumeration tool?

    There is no single best tool — the job needs several. dig is the best tool for individual queries, dnsrecon is the best all-in-one scanner, gobuster is the fastest subdomain brute forcer, and crt.sh is the best passive source for subdomains. Use dig for manual work and combine dnsrecon, gobuster and crt.sh for full coverage.

    Is DNS enumeration legal?

    Querying public DNS records is legal — DNS is a public directory by design. What matters is scope and intent: enumerate only domains you own or have written permission to test, and do not use the results to attack the target. Aggressive brute forcing or zone-transfer attempts against someone else's infrastructure without permission can cross into unauthorized testing.

    Is DNS enumeration passive or active?

    Both. Certificate transparency logs, cached search results and DNS datasets are passive — you never touch the target. Direct queries with dig, zone-transfer attempts and subdomain brute forcing are active — the target's name servers see your requests. Start passive, then go active only when you have permission.

    What is the difference between DNS enumeration and subdomain enumeration?

    DNS enumeration is the wider practice: it covers every record type, zone transfers, email security, DNSSEC and infrastructure mapping. Subdomain enumeration is one part of it — finding the subdomains of a domain. Every subdomain enumeration is DNS enumeration, but DNS enumeration also reveals mail servers, name servers, services and security policies.

    Continue Learning

    OSINT · Intermediate

    Attack Surface Mapping: Complete External Reconnaissance Guide

    Learn to map external attack surfaces using OSINT tools. Master subdomain discovery, service enumeration, and asset inventory for penetration testing and bug bounty hunting.

    OSINT · Beginner

    How to Use Whois: Beginner's Guide to Domain Lookups in Kali Linux

    Learn how to use whois in Kali Linux: look up any domain, IP or AS number, read the record, and spot red flags — with a worked example and cheat sheet.

    OSINT · Intermediate

    Subdomain Enumeration: Finding Hidden Attack Surface

    Master subdomain enumeration techniques using passive and active methods to discover hidden subdomains and expand attack surface mapping.

    OSINT · Advanced

    OSINT for Bug Bounty Hunters: Reconnaissance Mastery Guide

    Complete OSINT guide for bug bounty hunters. Master reconnaissance workflows, subdomain discovery, email enumeration, and attack surface mapping for successful bug bounty submissions.

    Related Security Tools

    Information Gathering

    DNSenum

    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.

    Information Gathering

    dig

    dig (domain information groper) is a flexible tool for interrogating DNS name servers. It performs DNS lookups and displays the answers that are returned from the name server(s).

    Information Gathering

    Amass

    OWASP Amass is the industry-standard in-depth network mapping and attack surface discovery tool. It uses active and passive techniques, scraping 20+ public data feeds, DNS enumeration, and certificate transparency logs to discover subdomains, IP addresses, and ASN data — making it essential for penetration testing, bug bounty hunting, and enterprise security assessments.

    Information Gathering

    theHarvester

    Learn how to use theHarvester in Kali Linux: gather emails, subdomains, employee names, open ports, and banners from public sources with a step-by-step first scan, API keys, and worked examples for authorized OSINT recon.

    Written by GO KALI FREE Team