carta
mmdbresolve(1)

mmdbresolve1

Read ipv4 and ipv6 addresses and print their ip geolocation information.

Usage

mmdbresolve [-v]

mmdbresolve [-h]

mmdbresolve -f <dbfile> [-f <dbfile>] ...

Overview

mmdbresolve reads IPv4 and IPv6 addresses on stdin and prints their IP geolocation information on stdout. Each input line must contain exactly one address. Output is in INI format, with a section delimiter named after the query address followed by a set of "key: value" pairs. A comment beginning with "# End" is appended to each section.

At startup an "[init]" section is printed that shows the status of each database and of mmdbresolve itself.

Options

-v

Print version information and exit.

-h

Print help information and exit.

-f

Path to a MaxMind Database file. Multiple databases may be specified.

Examples

To resolve a single address:

echo 4.4.4.4 | mmdbresolve -f /usr/share/GeoIP/GeoLite2-City.mmdb

Example output

[init]
db.0.path: /usr/share/GeoIP/GeoLite2-City.mmdb
db.0.status: OK
mmdbresolve.status: true
# End init
[4.4.4.4]
# GeoLite2-City
country.iso_code: US
country.names.en: United States
location.latitude: 37.751000
location.longitude: -97.822000
# End 4.4.4.4

Notes

mmdbresolve is part of the Wireshark distribution. The latest version of Wireshark can be found at <https://www.wireshark.org>.

HTML versions of the Wireshark project man pages are available at <https://www.wireshark.org/docs/man-pages>.

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie)
  • Debian 12 (Bookworm)
  • Debian 11 (Bullseye)
  • Debian 10 (Buster)
  • Debian 9 (Stretch)

-h since Arch Linux 2026-11-01; -v since Arch Linux 2026-11-01.

Authors

Original Author
Gerald Combs <gerald[AT]wireshark.org>

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