13 DNS Analysis Tools for DNS Records and Subdomain Enumeration

DNS Analysis · Practical Command-Line Guide

13 DNS Analysis Tools for DNS Records and Subdomain Enumeration

Learn how to install and use popular DNS lookup, domain reconnaissance, and subdomain discovery tools. Each section includes syntax, common command-line options, and practical examples you can adapt for an authorized assessment.

Command examples primarily target Kali Linux, Debian, and Ubuntu. Check each tool’s installed-version help because options and package availability can change.

What is DNS analysis?

DNS analysis helps explain how a domain maps to hosts, mail services, authoritative name servers, and other infrastructure. It can support troubleshooting, asset inventory, attack-surface reviews, and security assessments. The most useful results often come from combining direct DNS queries with passive sources and carefully scoped active enumeration.

Common record types include A (IPv4 address), AAAA (IPv6 address), CNAME (alias), MX (mail exchange), NS (name server), SOA (zone authority metadata), TXT (text data, often used for verification and email policy), CAA (certificate-authority policy), SRV (service location), and PTR (reverse DNS).

Authorization matters: use active enumeration, brute-force wordlists, zone-transfer tests, and host/port inspection only for domains and infrastructure you own or have explicit permission to assess. Publicly available does not automatically mean in-scope.

Tools covered

  1. dnsenum — Multithreaded DNS enumeration
  2. whois — Domain-registration and network context
  3. nslookup — Simple interactive DNS lookups
  4. dig — Detailed DNS record inspection
  5. DNSDumpster — Browser-based DNS reconnaissance
  6. assetfinder — Passive related-domain and subdomain discovery
  7. dnsmap — Wordlist-based subdomain brute forcing
  8. dnsrecon — Flexible DNS record and zone checks
  9. Fierce — DNS reconnaissance and IP-space discovery
  10. Subfinder — Fast passive subdomain enumeration
  11. Aquatone — Visual review of discovered web hosts
  12. Gobuster — DNS subdomain and web-path discovery
  13. shuffledns — High-speed DNS resolution and brute forcing

Choose the right type of tool

Direct DNS inspection

Use dig or nslookup to ask precise questions about individual record types and name servers.

Important distinction: WHOIS provides domain-registration and IP-allocation context. Aquatone examines discovered web hosts. Neither is a replacement for direct DNS queries.

01

dnsenum

Multithreaded DNS enumeration

dnsenum is a Perl-based enumeration utility that gathers common DNS records, tests for permitted zone transfers, discovers possible subdomains from a wordlist, and can perform reverse lookups. It combines several reconnaissance techniques in one command, so use its more intensive options only on an authorized scope.

How to install

sudo apt update
sudo apt install dnsenum

Syntax

dnsenum [OPTIONS] DOMAIN

Basic usage

dnsenum example.com

Common command-line options / controls

Option / control Purpose
—dnsserver SERVER Use a specified DNS server for core A, NS, and MX queries.
–enum Shortcut profile that enables several common enumeration options.
-f, –file FILE Use a custom subdomain wordlist instead of the packaged default.
–threads N Set the number of concurrent query workers.
-t, –timeout SECONDS Set TCP/UDP query timeout values.
–noreverse Skip reverse lookups.
–subfile FILE Write discovered subdomains to a plain-text file.
-o, –output FILE Save an XML report.
-w, –whois Perform WHOIS lookups on discovered network ranges.
-r, –recursion Recursively enumerate discovered delegated subdomains.

Examples

  1. Basic enumeration
    dnsenum example.com

    Runs the default record and name-server enumeration.

  2. Use the bundled enumeration shortcut
    dnsenum --enum example.com

    Enables a broader default set of enumeration steps.

  3. Use a custom wordlist
    dnsenum -f /path/to/subdomains.txt --threads 5 example.com

    Checks candidate names from your own wordlist.

  4. Choose a resolver and skip reverse lookups
    dnsenum --dnsserver 1.1.1.1 --noreverse example.com

    Uses the specified DNS resolver and omits reverse lookups.

  5. Save results for later review
    dnsenum --subfile discovered-subdomains.txt -o dnsenum-report.xml example.com

    Writes a text list of subdomains and an XML report.

Practical note: If no custom wordlist is supplied, dnsenum may use a packaged default list. Zone-transfer attempts and wordlist checks are active queries; confirm scope and rate limits first.

Documentation: Kali Tools: dnsenum

Back to tools list ↑

02

whois

Domain-registration and network context

WHOIS queries registration and allocation databases for domain names, IP addresses, and related network resources. It does not replace DNS lookups, but it can help identify a registrar, registry, registration dates, authoritative referral, or the organization associated with an IP range. Privacy services and registry policies may hide some fields.

How to install

sudo apt update
sudo apt install whois

Syntax

whois [OPTIONS] OBJECT

Basic usage

whois example.com

Common command-line options / controls

Option / control Purpose
-h HOST Query a specific WHOIS server.
-p PORT Use a specified server port.
-I Start with the IANA WHOIS service and follow referrals when supported.
-H Hide legal-disclaimer text in output.
–no-recursion Do not follow referrals to other WHOIS servers.
–verbose Show additional query details.
–help Display help.

Examples

  1. Look up a domain
    whois example.com

    Requests the registration record for the domain.

  2. Inspect an IP address
    whois 93.184.216.34

    Queries the registry data associated with an IP allocation.

  3. Start with IANA referral data
    whois -I example.com

    Asks IANA and follows a referral when the server provides one.

  4. Query a named WHOIS server
    whois -h whois.iana.org example.com

    Sends the request to an explicit WHOIS server.

  5. Show diagnostic details
    whois --verbose example.com

    Displays extra details about how the query is handled.

Practical note: WHOIS output varies by registry and privacy settings. Treat contact details and ownership fields as registry-reported information, not guaranteed proof of current operational control.

Documentation: Kali Tools: whois

Back to tools list ↑

03

nslookup

Simple interactive DNS lookups

nslookup is a small DNS query utility available on Linux, Windows, and other systems. It is useful for checking whether a name resolves, querying common record types, and comparing responses from different resolvers. It can run a single query or enter an interactive prompt.

How to install

# Kali / Debian / Ubuntu
sudo apt update
sudo apt install bind9-dnsutils

Syntax

nslookup [-option] [NAME] [SERVER]

Basic usage

nslookup example.com

Common command-line options / controls

Option / control Purpose
-type=TYPE or -querytype=TYPE Select the requested record type, such as A, AAAA, MX, NS, TXT, or SOA.
-debug Display debugging information about the query and response.
-timeout=SECONDS Set the wait time for a response.
-retry=COUNT Set the number of retries.
-port=PORT Query a non-default DNS port.
-vc Use a TCP connection instead of UDP where supported.
[SERVER] Optionally specify the DNS resolver to query.

Examples

  1. Resolve a hostname
    nslookup example.com

    Queries the default resolver for the domain address records.

  2. List authoritative name servers
    nslookup -type=NS example.com

    Requests NS records for the domain.

  3. Query mail exchangers with a chosen resolver
    nslookup -type=MX example.com 1.1.1.1

    Asks Cloudflare’s public resolver for MX records.

  4. Inspect TXT records
    nslookup -type=TXT example.com

    Checks TXT data, which may include SPF or domain-verification strings.

  5. Look up a subdomain
    nslookup www.example.com

    Checks whether a particular hostname resolves.

Practical note: The exact output format differs between Windows and Unix-like systems. Querying a public resolver can return a different cached answer from your local DNS resolver.

Documentation: BIND 9 documentation

Back to tools list ↑

04

dig

Detailed DNS record inspection

dig (Domain Information Groper) is one of the most flexible tools for DNS analysis. It can query specific record types, select a name server, display authoritative response details, trace delegation, test reverse records, and produce short output suitable for scripts.

How to install

# Kali / Debian / Ubuntu
sudo apt update
sudo apt install bind9-dnsutils

Syntax

dig [@SERVER] NAME [TYPE] [QUERY-OPTIONS]

Basic usage

dig example.com A

Common command-line options / controls

Option / control Purpose
@SERVER Choose the DNS server to query, for example @1.1.1.1.
+short Print a compact answer.
+noall +answer Suppress most sections and print the answer section only.
+trace Trace delegation from the DNS root toward the answer.
+tcp Send the query over TCP.
+time=SECONDS Set the wait time for a response.
+tries=COUNT Set how many query attempts to make.
-x IP Perform a reverse lookup for an IP address.

Examples

  1. Return a concise A-record answer
    dig example.com A +short

    Prints IPv4 address answers without the full response.

  2. Inspect MX records
    dig example.com MX +noall +answer

    Shows only the mail-exchanger answer section.

  3. Query TXT records through a chosen resolver
    dig @1.1.1.1 example.com TXT +short

    Requests TXT data from the specified DNS service.

  4. Review SOA data
    dig example.com SOA +noall +answer

    Displays the start-of-authority record and zone parameters.

  5. Trace DNS delegation
    dig example.com NS +trace

    Follows the delegation path from the root servers toward the domain.

Practical note: A successful lookup proves only that the queried resolver returned an answer at that moment. It does not prove that a discovered web service is reachable or secure.

Documentation: BIND 9 documentation

Back to tools list ↑

05

DNSDumpster

Browser-based DNS reconnaissance

DNSDumpster is a web-based reconnaissance service that aggregates public information to map visible hosts, DNS records, and related infrastructure. It draws on several public data sources, including certificate-transparency data, search sources, and web archives. There is no standard local command-line interface for the public website, so the examples below are browser workflows rather than terminal commands.

How to use / access

No local software installation is required for the public web interface. Open DNSDumpster.com in your browser.

Syntax

Browser workflow: open the service, submit an authorized domain or supported IP/CIDR search, then review the returned data.

Basic usage

1. Open DNSDumpster.
2. Enter a domain you own or are authorized to assess.
3. Submit the search and review the returned host and DNS information.

Common command-line options / controls

Option / control Purpose
Domain search Enter a domain to inspect publicly visible subdomains and DNS-related information.
IP/CIDR banner search The service also documents a separate network-oriented banner search for supported IP ranges.
Results view Review discovered hosts, records, relationships, and any available visualization.
Limits and access Query and result limits depend on the current service plan and may change.
Command-line flags Not applicable to the public web interface; do not assume an unofficial API is available.

Examples

  1. Search a domain
    Open the website and submit example.com.

    Review the resulting host and DNS information.

  2. Investigate one discovered hostname
    Run a domain search, then copy a listed hostname into dig or nslookup.

    Validate the record independently instead of assuming the aggregated result is current.

  3. Compare reported name servers
    Review the DNS results, then run dig example.com NS +noall +answer locally.

    Compare the service’s snapshot with a live DNS response.

  4. Use a network search only when in scope
    Use the service’s documented IP/CIDR banner-search interface for an owned or authorized range.

    This is a separate workflow from subdomain discovery; review the service’s terms and limits.

Practical note: DNSDumpster is a discovery aid, not an authoritative source. Verify important records with a DNS resolver and the organization’s own DNS configuration. The interface, free-tier limits, and returned data can change.

Documentation: DNSDumpster About & FAQ

Back to tools list ↑

06

assetfinder

Passive related-domain and subdomain discovery

assetfinder searches multiple public sources for domains and subdomains associated with a supplied domain. It is useful early in reconnaissance because it can gather possible hostnames without performing a large wordlist-driven DNS brute-force run. Results can include duplicates or records that are no longer active, so validate them afterward.

How to install

# Kali package
sudo apt update
sudo apt install assetfinder
# Or install with Go, if Go is configured
go install github.com/tomnomnom/assetfinder@latest

Syntax

assetfinder [--subs-only] DOMAIN

Basic usage

assetfinder --subs-only example.com

Common command-line options / controls

Option / control Purpose
–subs-only Limit output to subdomains of the domain supplied, excluding unrelated associated domains.
DOMAIN The root domain to research.
Shell pipes Use sort -u or tee to deduplicate and save output; these are shell utilities, not assetfinder flags.

Examples

  1. List related assets
    assetfinder example.com

    Searches for domains potentially related to the supplied root domain.

  2. Restrict results to subdomains
    assetfinder --subs-only example.com

    Filters output to subdomains of the supplied domain.

  3. Deduplicate the results
    assetfinder --subs-only example.com | sort -u

    Sorts results and removes duplicate lines.

  4. Save a subdomain list
    assetfinder --subs-only example.com | sort -u | tee assetfinder-subdomains.txt

    Prints unique results and saves them to a text file.

  5. Compare with another passive tool
    assetfinder --subs-only example.com > assetfinder.txt

    Stores results so they can be compared with other tool outputs.

Practical note: assetfinder has a deliberately small option set. Availability of individual upstream data sources can change, and some sources may require API credentials or stop returning results.

Documentation: assetfinder project

Back to tools list ↑

07

dnsmap

Wordlist-based subdomain brute forcing

dnsmap tests candidate hostnames against a domain using a built-in list or a list you provide. It can save human-readable and CSV output, and it supports a configurable delay. Despite sometimes being grouped with passive tools, dnsmap performs active DNS queries and should be used only on authorized domains.

How to install

sudo apt update
sudo apt install dnsmap

Syntax

dnsmap DOMAIN [OPTIONS]

Basic usage

dnsmap example.com

Common command-line options / controls

Option / control Purpose
-w FILE Use a custom hostname wordlist.
-r FILE Write human-readable results to a file.
-c FILE Write results as CSV.
-d MILLISECONDS Set the maximum randomized delay between queries.
-i IP Ignore a specified IP address to reduce known false positives.
–help or no arguments Display the available usage syntax on versions that support it.

Examples

  1. Run with the built-in wordlist
    dnsmap example.com

    Checks common candidate names using dnsmap’s internal list.

  2. Supply a custom wordlist
    dnsmap example.com -w /path/to/subdomains.txt

    Checks candidate names from the specified file.

  3. Save readable output
    dnsmap example.com -r dnsmap-results.txt

    Writes discovered names to a regular text report.

  4. Save CSV output
    dnsmap example.com -c dnsmap-results.csv

    Creates a comma-separated results file.

  5. Add a delay and save results
    dnsmap example.com -w /path/to/subdomains.txt -d 500 -r dnsmap-delayed.txt

    Introduces a randomized delay of up to the specified number of milliseconds between DNS lookups.

Practical note: Wildcard DNS can make random hostnames appear valid. Check whether the target uses wildcard records and confirm findings manually before classifying a hostname as real.

Documentation: Kali Tools: dnsmap

Back to tools list ↑

08

dnsrecon

Flexible DNS record and zone checks

DNSRecon supports standard record enumeration, common SRV checks, wordlist-based hostname discovery, reverse lookups, wildcard handling, and zone-transfer tests. Its modes let you choose a focused task rather than running every technique every time. Output can be saved in formats suitable for reporting and later processing.

How to install

sudo apt update
sudo apt install dnsrecon

Syntax

dnsrecon -d DOMAIN -t TYPE [OPTIONS]

Basic usage

dnsrecon -d example.com -t std

Common command-line options / controls

Option / control Purpose
-d DOMAIN Set the target domain.
-t TYPE Choose a mode such as std, brt, srv, axfr, rvl, crt, or caa; supported values vary by release.
-D FILE Use a dictionary for brute-force mode.
-n SERVER Choose a DNS server.
–threads N Set concurrency for supported lookups.
-a Include AXFR tests with standard enumeration on versions where documented.
-x FILE / -c FILE / -j FILE Save XML, CSV, or JSON output respectively in current versions.
-r RANGE Supply an IP range or CIDR for reverse lookup.

Examples

  1. Enumerate common DNS records
    dnsrecon -d example.com -t std

    Checks common records such as SOA, NS, A, AAAA, MX, and SRV.

  2. Run wordlist-based discovery
    dnsrecon -d example.com -t brt -D /path/to/subdomains.txt

    Tests candidate hostnames from a supplied dictionary.

  3. Check name servers for zone transfer
    dnsrecon -d example.com -t axfr

    Tests whether any name server permits an AXFR transfer; run only within an authorized assessment.

  4. Enumerate SRV records
    dnsrecon -d example.com -t srv

    Requests common service-location records.

  5. Save an XML report
    dnsrecon -d example.com -t std -x dnsrecon-report.xml

    Writes standard enumeration output to an XML file.

Practical note: DNSRecon evolves and package versions can differ. Run dnsrecon -h on the installed version before relying on a less common flag. Use active tests only against domains covered by the assessment.

Documentation: Kali Tools: dnsrecon

Back to tools list ↑

09

Fierce

DNS reconnaissance and IP-space discovery

Fierce is a DNS reconnaissance tool designed to locate hostnames and non-contiguous IP space associated with a target. In addition to checking likely subdomains, it can traverse nearby IP addresses, search specified related domains, and optionally test HTTP connections to discovered names.

How to install

# Kali / Debian
sudo apt update
sudo apt install fierce
# Alternative supported by the upstream project
python3 -m pip install fierce

Syntax

fierce --domain DOMAIN [OPTIONS]

Basic usage

fierce --domain example.com

Common command-line options / controls

Option / control Purpose
–domain DOMAIN Set the target domain.
–subdomains NAME [NAME …] Supply candidate subdomain labels to check.
–traverse COUNT Search nearby IP addresses around discovered hosts.
–search DOMAIN [DOMAIN …] Limit traversal to a specified set of related domains.
–connect Attempt HTTP connections to discovered domains.
–wide Expand discovery across a wider part of a nearby IPv4 range.
–dns-servers SERVER [SERVER …] Specify DNS servers; option details may vary by installed release.
–range CIDR Look up names across an explicitly supplied range, where supported.

Examples

  1. Run a basic reconnaissance pass
    fierce --domain example.com

    Starts DNS-focused discovery for the chosen domain.

  2. Check selected hostname labels
    fierce --domain example.com --subdomains www api mail

    Tests a short list of likely names.

  3. Explore nearby IP addresses
    fierce --domain example.com --subdomains www --traverse 10

    Traverses a limited number of nearby addresses around an identified host.

  4. Attempt HTTP connections to discovered hosts
    fierce --domain example.com --subdomains www --connect

    Checks whether discovered names respond over HTTP.

  5. Save a text log
    fierce --domain example.com > fierce-results.txt

    Redirects terminal output to a local file.

Practical note: Fierce may generate more requests when traversal or wide mode is used. Keep traversal narrow and respect authorization and network-rate rules.

Documentation: Fierce project

Back to tools list ↑

10

Subfinder

Fast passive subdomain enumeration

Subfinder is a ProjectDiscovery tool focused on passive subdomain discovery through public online sources. It supports multiple input domains, source selection, result filtering, JSON output, and provider configuration. Some data sources require API keys, so source coverage depends on local configuration.

How to install

# Kali package
sudo apt update
sudo apt install subfinder
# Or install using a compatible Go toolchain
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
# Ensure Go binaries are in PATH
export PATH="$PATH:$(go env GOPATH)/bin"

Syntax

subfinder -d DOMAIN [FLAGS]

Basic usage

subfinder -d example.com -silent

Common command-line options / controls

Option / control Purpose
-d DOMAIN Enumerate one domain.
-dL FILE Read several root domains from a file.
-all Use all supported sources; this may be slower.
-s SOURCES Select sources by name.
-o FILE Write output to a file.
-oJ Write JSON Lines output.
-silent Print only discovered subdomains.
-active Show only subdomains that resolve during active validation.
-r RESOLVERS Supply a comma-separated list of resolvers.
-rl RATE Set the maximum HTTP request rate where supported.

Examples

  1. Run passive discovery
    subfinder -d example.com

    Collects subdomain candidates from configured passive sources.

  2. Produce clean output
    subfinder -d example.com -silent

    Suppresses banner and status text so results are easier to pipe.

  3. Save results
    subfinder -d example.com -o subfinder-results.txt

    Writes discovered subdomains to a file.

  4. Enumerate multiple domains
    subfinder -dL domains.txt -oD results-by-domain

    Reads root domains from a file and writes per-domain output into a directory.

  5. Request JSON Lines output
    subfinder -d example.com -o subfinder.jsonl -oJ

    Saves structured JSON Lines output for automation.

Practical note: Passive does not mean complete. A hostname may be absent because a source does not know it, an API key is missing, or the provider limits its results. Follow up with controlled validation.

Documentation: ProjectDiscovery Subfinder

Back to tools list ↑

11

Aquatone

Visual review of discovered web hosts

Aquatone accepts hostnames, URLs, IP addresses, or supported scan output through standard input, then checks web services and creates screenshots and an HTML report. It is a downstream triage tool rather than a DNS enumeration utility. The original GitHub repository was archived in January 2023, so confirm compatibility and security requirements before adding it to a current workflow.

How to install

Install Chromium or a compatible Chrome browser.
Download the appropriate Aquatone release from its upstream releases page.
Extract the archive and put the aquatone binary in a directory on PATH.
Repository: https://github.com/michenriksen/aquatone (archived)

Syntax

COMMAND_THAT_PRODUCES_HOSTS | aquatone [OPTIONS]

Basic usage

cat hosts.txt | aquatone -out ./aquatone-report

Common command-line options / controls

Option / control Purpose
-out DIR Choose the directory for reports and artifacts.
-ports LIST Set the HTTP-related ports to inspect, such as small or medium aliases or a comma-separated list.
-threads N Set the number of concurrent workers.
-chrome-path PATH Specify the Chromium/Chrome executable path.
-nmap Interpret input as Nmap/Masscan XML.
-http-timeout MS Set the HTTP request timeout in milliseconds.
-save-body=false Skip saving fetched response bodies.
-silent Suppress most normal output.

Examples

  1. Review a discovered host list
    cat hosts.txt | aquatone -out ./aquatone-example

    Processes a file of discovered hosts and writes an HTML report and related artifacts.

  2. Use a smaller port set
    cat hosts.txt | aquatone -ports small -out ./aquatone-small

    Checks the tool’s small preset of commonly used web ports.

  3. Choose selected ports and worker count
    cat hosts.txt | aquatone -ports 80,443,8080 -threads 8 -out ./aquatone-web

    Sets a custom port list and concurrency.

  4. Process Nmap XML results
    cat scan.xml | aquatone -nmap -out ./aquatone-nmap

    Uses an Nmap/Masscan XML input file rather than a plain hostname list.

  5. Reduce disk usage
    cat hosts.txt | aquatone -save-body=false -out ./aquatone-light

    Skips response-body storage while retaining the report workflow.

Practical note: Aquatone visits discovered hosts and may connect to several ports. Confirm all hosts are in scope. Because the upstream repository is archived, consider maintained alternatives when compatibility or patching is a requirement.

Documentation: Aquatone project (archived)

Back to tools list ↑

12

Gobuster

DNS subdomain and web-path discovery

Gobuster is a Go-based tool with several modes. Its DNS mode tests candidate subdomain labels against a domain using a wordlist; other modes cover web directories and files, virtual hosts, and more. This section focuses on DNS mode, which is active brute-force enumeration.

How to install

# Kali / Debian
sudo apt update
sudo apt install gobuster
# Optional wordlists package on Kali/Debian
sudo apt install seclists

Syntax

gobuster dns -do DOMAIN -w WORDLIST [OPTIONS]

Basic usage

gobuster dns -do example.com -w /path/to/subdomains.txt

Common command-line options / controls

Option / control Purpose
dns Select DNS enumeration mode.
-do DOMAIN Set the domain to enumerate in DNS mode.
-w FILE Provide the candidate-name wordlist.
-t N Set the number of concurrent threads.
-r SERVER:PORT Use a specific DNS resolver.
-o FILE Write results to a file.
-i Show IP addresses with discovered subdomains, where supported by the installed version.
–timeout DURATION Adjust the request timeout where supported; check gobuster dns –help for exact current syntax.

Examples

  1. Run DNS mode
    gobuster dns -do example.com -w /path/to/subdomains.txt

    Checks each candidate label from the wordlist.

  2. Use a specific resolver
    gobuster dns -do example.com -w /path/to/subdomains.txt -r 1.1.1.1:53

    Sends DNS queries to the specified resolver.

  3. Set moderate concurrency and save output
    gobuster dns -do example.com -w /path/to/subdomains.txt -t 20 -o gobuster-dns.txt

    Runs with 20 threads and records output in a file.

  4. Include resolved IP addresses
    gobuster dns -do example.com -w /path/to/subdomains.txt -i

    Displays IP information alongside discovered subdomains when supported.

  5. Check the installed DNS-mode flags
    gobuster dns --help

    Shows the exact set of options supported by the installed release.

Practical note: Gobuster is active, wordlist-driven enumeration. Start with a small list and conservative concurrency, and handle wildcard DNS to avoid false positives. Flags can differ between major releases.

Documentation: Gobuster project

Back to tools list ↑

13

shuffledns

High-speed DNS resolution and brute forcing

shuffledns is a Go wrapper around MassDNS. It supports active wordlist-based subdomain enumeration, resolving a pre-existing candidate list, and filtering with wildcard handling. It needs the MassDNS binary, a resolver list, and an appropriate wordlist for most enumeration workflows.

How to install

# Install MassDNS using the system package manager where available
sudo apt update
sudo apt install massdns golang-go
# Install shuffledns with a compatible Go toolchain (upstream currently documents Go 1.24+)
go install -v github.com/projectdiscovery/shuffledns/cmd/shuffledns@latest
# Ensure Go binaries are in PATH
export PATH="$PATH:$(go env GOPATH)/bin"
# Check installed versions
massdns -h
shuffledns -h

Syntax

shuffledns -d DOMAIN -w WORDLIST -r RESOLVERS -mode bruteforce [OPTIONS]

Basic usage

shuffledns -d example.com -w /path/to/subdomains.txt -r /path/to/resolvers.txt -mode bruteforce

Common command-line options / controls

Option / control Purpose
-d DOMAIN Choose the root domain to find or resolve subdomains for.
-w FILE Supply words to append to the target domain during brute force.
-l FILE Supply a list of full hostnames to resolve.
-r FILE Set a list of DNS resolvers.
-tr FILE Set a list of trusted resolvers.
-mode MODE Choose bruteforce, resolve, or filter mode.
-t N Set MassDNS concurrency; high values can generate substantial DNS traffic.
-o FILE Write results to a file.
-sw Enable strict wildcard checking.
-m PATH Specify the MassDNS executable if it is not auto-detected.

Examples

  1. Brute-force candidate subdomains
    shuffledns -d example.com -w /path/to/subdomains.txt -r /path/to/resolvers.txt -mode bruteforce

    Tests wordlist candidates and uses the resolver list supplied.

  2. Resolve a known candidate list
    shuffledns -d example.com -l candidates.txt -r /path/to/resolvers.txt -mode resolve

    Checks which names in a candidate file resolve.

  3. Save brute-force results
    shuffledns -d example.com -w /path/to/subdomains.txt -r /path/to/resolvers.txt -mode bruteforce -o shuffledns-results.txt

    Writes results to a text file.

  4. Use strict wildcard checking
    shuffledns -d example.com -w /path/to/subdomains.txt -r /path/to/resolvers.txt -mode bruteforce -sw

    Applies stricter wildcard checks to reduce false positives.

  5. Use a custom MassDNS path
    shuffledns -d example.com -w /path/to/subdomains.txt -r /path/to/resolvers.txt -mode bruteforce -m /usr/bin/massdns

    Explicitly identifies the MassDNS executable.

Practical note: The default concurrency may be very high. Reduce it where appropriate, use reliable resolver lists, watch for DNS-provider limits, and do not run large brute-force jobs against domains without permission.

Documentation: ProjectDiscovery shuffledns

Back to tools list ↑

A practical DNS analysis workflow

  1. Start with direct records. Query A/AAAA, NS, MX, SOA, TXT, and CAA with dig or nslookup.
  2. Gather passive candidates. Compare results from Subfinder, assetfinder, and DNSDumpster. Keep source and timestamp information when possible.
  3. Validate names carefully. Resolve candidate subdomains, remove duplicates, and account for wildcard DNS or stale public records.
  4. Run active checks only if authorized. Use a small wordlist and restrained concurrency with dnsenum, dnsmap, DNSRecon, Fierce, Gobuster DNS mode, or shuffledns.
  5. Review web hosts separately. Aquatone can help visualize already-discovered hosts, but it may connect to several ports and the upstream project is archived.
  6. Record evidence. Save commands, tool versions, timestamps, source data, and results. Confirm significant findings with the authoritative DNS configuration or the system owner.

How to interpret results

A discovered hostname is not necessarily online, owned by the target organization today, or exposed to the public internet. DNS caching, split-horizon DNS, content delivery networks, wildcard records, third-party services, and stale certificates can all affect results. Resolve important names, inspect the returned record chain, and validate reachability only when that check is in scope.

Final checklist

  • Confirm written authorization and domain scope.
  • Prefer passive sources before high-volume active queries.
  • Use low concurrency and suitable delays for wordlist scans.
  • Validate wildcard DNS and stale records to reduce false positives.
  • Store findings securely and avoid publishing sensitive internal hostnames or exposed infrastructure details without approval.

Tool interfaces, package names, provider APIs, and default options change over time. Confirm the exact help output and official documentation for the version installed on your system.

DNS Analysis Guide · Educational and defensive use · Always follow applicable laws, provider terms, and assessment scope.

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

BACK TO TOP