dnsx Command Examples

A fast and multi-purpose DNS toolkit to run multiple DNS queries. Note: input to dnsx needs to be passed through stdin (pipe |) in some cases. See also: dig, dog, dnstracer. More information: https://github.com/projectdiscovery/dnsx.

echo {{example.com}} | dnsx -a -re

dnsx -recon -re <<< {{example.com}}

echo {{example.com}} | dnsx -re -{{a|aaaa|cname|ns|txt|srv|ptr|mx|soa|any|axfr|caa}}

echo {{example.com}} | dnsx -ro

echo {{example.com}} | dnsx -{{debug|raw}} -resolver {{1.1.1.1,8.8.8.8,...}} -retry {{number}}

dnsx -domain {{FUZZ.example.com}} -wordlist {{path/to/wordlist.txt}} -re

dnsx -domain {{path/to/domain.txt}} -wordlist {{path/to/wordlist.txt}} -re -output {{path/to/output.txt}} -no-color

subfinder -silent -d {{example.com}} | dnsx -cname -re -rl {{number}}