jsmitty12 / phpWhois

phpWhois general repository
GNU General Public License v2.0
58 stars 20 forks source link

IPV6 results seem to all point to ::/0 #76

Open blakethepatton opened 3 years ago

blakethepatton commented 3 years ago

First off, thanks for making a fork that's not dead.

$whois = new Whois();
$result = $whois->lookup('2607:f8b0:4007:811:0:0:0:200e');

Seems to get you the most generic result...

       "inet6num:       ::/0",
       "netname:        IANA-BLK",
       "descr:          The whole IPv6 address space",

When querying whois in console whois 2607:f8b0:4007:811:0:0:0:200e I get different results with more useful information

NetRange:       2607:F8B0:: - 2607:F8B0:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF
CIDR:           2607:F8B0::/32
NetName:        GOOGLE-IPV6

I'm not sure what to make of this, mostly posing this to the community in case someone knows more than me about what's going on with ipv6 addresses and how I should address this problem. I suspect that I'll just end up needing to specify a different whois server.

jsmitty12 commented 3 years ago

I have not delved into the IPv6 support for phpWhois yet as I've been focusing on cleaning up the rest of the mess that is here.

DNSstuff gives the details I would expect to see, so there's obviously something amiss in the phpWhois code. I'll try to look into this as I have time, but I would welcome a PR with a fix!

https://tools.dnsstuff.com/#whois|type=ipv6&&value=2607:f8b0:4007:811:0:0:0:200e

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avg.com http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Wed, Oct 28, 2020 at 5:24 PM Blake Patton notifications@github.com wrote:

First off, thanks for making a fork that's not dead.

$whois = new Whois(); $result = $whois->lookup('2607:f8b0:4007:811:0:0:0:200e');

Seems to get you the most generic result...

   "inet6num:       ::/0",
   "netname:        IANA-BLK",
   "descr:          The whole IPv6 address space",

When querying whois in console whois 2607:f8b0:4007:811:0:0:0:200e I get different results with more useful information

NetRange: 2607:F8B0:: - 2607:F8B0:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF CIDR: 2607:F8B0::/32 NetName: GOOGLE-IPV6

I'm not sure what to make of this, mostly posing this to the community in case someone knows more than me about what's going on with ipv6 addresses and how I should address this problem. I suspect that I'll just end up needing to specify a different whois server.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jsmitty12/phpWhois/issues/76, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEPD2U6WLFWW6OIISR3FTSNCDXRANCNFSM4TC4LIAA .