GeoFind is a command-line tool/script that fetches geolocation information from an IP address or a domain using https://ipinfo.io
- libcurl & libjson-c
sudo apt update
sudo apt install libcurl4-openssl-dev libjson-c-dev gcc
Clone the repository:
git clone https://github.com/melyyn/geofind.git && cd geofind
Build & Install:
cat build | bash && sudo mv geofind /usr/local/bin
geofind [IP address or domain]
geofind me
$ geofind 8.8.8.8
IP: 8.8.8.8
City: Mountain View
Region: California
Country: United States
Org: AS15169 Google LLC
Hostname: dns.google
$ geofind nasa.gov
IP: 23.22.39.120
City: Ashburn
Region: Virginia
Country: United States
Org: AS14618 Amazon.com, Inc.
Hostname: ec2-23-22-39-120.compute-1.amazonaws.com