[TriLUG] country ip database for free?
James Manning
jmm at sublogic.com
Mon Dec 1 15:30:39 EST 2003
> 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
More information about the TriLUG
mailing list