projectdiscovery / dnsprobe

DNSProb is a tool built on top of retryabledns that allows you to perform multiple dns queries of your choice with a list of user supplied resolvers.
https://projectdiscovery.io/open-source
MIT License
276 stars 56 forks source link

Adding support to only return the answer #7

Closed ehsandeep closed 4 years ago

ehsandeep commented 4 years ago

Current flow:-

root@b0x:~# query_domain hackerone.com | dnsprobe -r cname
docs.hackerone.com hacker0x01.github.io.
mta-sts.hackerone.com hacker0x01.github.io.
mta-sts.managed.hackerone.com hacker0x01.github.io.
support.hackerone.com hackerone.zendesk.com.
mta-sts.forwarding.hackerone.com hacker0x01.github.io.

After adding flag support to only return the answer:-

root@b0x:~# query_domain hackerone.com | dnsprobe -r cname -only-ans
hacker0x01.github.io.
hacker0x01.github.io.
hacker0x01.github.io.
hackerone.zendesk.com.
hacker0x01.github.io.

-only-ans can be updated with any flag or name which makes more sense to the feature.

Usecase:-

Piping out the result to any other tools to process IP or CNAME