projectdiscovery / dnsx

dnsx is a fast and multi-purpose DNS toolkit allow to run multiple DNS queries of your choice with a list of user-supplied resolvers.
https://docs.projectdiscovery.io/tools/dnsx
MIT License
2.16k stars 238 forks source link

`-ptr` flag combined with one of `-mx`, `-ns`, `-txt`, `caa`, `-srv`, `-axfr`, `-soa` doesn't return anything #762

Closed ocervell closed 5 days ago

ocervell commented 6 days ago

If I run:

echo 8.8.8.8 | dnsx -resp -a -aaaa -cname -mx -ns -txt -srv -ptr -soa -axfr -caa -threads 50

I'm getting 0 results.

If I run with just -ptr flag, it returns the PTR record:

echo 8.8.8.8 | dnsx -resp -ptr -threads 50
8.8.8.8 [PTR] [dns.google] 

Note that -recon works.

I try to 'bisect' to find which flags causes the issue, and it seems the problem is when adding one of the flags -mx, -ns, -txt, -caa, -srv, -axfr, -soa I'm not getting PTR results anymore.

dogancanbakir commented 5 days ago

There is an implicit decision to reduce the exec time https://github.com/projectdiscovery/dnsx/blob/dev/libs/dnsx/dnsx.go#L136. That's also the reason behind why -recon works. Feel free to reopen if you have any other questions.