nanog mailing list archives
IPv4 country of origin
From: Ralph Doncaster <ralph () istop com>
Date: Wed, 2 Oct 2002 23:21:04 -0400 (EDT)
I would like to restrict access from certain countries to content on my network (for security and legal reasons). So far the best algorithm I've been able to come up with is a combination of reverse DNS and APNIC/ARIN/RIPE whois queries. I've written a perl cgi that checks reverse DNS first, and if there is no gtld country code for the reverse mapping, does a whois query and parses the response for the address. The problem I have is that the country for the company that owns the IP block is sometimes not the country the IP block is used in. For example sungold22.de.ibm.com 194.196.100.86 Whois parsing indicates a country of UK, but from the reverse DNS a person can see that it is Germany. I've built the pattern of cc.ibm.com into my cgi, but I'm sure there are other blocks that I'm incorrectly identifying. I've looked at RADB entries, as well as origin AS for various IP blocks, and neither source looks any better than whois. Is there a more accurate method to determine the country of origin for an IP than the methods I've described above? -Ralph
Current thread:
- IPv4 country of origin Ralph Doncaster (Oct 02)
- Re: IPv4 country of origin John Payne (Oct 02)
- Re: IPv4 country of origin Joe Abley (Oct 02)
- RE: IPv4 country of origin Barry Raveendran Greene (Oct 03)
- RE: IPv4 country of origin alex (Oct 03)
- RE: IPv4 country of origin Ralph Doncaster (Oct 03)
- RE: IPv4 country of origin alex (Oct 03)
- Re: IPv4 country of origin John Payne (Oct 03)
- RE: IPv4 country of origin alex (Oct 03)
- RE: IPv4 country of origin Gary E. Miller (Oct 03)
- RE: IPv4 country of origin alex (Oct 03)
- Re: IPv4 country of origin William Waites (Oct 03)