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
Failure performing query when Registrar WHOIS Server
line in WHOIS record has http://
#28
Comments
I've looked into it, but I can't find enough information to confirm the specific format requirements for the WHOIS server in the These references seem to suggest that the expected format is to omit
Based on that information and the examples I've found/reviewed thus far, it looks like the record I encountered with this line:
should be updated to remove the Would you be willing to update this library to handle removing any leading protocol scheme and |
I looked closer and found that the leading protocol scheme and Are you open to creating a new tag for a48608e? |
Hello @atc0005 If you think this repository is helpful, please share it with friends, thanks. |
Hi,
First of all, many thanks for this useful library. I've used it and the whois-parse library in a Nagios plugin to monitor the expiration date of WHOIS registrations.
I recently had a user of the plugin report an issue with monitoring the expiration for a specific domain. After troubleshooting, I found that this error message:
dial tcp: address tcp///whois.pairdomains.com: unknown port
is related to this line:
If we override the WHOIS server used by explicitly specifying the whois server as whois.iana.org (which seems to be the default), the error is not encountered. This seems to be because of this code path:
whois/whois.go
Lines 122 to 124 in a48608e
Here the port is explicitly set to the default, ignoring any potential port specified in the
Registrar WHOIS Server
line.If we don't explicitly specify the whois server, then this path is taken:
whois/whois.go
Lines 125 to 134 in a48608e
and in the
getServer
function this logic is applied:whois/whois.go
Lines 235 to 239 in a48608e
The text was updated successfully, but these errors were encountered: