1GEOIPLOOKUP(1) General Commands Manual GEOIPLOOKUP(1)
2
3
4
6 geoiplookup - look up country using IP Address or hostname
7
9 geoiplookup [-lv] <ipaddress|hostname>
10
12 geoiplookup uses the GeoIP library and database to find the Country
13 that an IP address or hostname originates from.
14
15 For example
16
17 geoiplookup -l 80.60.233.195
18
19 will find the Country that 80.60.233.195 originates from, in long for‐
20 mat:
21
22 Netherlands
23
25 -f Specify a custom path to a single GeoIP datafile.
26
27 -d Specify a custom directory containing GeoIP datafile(s). By
28 default geoiplookup looks in /usr/share/GeoIP
29
30 -l By default, geoiplookup returns the ISO 3166 country code. By
31 specifying this option, geoiplookup prints the long format,
32 namely the full country name.
33
34 -v Lists the date and build number for the GeoIP datafile(s).
35
37 Written by T.J. Mather
38
40 Report bugs to <support@maxmind.com>
41
43 Copyright © 2006 MaxMind LLC
44
45 This is free software; see the source for copying conditions. There is
46 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
47 PURPOSE.
48
50 geoipupdate(1), nslookup(1).
51
52
53
544th Berkeley Distribution 2 Jan 2007 GEOIPLOOKUP(1)