> Is there a database for free that maps ip addresses to countries?  How
> about the reverse - country to ip address?  

Usually you can hit ARIN up and they'll point you at the correct
registry for the IP if they're not it.  This isn't fool-proof by any
means of course.

for instance, 195.71.90.10

% whois -h whois.arin.net 195.71.90.10
[snip]
ReferralServer: whois://whois.ripe.net
[snip]

 whois -h whois.ripe.net 195.71.90.10
[snip]
inetnum:      195.71.0.0 - 195.71.255.255
netname:      DE-MEDIAWAYS-970127
descr:        PROVIDER Local Registry
descr:        Telefonica Deutschland GmbH
country:      DE
[snip]

The reverse doesn't really make sense unless I'm misunderstanding you
- there's no direct correlation of network address blocks to specific
countries that I know of, although you might be able to try different
queries against the big ones (ripe.net, apnic.net, arin.net, etc) for
particular countries (like resolving www.de to the above example IP)
-- 
James Manning <http://www.sublogic.com/james/>
GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7  9C8E A0BF B026 EEBB F6E4
-- 
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc

Reply via email to