diff options
author | Niklas <Alphakilo@users.noreply.github.com> | 2019-07-05 16:01:45 +0300 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2019-07-05 16:01:45 +0300 |
commit | 7fbc2e1b9fc80146e5fa16bde1ab636ef63725fa (patch) | |
tree | 7b12d6018829f73cbe10086609ee8db13e6f70d9 /README.md | |
parent | 5a28ed6bf5a41aaf4d4d29cd9264fff0f13c5829 (diff) |
ASN database, part 2 (#67)
ASN lookup
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -37,6 +37,9 @@ EB $ curl ifconfig.co/city Bornyasherk + +$ curl ifconfig.co/asn +AS59795 ``` As JSON: @@ -48,7 +51,9 @@ $ curl -H 'Accept: application/json' ifconfig.co # or curl ifconfig.co/json "country": "Elbonia", "country_iso": "EB", "ip": "127.0.0.1", - "ip_decimal": 2130706433 + "ip_decimal": 2130706433, + "asn": "AS59795", + "asn_org": "Hosting4Real" } ``` @@ -74,7 +79,7 @@ between IPv4 and IPv6 lookup. * Supports HTTPS * Supports common command-line clients (e.g. `curl`, `httpie`, `wget` and `fetch`) * JSON output -* Country and city lookup using the MaxMind GeoIP database +* ASN, country and city lookup using the MaxMind GeoIP database * Port testing * Open source under the [BSD 3-Clause license](https://opensource.org/licenses/BSD-3-Clause) @@ -111,6 +116,7 @@ Usage: Application Options: -f, --country-db=FILE Path to GeoIP country database -c, --city-db=FILE Path to GeoIP city database + -a, --asn-db=FILE Path to GeoIP ASN database -l, --listen=ADDR Listening address (default: :8080) -r, --reverse-lookup Perform reverse hostname lookups -p, --port-lookup Enable port lookup |