pogzyb / asyncwhois

Python WHOIS and RDAP utility for querying and parsing information about Domains, IPv4s, IPv6s, and AS numbers
MIT License
63 stars 18 forks source link

.org domains #67

Closed menshatov closed 1 year ago

menshatov commented 1 year ago

Hi, I've got a strange error when try to get whois of .org domains: result = asyncwhois.whois_domain('iana.org') Traceback (most recent call last): File "", line 1, in ... socket.gaierror: [Errno 11001] getaddrinfo failed

result = asyncwhois.whois_domain('domain.org') Traceback (most recent call last): File "", line 1, in ... socket.gaierror: [Errno 11001] getaddrinfo failed

result = asyncwhois.whois_domain('nlmk.org') Traceback (most recent call last): File "", line 1, in ... socket.gaierror: [Errno 11001] getaddrinfo failed

pogzyb commented 1 year ago

Thanks for finding this! I'm surprised this hasn't been raised before. I found the underlying issue, made some modifications to handle these scenarios, and tested with the domains you mentioned. I want to test a bit more, but should get a release out sometime later today or tomorrow the latest with these changes.

pogzyb commented 1 year ago

This should be handled in v1.0.9. Please let me know if the error persists or if you find any other bugs. Thanks again.