by coderholic · 10y ago · 0 comments
$ curl ipinfo.io/8.8.8.8
{
"ip": "8.8.8.8",
"hostname": "google-public-dns-a.google.com",
"city": "Mountain View",
"region": "California",
"country": "US",
"loc": "37.3845,-122.0881",
"org": "AS15169 Google Inc.",
"postal": "94040"
}
$ curl ipinfo.io/8.8.8.8/org
AS15169 Google Inc.
It also supports lookup of IPv6 addresses (but not IPv6 connections, due to AWS). See http://ipinfo.io/about for more detailsedit: for checking ports: shodan.io for (r)dns: robtex.com