Subject: | IPv6 addresses rejected |
Date: | Tue, 3 Sep 2013 10:06:31 -0600 |
To: | bug-Net-Whois-IP [...] rt.cpan.org |
From: | Andrew Hoying <andrew [...] wolftrail.com> |
The Net::Whois::IP module works with IPv6 addresses if the IPv4 check is
commented out. Please update the module to check for IPv4 or IPv6 addresses
and accept both of them. Example output with the IPv4 check commented out:
# perl
use Net::Whois::IP qw(whoisip_query);
use Data::Dumper;
my $r = whoisip_query('2607:f8b0:4001:c00::67');
print Dumper($r);
$VAR1 = {
'NetName' => 'GOOGLE-IPV6',
'Address' => '1600 Amphitheatre Parkway',
'NetType' => 'Direct Allocation',
'City' => 'Mountain View',
'Ref' => 'http://whois.arin.net/rest/org/GOGL',
'OrgTechName' => 'Google Inc',
'OrgName' => 'Google Inc.',
'Parent' => 'NET6-2600-1',
'OrgTechRef' => 'http://whois.arin.net/rest/poc/ZG39-ARIN',
'OrgAbuseHandle' => 'ZG39-ARIN',
'OrgTechPhone' => '+1-650-253-0000 ',
'NetRange: 2607:F8B0:' => '-
2607:F8B0:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF',
'OriginAS' => 'AS15169, AS22577',
'OrgTechHandle' => 'ZG39-ARIN',
'OrgAbuseName' => 'Google Inc',
'PostalCode' => '94043',
'OrgAbusePhone' => '+1-650-253-0000 ',
'NetHandle' => 'NET6-2607-F8B0-1',
'OrgId' => 'GOGL',
'RegDate' => '2000-03-30',
'CIDR' => '2607:F8B0::/32',
'StateProv' => 'CA',
'Updated' => '2013-08-07',
'OrgAbuseRef' => 'http://whois.arin.net/rest/poc/ZG39-ARIN',
'OrgAbuseEmail' => 'arin-contact@google.com',
'Country' => 'US',
'# available at' => 'https://www.arin.net/whois_tou.html',
'OrgTechEmail' => 'arin-contact@google.com'
};