Skip Menu |

This queue is for tickets about the IP-Country CPAN distribution.

Report information
The Basics
Id: 47436
Status: resolved
Priority: 0/
Queue: IP-Country

People
Owner: Nobody in particular
Requestors: aaron [...] dancygier.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: At&t wireless IP address are recognized as coming from GB
At&t wireless ip addresses seem to return Great Britain "GB". See the simple script below which checks country based on ip with an at&t wireless broadband card ip I recently got. #!/usr/bin/perl use strict; use IP::Country; my $reg = IP::Country::Fast->new(); print $reg->inet_atocc('32.178.61.176') ."\n"; [adancygier@thor ~]$ ./ip_country.pl GB I have seen the same behavior using an iphone on at&t's network. See the attached screenshot which show the proper identification of the ip addresss to location. --Aaron
Subject: ip-country-bug1.JPG
Download ip-country-bug1.JPG
image/jpeg 156.9k
ip-country-bug1.JPG
Forgot to mention that I have tested with both version 2.25 and 2.26. --Aaron
NOT A BUG AT&T have registered the same IP range with both ARIN and RIPE. In ARIN, they have registered as US, in RIPE they say GB. This is AT&T's problem. To check RIPE, from the command line: Show quoted text
> whois -h whois.ripe.net 32.178.61.176
[Querying whois.ripe.net] [whois.ripe.net] % This is the RIPE Database query service. % The objects are in RPSL format. % % The RIPE Database is subject to Terms and Conditions. % See http://www.ripe.net/db/support/db-terms-conditions.pdf % Note: This output has been filtered. % To receive output for a database update, use the "-B" flag. % Information related to '32.0.0.0 - 32.255.255.255' inetnum: 32.0.0.0 - 32.255.255.255 netname: ATT32NET descr: For routing issues, email noc@attglobal.net descr: For abuse issues, email abuse@attglobal.net country: GB admin-c: DR7890-RIPE tech-c: DR7890-RIPE status: ASSIGNED PA mnt-by: MAINT-AS2686 source: RIPE # Filtered person: Dani Rueegg address: AT&T Global RIPE ADMIN phone: +1 e-mail: drueegg5@agns.ch nic-hdl: DR7890-RIPE mnt-by: maint-as2686 source: RIPE # Filtered % Information related to '32.0.0.0/8AS2686' route: 32.0.0.0/8 descr: For routing issues, email noc@attglobal.net descr: For addressing issues, email euabsipa@emea.att.com descr: For abuse issues, email abuse@attglobal.net origin: AS2686 mnt-by: MAINT-AS2686 source: RIPE # Filtered