mmdbresolve.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="generator" content="Asciidoctor 2.0.17">
  8. <title>mmdbresolve(1)</title>
  9. <link rel="stylesheet" href="./ws.css">
  10. </head>
  11. <body class="manpage">
  12. <div id="header">
  13. <h1>mmdbresolve(1) Manual Page</h1>
  14. <h2 id="_name">NAME</h2>
  15. <div class="sectionbody">
  16. <p>mmdbresolve - Read IPv4 and IPv6 addresses and print their IP geolocation information.</p>
  17. </div>
  18. </div>
  19. <div id="content">
  20. <div class="sect1">
  21. <h2 id="_synopsis">SYNOPSIS</h2>
  22. <div class="sectionbody">
  23. <div class="paragraph">
  24. <p><span class="nowrap"><strong>mmdbresolve</strong></span>
  25. <span class="nowrap"><strong>-f &lt;dbfile&gt;</strong></span>
  26. <span class="nowrap">[ <strong>-f &lt;dbfile&gt;</strong> ]</span>
  27. <span class="nowrap"><em>&#8230;&#8203;</em></span></p>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="sect1">
  32. <h2 id="_description">DESCRIPTION</h2>
  33. <div class="sectionbody">
  34. <div class="paragraph">
  35. <p><strong>mmdbresolve</strong> reads IPv4 and IPv6 addresses on stdin and prints their IP geolocation information
  36. on stdout. Each input line must contain exactly one address. Output is in INI format, with a section
  37. delimiter named after the query address followed by a set of "key: value" pairs. A comment
  38. beginning with "# End" is appended to each section.</p>
  39. </div>
  40. <div class="paragraph">
  41. <p>At startup an "[init]" section is printed that shows the status of each datbase and of mmdbresolve
  42. itself.</p>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="sect1">
  47. <h2 id="_options">OPTIONS</h2>
  48. <div class="sectionbody">
  49. <div class="dlist">
  50. <dl>
  51. <dt class="hdlist1">-f</dt>
  52. <dd>
  53. <div class="openblock">
  54. <div class="content">
  55. <div class="paragraph">
  56. <p>Path to a MaxMind Database file. Multiple databases may be specified.</p>
  57. </div>
  58. </div>
  59. </div>
  60. </dd>
  61. </dl>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="sect1">
  66. <h2 id="_examples">EXAMPLES</h2>
  67. <div class="sectionbody">
  68. <div class="paragraph">
  69. <p>To resolve a single address:</p>
  70. </div>
  71. <div class="literalblock">
  72. <div class="content">
  73. <pre>echo 4.4.4.4 | mmdbresolve -f /usr/share/GeoIP/GeoLite2-City.mmdb</pre>
  74. </div>
  75. </div>
  76. <div class="literalblock">
  77. <div class="title">Example output</div>
  78. <div class="content">
  79. <pre>[init]
  80. db.0.path: /usr/share/GeoIP/GeoLite2-City.mmdb
  81. db.0.status: OK
  82. mmdbresolve.status: true
  83. # End init
  84. [4.4.4.4]
  85. # GeoLite2-City
  86. country.iso_code: US
  87. country.names.en: United States
  88. location.latitude: 37.751000
  89. location.longitude: -97.822000
  90. # End 4.4.4.4</pre>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="sect1">
  96. <h2 id="_see_also">SEE ALSO</h2>
  97. <div class="sectionbody">
  98. <div class="paragraph">
  99. <p><a href="wireshark.html">wireshark</a>(1), <a href="tshark.html">tshark</a>(1)</p>
  100. </div>
  101. </div>
  102. </div>
  103. <div class="sect1">
  104. <h2 id="_notes">NOTES</h2>
  105. <div class="sectionbody">
  106. <div class="paragraph">
  107. <p><strong>mmdbresolve</strong> is part of the <strong>Wireshark</strong> distribution. The latest version
  108. of <strong>Wireshark</strong> can be found at <a href="https://www.wireshark.org" class="bare">https://www.wireshark.org</a>.</p>
  109. </div>
  110. <div class="paragraph">
  111. <p>HTML versions of the Wireshark project man pages are available at
  112. <a href="https://www.wireshark.org/docs/man-pages" class="bare">https://www.wireshark.org/docs/man-pages</a>.</p>
  113. </div>
  114. </div>
  115. </div>
  116. <div class="sect1">
  117. <h2 id="_authors">AUTHORS</h2>
  118. <div class="sectionbody">
  119. <div class="paragraph">
  120. <div class="title">Original Author</div>
  121. <p>Gerald Combs &lt;gerald[AT]wireshark.org&gt;</p>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </body>
  127. </html>