The ipinfo.sh
script is a command-line tool that allows you to obtain detailed information about an IP address. By providing an IP address as an argument, the script queries the ipinfo.io
website to retrieve and display data such as city, region, country, geographic coordinates, and associated organization.
$ ./ipinfo.sh 8.8.8.8
IP: 8.8.8.8
Region: California
Hostname: dns.google
City: Mountain View
Country: US
Location: 37.4056,-122.0775
Organization: AS15169 Google LLC
Postal Code: 94043
Timezone: America/Los_Angeles