[Dshield] IP Address --> Country Script

Brian Dessent brian at dessent.net
Tue Dec 16 05:44:59 GMT 2003

Brian Dessent wrote:

> You could also probably hack something together to query the
> ARIN/RIPE/APNIC whois database for the given IP or subnet and get the
> country from that.  There's probably a perl module for this, too, tucked
> away in CPAN somewhere.  (In fact this is probably the base level of
> what NetGeo does, before it applies any additional knowledge that it
> might have been told about.)

For example, IP::Country

There's also a Geo::IP one that uses the same interface:


More information about the list mailing list