| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="Asciidoctor 2.0.17">
- <title>mmdbresolve(1)</title>
- <link rel="stylesheet" href="./ws.css">
- </head>
- <body class="manpage">
- <div id="header">
- <h1>mmdbresolve(1) Manual Page</h1>
- <h2 id="_name">NAME</h2>
- <div class="sectionbody">
- <p>mmdbresolve - Read IPv4 and IPv6 addresses and print their IP geolocation information.</p>
- </div>
- </div>
- <div id="content">
- <div class="sect1">
- <h2 id="_synopsis">SYNOPSIS</h2>
- <div class="sectionbody">
- <div class="paragraph">
- <p><span class="nowrap"><strong>mmdbresolve</strong></span>
- <span class="nowrap"><strong>-f <dbfile></strong></span>
- <span class="nowrap">[ <strong>-f <dbfile></strong> ]</span>
- <span class="nowrap"><em>…​</em></span></p>
- </div>
- </div>
- </div>
- <div class="sect1">
- <h2 id="_description">DESCRIPTION</h2>
- <div class="sectionbody">
- <div class="paragraph">
- <p><strong>mmdbresolve</strong> 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.</p>
- </div>
- <div class="paragraph">
- <p>At startup an "[init]" section is printed that shows the status of each datbase and of mmdbresolve
- itself.</p>
- </div>
- </div>
- </div>
- <div class="sect1">
- <h2 id="_options">OPTIONS</h2>
- <div class="sectionbody">
- <div class="dlist">
- <dl>
- <dt class="hdlist1">-f</dt>
- <dd>
- <div class="openblock">
- <div class="content">
- <div class="paragraph">
- <p>Path to a MaxMind Database file. Multiple databases may be specified.</p>
- </div>
- </div>
- </div>
- </dd>
- </dl>
- </div>
- </div>
- </div>
- <div class="sect1">
- <h2 id="_examples">EXAMPLES</h2>
- <div class="sectionbody">
- <div class="paragraph">
- <p>To resolve a single address:</p>
- </div>
- <div class="literalblock">
- <div class="content">
- <pre>echo 4.4.4.4 | mmdbresolve -f /usr/share/GeoIP/GeoLite2-City.mmdb</pre>
- </div>
- </div>
- <div class="literalblock">
- <div class="title">Example output</div>
- <div class="content">
- <pre>[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</pre>
- </div>
- </div>
- </div>
- </div>
- <div class="sect1">
- <h2 id="_see_also">SEE ALSO</h2>
- <div class="sectionbody">
- <div class="paragraph">
- <p><a href="wireshark.html">wireshark</a>(1), <a href="tshark.html">tshark</a>(1)</p>
- </div>
- </div>
- </div>
- <div class="sect1">
- <h2 id="_notes">NOTES</h2>
- <div class="sectionbody">
- <div class="paragraph">
- <p><strong>mmdbresolve</strong> is part of the <strong>Wireshark</strong> distribution. The latest version
- of <strong>Wireshark</strong> can be found at <a href="https://www.wireshark.org" class="bare">https://www.wireshark.org</a>.</p>
- </div>
- <div class="paragraph">
- <p>HTML versions of the Wireshark project man pages are available at
- <a href="https://www.wireshark.org/docs/man-pages" class="bare">https://www.wireshark.org/docs/man-pages</a>.</p>
- </div>
- </div>
- </div>
- <div class="sect1">
- <h2 id="_authors">AUTHORS</h2>
- <div class="sectionbody">
- <div class="paragraph">
- <div class="title">Original Author</div>
- <p>Gerald Combs <gerald[AT]wireshark.org></p>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
|