|
NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLES | SEE ALSO | NOTES | AUTHORS |
|
|
|
MMDBRESOLVE(1) MMDBRESOLVE(1)
mmdbresolve - Read IPv4 and IPv6 addresses and print their IP
geolocation information.
mmdbresolve [ -v ]
mmdbresolve [ -h ]
mmdbresolve -f <dbfile> [ -f <dbfile> ] ...
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.
-v
Print version information and exit.
-h
Print help information and exit.
-f
Path to a MaxMind Database file. Multiple databases may be
specified.
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
wireshark(1), tshark(1)
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.
Original Author
Gerald Combs <gerald[AT]wireshark.org>.SH COLOPHON This page is
part of the wireshark (Interactively dump and analyze network
traffic) project. Information about the project can be found at
⟨https://www.wireshark.org/⟩. If you have a bug report for this
manual page, see
⟨https://gitlab.com/wireshark/wireshark/-/issues⟩. This page was
obtained from the project's upstream Git repository
⟨https://gitlab.com/wireshark/wireshark.git⟩ on 2025-08-11. (At
that time, the date of the most recent commit that was found in
the repository was 2025-08-11.) If you discover any rendering
problems in this HTML version of the page, or you believe there is
a better or more up-to-date source for the page, or you have
corrections or improvements to the information in this COLOPHON
(which is not part of the original manual page), send a mail to
[email protected]
2025-08-09 MMDBRESOLVE(1)