mmdblookup
A utility to look up an IP address in a MaxMind DB file. tldr-pages
On several platforms
Several platforms
Look up an IP address in the specified MaxMind DB file
mmdblookup --file path/to/dataset.mmdb --ip 8.8.8.8IdentifyLook up a subset of data for an IP address in the specified MaxMind DB file
mmdblookup --file path/to/dataset.mmdb --ip 8.8.8.8 key1 key2 ...IdentifyLook up the country ISO code for an IP address in the specified MaxMind DB file
mmdblookup --file path/to/dataset.mmdb --ip 8.8.8.8 country iso_codeIdentifyDisplay help
mmdblookup --helpIdentifyDisplay version
mmdblookup --versionIdentify