likexian / whois

Whois client for domain and ip whois information query in Go(Golang).
Apache License 2.0
382 stars 70 forks source link

whois for IP 34.202.253.227 fails #35

Closed Skeeve closed 1 year ago

Skeeve commented 1 year ago

When querying for whois of IP 34.202.253.227 I get the following result

#
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: https://www.arin.net/resources/registry/whois/tou/
#
# If you see inaccuracies in the results, please report at
# https://www.arin.net/resources/registry/whois/inaccuracy_reporting/
#
# Copyright 1997-2023, American Registry for Internet Numbers, Ltd.
#

% Query time: 992 msec
% WHEN: Fri May 26 11:07:35 CEST 2023

When querying online, I get a result

likexian commented 1 year ago

Hello @Skeeve It works for me, please change your ip/server and try again.

Skeeve commented 1 year ago

What do you mean by that? Isn't the package supposed to use the correct whois-server on its own?

Ah! I think I got it!

    result, err := whois.Whois(ip.String(), "whois.iana.org")
likexian commented 1 year ago

The package works fine. It is that your IP is limited by the whois server.

Skeeve commented 1 year ago

Yes. I noticed it. After setting the server to iana.org everything worked.

Unfortunately, but an issue is already open, the parser package cannot parse IP WHOIS results.

If only I knew more about the kind of data the reverse lookup gives, maybe I could invest a few hours in implementing parsing them.

likexian commented 1 year ago

Thanks. You are very welcome to implementing the ip parsing.

Skeeve commented 1 year ago

If only I knew where to get each information from ;)

likexian commented 1 year ago

You are professional !

Skeeve commented 1 year ago

Not really. I fiddle around. Sometimes I succeed.

likexian commented 1 year ago

^_^