Dnsx
Fast DNS query tool by ProjectDiscovery
Recon & OSINT12 commands
#dns#recon#query#projectdiscovery
Installation
1Install Go 1.21+ on your system
2Run the Go install command
3Verify installation
go install github.com/projectdiscovery/dnsx/cmd/dnsx@latest
# Verify
dnsx -versionBasic Usage
Dnsx is a fast, multi-purpose DNS toolkit for querying various DNS record types at scale
# Query A records
dnsx -d example.com -a
# Query multiple record types
dnsx -d example.com -a -aaaa -cname -mx -txt
# Bulk query from file
cat domains.txt | dnsx -a -o results.txt
# With custom resolvers
dnsx -d example.com -r resolvers.txt
# JSON output
dnsx -d example.com -a -jsonCommand Reference
12 commands
1Target domain
-d2Query A record
-a3Query AAAA record
-aaaa4Query CNAME record
-cname5Query MX record
-mx6Query TXT record
-txt7Query NS record
-ns8Custom resolvers file
-r9Output file path
-o10JSON output format
-json11Show only results
-silent12Retry attempts on failure
-retryWhen to Use
1
Bulk DNS resolution of subdomains2
Checking CNAMEs for takeover vectors3
Validating discovered subdomains4
DNS record fingerprints and mappingNotes & Tips
1
Extremely fast — built on retryablehttp with concurrency2
Pipes well with subfinder, assetfinder, etc.3
Supports wildcard detection4
Can output in JSON, CSV, or stdoutCommon Errors & Solutions
No results returned
Check that resolvers are working; use -r with a list of public resolvers
Too many open files error
Reduce concurrency with -t flag (default: 25)