Skip to content

dnsx

11 commands

A fast, multi-purpose DNS toolkit from ProjectDiscovery: bulk resolution, record lookups, brute forcing and filtering, built for recon pipelines.

  • DNS
  • recon
  • resolution
  • ProjectDiscovery

Install dnsx

sudo apt install dnsx

Resolving4

dnsx -l <file> -silent

Resolves a list of hosts and keeps only the ones that exist.

Link
dnsx -l <file> -a -resp

Shows A records next to each host.

Link
subfinder -d <domain> -silent | dnsx -silent

Filters a subdomain list down to live names.

Link
dnsx -l <file> -cname -resp

Shows CNAME targets — useful for spotting subdomain-takeover candidates.

Link

Record types4

dnsx -l <file> -mx -resp

Mail servers.

Link
dnsx -l <file> -ns -resp

Name servers.

Link
dnsx -l <file> -txt -resp

TXT records in bulk.

Link
dnsx -d <domain> -w <wordlist> -silent

DNS brute forcing with a wordlist using the {domain} placeholder.

Link

Advanced3

dnsx -l <file> -ptr -resp-only

Reverse lookups for a list of IPs.

Link
dnsx -l <file> -rcode noerror,nxdomain

Filters by DNS response code.

Link
dnsx -l <file> -r <resolvers>

Uses a custom resolver list for speed and reliability.

Link