Skip to content

Melyyn/geofind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeoFind CI

GeoFind is a command-line tool/script that fetches geolocation information from an IP address or a domain using https://ipinfo.io

Screenshot

Prerequisites

  • libcurl & libjson-c
sudo apt update
sudo apt install libcurl4-openssl-dev libjson-c-dev

Installation

Clone the repository:

git clone https://github.com/melyyn/geofind.git && cd geofind

Build & Install:

cat build | bash && sudo mv geofind /usr/local/bin

Usage

geofind [IP address or domain]
geofind me

Examples

$ 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

License

GNU General Public License v3.0