The sys admin’s daily grind – GeoIP lookup

Land Ahoy!


The global village is big enough to want to find out where your friend and enemies have set up camp. Charly offers a quick IP-based introduction to geography.

All popular distributions include one or more packages that identify the country of origin of an IP address. On my Ubuntu lab machine, I use the geoip‑bin and geoip‑database packages. Now, you can also use the geoiplookup command, and geoiplookup6 for IPv6 addresses, with an IP address or a name as a command-line parameter.