geoiplookup − look up country using IP Address or hostname
geoiplookup [−d directory] [−f filename] [−v] <ipaddress|hostname>
geoiplookup uses the GeoIP library and database to find the Country that an IP address or hostname originates from.
For example
geoiplookup 80.60.233.195
will find the Country that 80.60.233.195 originates from, in the following format:
NL, Netherlands
−f |
Specify a custom path to a single GeoIP datafile. | ||
−d |
Specify a custom directory containing GeoIP datafile(s). By default geoiplookup looks in /usr/share/GeoIP | ||
−v |
Lists the date and build number for the GeoIP datafile(s). |
Written by T.J. Mather
Report bugs to <support@maxmind.com>
Copyright © 2006 MaxMind, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
geoipupdate(1), nslookup(1).