1MMDBRESOLVE(1)                                                  MMDBRESOLVE(1)
2
3
4

NAME

6       mmdbresolve - Read IPv4 and IPv6 addresses and print their IP
7       geolocation information.
8

SYNOPSIS

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

DESCRIPTION

13       mmdbresolve reads IPv4 and IPv6 addresses on stdin and prints their IP
14       geolocation information on stdout. Each input line must contain exactly
15       one address. Output is in INI format, with a section delimiter named
16       after the query address followed by a set of "key: value" pairs. A
17       comment beginning with "# End" is appended to each section.
18
19       At startup an "[init]" section is printed that shows the status of each
20       datbase and of mmdbresolve itself.
21

OPTIONS

23       -f
24
25           Path to a MaxMind Database file. Multiple databases may be
26           specified.
27

EXAMPLES

29       To resolve a single address:
30
31           echo 4.4.4.4 | mmdbresolve -f /usr/share/GeoIP/GeoLite2-City.mmdb
32
33       Example output
34
35           [init]
36           db.0.path: /usr/share/GeoIP/GeoLite2-City.mmdb
37           db.0.status: OK
38           mmdbresolve.status: true
39           # End init
40           [4.4.4.4]
41           # GeoLite2-City
42           country.iso_code: US
43           country.names.en: United States
44           location.latitude: 37.751000
45           location.longitude: -97.822000
46           # End 4.4.4.4
47

SEE ALSO

49       wireshark(1), tshark(1)
50

NOTES

52       mmdbresolve is part of the Wireshark distribution. The latest version
53       of Wireshark can be found at https://www.wireshark.org.
54
55       HTML versions of the Wireshark project man pages are available at
56       https://www.wireshark.org/docs/man-pages.
57

AUTHORS

59       Original Author
60       Gerald Combs <gerald[AT]wireshark.org>
61
62
63
64                                  2022-02-16                    MMDBRESOLVE(1)
Impressum