mmdblookup(1)

mmdblookup1

A utility to look up an ip address in a maxmind db file

Usage

mmdblookup --file [FILE PATH] --ip [IP ADDRESS] [DATA PATH]

Overview

mmdblookup looks up an IP address in the specified MaxMind DB file. The record for the IP address is displayed with {} to denote maps and [] to denote arrays. The values are followed by type annotations. This output is not JSON and is not intended to be used as such. If you need JSON, please see mmdbinspect ⟨https://github.com/maxmind/mmdbinspect⟩\c .

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" ]
}

You could look up just the English name by calling mmdblookup with a lookup path of:

mmdblookup --file ... --ip ... names en

Or you could look up the second city in the list with:

mmdblookup --file ... --ip ... cities 1

Array numbering begins with zero (0).

If you do not provide a path to lookup, all of the information for a given IP will be shown.

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.

Bug reports and pull requests

Please report all issues to our GitHub issue tracker ⟨https://github.com/maxmind/libmaxminddb/issues⟩\c . We welcome bug reports and pull requests. Please note that pull requests are greatly preferred over patches.

Releases

6 releases since Debian 9 (Stretch); the text changed 5 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13
  6. Arch

--file since Debian 11 (Bullseye); --help since Debian 11 (Bullseye); --ip since Debian 11 (Bullseye); --verbose since Debian 11 (Bullseye); --version since Debian 11 (Bullseye); -? since Debian 11 (Bullseye); -f since Debian 11 (Bullseye); -h since Debian 11 (Bullseye); -i since Debian 11 (Bullseye); -v since Debian 11 (Bullseye).

Authors

This utility was written by Boris Zentner (⟨[email protected]⟩\c ) and Dave Rolsky (⟨[email protected]⟩\c ).

From mmdblookup 1.14.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.