-
Notifications
You must be signed in to change notification settings - Fork 875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cname probe not work #239
Comments
projectdiscovery/httpx#239 describes that -cname flag not work because fastdialer doesn't query for cname, so the result can't be found in cache. This commit add function GetDNSDataWithCName to support cname query which could be called in httpx. Resolves: projectdiscovery/httpx#239 See also: projectdiscovery/httpx#108
I have make a pr projectdiscovery/fastdialer#11 , it is ugly but seems will work |
test $cat h1.txt
https://www.hackerone.com
https://api.hackerone.com
https://mta-sts.hackerone.com
https://mta-sts.managed.hackerone.com
https://support.hackerone.com
https://mta-sts.forwarding.hackerone.com
https://docs.hackerone.com
https://resources.hackerone.com
test $cat h1.txt | httpx -silent -cname
https://docs.hackerone.com [hacker0x01.github.io]
https://mta-sts.managed.hackerone.com [hacker0x01.github.io]
https://mta-sts.hackerone.com [hacker0x01.github.io]
https://api.hackerone.com
https://support.hackerone.com [hackerone.zendesk.com]
https://resources.hackerone.com [read.uberflip.com]
https://www.hackerone.com
https://mta-sts.forwarding.hackerone.com [hacker0x01.github.io] @iflody this works for me, I'm unable to reproduce this, on what system you running this, as per banner you are on the latest version of httpx. |
Thanks for your reply, I try to clear my dns cache locally, and it just works, I can't repeat this bug again, sorry. My system is MacOS Big Sur |
Np @iflody, thanks for confirming this, can we close this issue now and related PR? |
Yes, I will do it. |
-cname - does not work in latest build . Any work around for this ? |
Thanks for the quick fix. From where do I get this latest build ? |
@nvdadt fix is merged into |
Thanks @ehsandeep this worked. Please let me know when this goes to new build. |
@nvdadt this is now fixed in the latest release. |
In pr #108 seems that cname probe has been added, but when I try it locally it seems that not work,
Use the test case in the original pr:
When I dig into source code I find that in internal/runner/runner.go:
and in fast dialer GetDNSData function:
It call retryabledns's Resolve function which only query for the A record:
So I think it is the root cause? I think the fastdialer need to add an function for A|CNAME type record.
The text was updated successfully, but these errors were encountered: