4 location-query - Query the location database
8 `location-query lookup ADDRESS [ADDRESS...]`
9 `location-query get-as ASN [ASN...]`
10 `location-query search-as STRING`
11 `location-query list-networks-by-as ASN`
12 `location-query list-networks-by-cc COUNTRY_CODE`
15 The `location-query` retrieves information from the location database.
16 This data can be used to determine someone's location on the Internet
17 and for building firewall rulesets to block access from certain ASes
24 The path of the database which is being opened.
26 If this option is omitted, the system's database will be opened.
33 'lookup ADDRESS [ADDRESS...]'::
34 This command returns the network the given IP address has been found in
35 as well as its Autonomous System if that information is available.
37 'get-as ASN [ASN...]'::
38 This command returns the name of the owning organisation of the Autonomous
42 Lists all Autonomous Systems which match the given string.
44 The search will be performed case-insensitively.
46 'list-networks-by-as ASN'::
47 Lists all networks which belong to this Autonomous System.
49 'list-networks-by-cc COUNTRY_CODE'::
50 Lists all networks that belong to a country.
52 The country has to be encoded in ISO3166 Alpha-2 notation.
55 Shows a short help text on using this program.
58 Shows the program's version and exists.
61 The 'location-query' command will normally exit with code zero.
62 If there has been a problem and the requested action could not be performed,
63 the exit code is unequal to zero.
66 Please report all bugs to the bugtracker at https://bugzilla.ipfire.org/.