table of contents
other versions
- jessie-backports 1.2.0-1~bpo8+1
- stretch 1.2.0-1+b1
- testing 1.3.2-1
- unstable 1.3.2-1
mmdblookup(1) | mmdblookup(1) |
NAME¶
mmdblookup - a utility to look up an IP address in a MaxMind DB fileSYNOPSIS¶
mmdblookup --file [FILE PATH] --ip [IP ADDRESS] [DATA PATH]DESCRIPTION¶
mmdblookup looks up an IP address in the specified MaxMind DB file. The record for the IP address is displayed in a JSON-like structure with type annotations. If an IP's data entry resolves to a map or array, you can provide a lookup path to only show part of that data. For example, given a JSON structure like this:-
{ "names": { "en": "Germany", "de": "Deutschland" }, "cities": [ "Berlin", "Frankfurt" ] }
-
mmdblookup --file ... --ip ... names en
-
mmdblookup --file ... --ip ... cities 1
OPTIONS¶
This application accepts the following options:- -f, --file
- The path to the MMDB file. Required.
- -i, --ip
- The IP address to look up. Required.
- -v, --verbose
- Turns on verbose output. Specifically, this causes this application to output the database metadata.
- --version
- Print the program's version number and exit.
- -h, -?, --help
- Show usage information.