GEOIPLOOKUP(1) General Commands Manual GEOIPLOOKUP(1)

# [NAME](#NAME)

geoiplookup - look up country using IP Address or hostname

# [SYNOPSIS](#SYNOPSIS)

geoiplookup \[-d directory] \[-f filename] \[-v] &lt;ipaddress|hostname&gt;

# [DESCRIPTION](#DESCRIPTION)

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*

# [OPTIONS](#OPTIONS)

[-f](#f)

Specify a custom path to a single GeoIP datafile.

[-d](#d)

Specify a custom directory containing GeoIP datafile(s). By default geoiplookup looks in /usr/share/GeoIP

[-v](#v)

Lists the date and build number for the GeoIP datafile(s).

# [AUTHOR](#AUTHOR)

Written by T.J. Mather

# [REPORTING BUGS](#REPORTING_BUGS)

Report bugs to &lt;support@maxmind.com&gt;

# [COPYRIGHT](#COPYRIGHT)

Copyright (C) 2016 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.

# [SEE ALSO](#SEE_ALSO)

[geoipupdate(1)](/man/os/geoip/geoipupdate.1), [nslookup(1)](/man/os/geoip/nslookup.1).

2 Jan 2007 4th Berkeley Distribution

---

Document: geoiplookup(1) from geoip 1.6.12-r11 (Chainguard OS)
Source: https://github.com/maxmind/geoip-api-c
