<code>libloc</code> comes with a command line tool which
makes it easy to test the library or integrate it into
your shell scripts.
- <code>location-query(8)</code> knows a couple of commands
+ <code>location(8)</code> knows a couple of commands
to retrieve country or Autonomous System of an IP address
and can generate lists of networks to be imported into
other software.
<p>
Although this is not the fastest way to lookup a large number
- of IP addresses, <code>location-query(8)</code> is versatile
+ of IP addresses, <code>location(8)</code> is versatile
and very easy to use.
</p>
- <a class="btn btn-secondary" href="https://man-pages.ipfire.org/libloc/location-query.html">
+ <a class="btn btn-secondary" href="https://man-pages.ipfire.org/libloc/location.html">
{{ _("Man Page") }}
</a>
</div>
<div class="col-12">
<h6>{{ _("Search for an Autonomous System by Name") }}</h6>
- <pre class="mb-4"><code>$ location-query search-as "Lightning Wire Labs"
+ <pre class="mb-4"><code>$ location search-as "Lightning Wire Labs"
AS204867 (Lightning Wire Labs GmbH)</code></pre>
<h6>{{ _("Lookup an IP Address") }}</h6>
- <pre class="mb-4"><code>$ location-query -d test.db lookup 81.3.27.38
+ <pre class="mb-4"><code>$ location -d test.db lookup 81.3.27.38
81.3.27.38 belongs to 81.3.27.0/24 which is a part of AS24679 (Hostway Deutschland GmbH)</code></pre>
</div>
</div>
<p>
<code>libloc</code> comes with native Python bindings which
are used by its main command-line tool
- <a class="text-white" href="https://man-pages.ipfire.org/libloc/location-query.html">
- <code>location-query</code>
+ <a class="text-white" href="https://man-pages.ipfire.org/libloc/location.html">
+ <code>location</code>
</a>.
They are the most advanced bindings as they support reading
from the database as well as writing to it.