Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpolden/echoip.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas <Alphakilo@users.noreply.github.com>2019-07-05 16:01:45 +0300
committerMartin Polden <mpolden@mpolden.no>2019-07-05 16:01:45 +0300
commit7fbc2e1b9fc80146e5fa16bde1ab636ef63725fa (patch)
tree7b12d6018829f73cbe10086609ee8db13e6f70d9 /README.md
parent5a28ed6bf5a41aaf4d4d29cd9264fff0f13c5829 (diff)
ASN database, part 2 (#67)
ASN lookup
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/README.md b/README.md
index f41ec21..d1d1823 100644
--- a/README.md
+++ b/README.md
@@ -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