-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
Make WHOIS lookup fail gracefully #231
Comments
Upon further inspection, (at least) .ph apparently returns an empty 'refer':
For comparison, for .com:
This -obviously- confuses dnstwist. |
Could you please provide domain name and DNS resolver (if publicly available) so I can reproduce this issue? |
Meanwhile I pushed some changes which hopefully should resolve this. |
Did you see my follow-up comment (#231 (comment))? |
Empty refer fields are skipped. Initially domain name for IANA server is resolved which seems to be the cause in your network. Commit 464bb42 should resolve it. |
When
--whois
is enabled, and one lookup fails, dnstwist dies with an exception such as:As you can see, the WHOIS server 'refers' to another. In this case, it's
whois.iana.org
, and I don't know why it fails. But that's irrelevant to this issue; I believe such a situation should be handled gracefully, by skipping the domain silently and logging this to the debug log. After all, not all registries provide reliable WHOIS servers.The text was updated successfully, but these errors were encountered: