LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

dnsx

fast multi-purpose DNS toolkit

TLDR

Resolve A records for domains
$ cat [domains.txt] | dnsx -a
copy
Resolve multiple record types
$ cat [domains.txt] | dnsx -a -aaaa -mx -ns
copy
Resolve with custom resolver
$ cat [domains.txt] | dnsx -r [8.8.8.8]
copy
Output in JSON format
$ cat [domains.txt] | dnsx -json
copy
Brute force subdomains
$ dnsx -d [domain.com] -w [wordlist.txt]
copy
Reverse DNS lookups
$ cat [ips.txt] | dnsx -ptr
copy
Rate limit requests
$ cat [domains.txt] | dnsx -rate-limit [100]
copy

SYNOPSIS

dnsx [options]

DESCRIPTION

dnsx is a fast, multi-purpose DNS toolkit designed for security reconnaissance. It runs DNS queries efficiently, supporting multiple record types, custom resolvers, and high-performance parallel execution.
The tool excels at bulk DNS operations including resolution, reverse lookups, and subdomain brute forcing. It accepts input from stdin, making it easy to integrate into reconnaissance pipelines with other tools.
dnsx supports wildcard filtering, retries, and various output formats. Its focus on performance makes it suitable for large-scale DNS enumeration tasks.

PARAMETERS

-a

Query A records.
-aaaa
Query AAAA records.
-mx
Query MX records.
-ns
Query NS records.
-ptr
Query PTR records.
-cname
Query CNAME records.
-d DOMAIN
Target domain for subdomain brute force.
-w FILE
Wordlist for brute force.
-r RESOLVER
Custom DNS resolver.
-json
Output in JSON format.
-rate-limit N
Max queries per second.
-help
Display help information.

CAVEATS

High query rates may trigger rate limiting or blocks. Only perform on authorized targets. Large wordlists consume time and may be detected. DNS responses may be cached or manipulated.

HISTORY

dnsx was developed by ProjectDiscovery, creators of other security tools like nuclei and httpx. It was released as part of their open-source security toolkit to provide fast, reliable DNS operations for reconnaissance workflows.

SEE ALSO

dig(1), massdns(1), shuffledns(1)

Copied to clipboard
Kai