dnsx
$ dnsx Official Low RiskProjectDiscovery's dnsx performs fast concurrent DNS resolution, record querying (-a, -aaaa, -cname, -mx, -txt, -ptr), and wildcard filtering across single domains or stdin lists. Designed for pipelines and agents with -j/-json NDJSON output, -silent, -nc (-no-color), and -rl rate limiting.
brew install dnsx Streams high-speed concurrent DNS record lookups as NDJSON (dnsx -j -silent); direct CLI piping into jq outperforms any MCP tool.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
First-class -j/-json NDJSON output, -silent banner suppression, -nc no-color flag, stdin streaming, and clean non-interactive execution.
- Native
-j/-jsonstructured NDJSON output -silentand-ncflags keep stdout clean for pipelines
Read-only DNS queries with built-in -rl rate limits, though high default concurrency (-t 100) or -w brute-forcing requires scoping.
- Read-only DNS resolution; supports
-rlrate limiting
Single static Go binary available via brew install dnsx, go install, Docker, and GitHub Releases.
- Single Go binary across macOS, Linux, Windows
Queries all common record types, supports custom resolvers (-r), wildcard detection, and batch resolution in one tool.
- Concurrent batch DNS querying with
-respand record-type flags
Official ProjectDiscovery tool (projectdiscovery/dnsx) under MIT license.
- Actively maintained
projectdiscovery/dnsxrepo
Clear official documentation at docs.projectdiscovery.io and thorough dnsx -h flag reference.
- Official ProjectDiscovery docs and
dnsx -h
Security, Auth & Guardrails
No credentials required for standard DNS lookups.
Free, MIT-licensed open-source Go binary from ProjectDiscovery.
# dnsx Agent Rules - Always include `-j -silent` (and `-nc` if needed) so ASCII banners do not pollute JSON output. - Set `-rl <rate>` when passing large lists or `-w` wordlists to avoid saturating local or upstream DNS resolvers.
Agent-Ready Command Recipes
Safe Read-Only Queries
echo example.com | dnsx -a -aaaa -txt -resp -j -silent
Resolves multiple DNS record types for example.com and emits one structured JSON object (-j) without ASCII banners (-silent).
dnsx -l hosts.txt -a -resp -rl 50 -j -silent
Resolves domains from hosts.txt capped at 50 queries/sec (-rl 50) in NDJSON format.
Strengths for Agents
- +
-j -silentproduces clean, pipeline-ready NDJSON records with full answer payloads (-resp). - + Supports stdin streaming, custom resolvers (
-r), and rate limiting (-rl).
Caveats & Pitfalls
- ! Prints an ASCII art banner by default unless
-silentis passed. - ! Default high concurrency (
-t 100) should be throttled with-rlon shared networks.