IP Information Gathering Tool is a powerful and efficient script that helps you retrieve detailed information about an IP address using multiple sources. It gathers:
πΉ Geolocation Data β City, Region, Country
πΉ Hostname Lookup β Resolves the hostname of the IP
πΉ WHOIS Information β Fetches domain/IP registration details
πΉ DNS Records β Retrieves associated DNS records
πΉ Traceroute Analysis β Maps the route taken by packets to the IP
Run the script interactively:
./ip_info_tool.shOr provide an IP address directly:
./ip_info_tool.sh 8.8.8.8Example Output:
π Gathering information for IP: 8.8.8.8
π‘ Hostname: dns.google
π Geolocation:
{
"ip": "8.8.8.8",
"city": "Mountain View",
"region": "California",
"country": "US"
}
...
β
Fetches IP details from multiple reliable sources
β
Validates IP address input to prevent errors
β
Automatically checks for required dependencies
β
Supports both interactive and command-line modes
β
Provides a well-structured, easy-to-read output
Ensure your system has the necessary tools installed:
- π§
host - π
curl - π
whois - π
dig - π€
traceroute
On Debian-based systems, install missing dependencies:
sudo apt update && sudo apt install dnsutils whois curl traceroute -yFor macOS (Homebrew):
brew install dnsutils whois curl traceroutechmod +x ip_info_tool.shπ This tool is for educational and ethical research purposes only. Unauthorized use may violate legal regulations. Use responsibly!
Got an idea for improvement? Found a bug? Feel free to open an issue or submit a pull request! Letβs build something awesome together! π
This project is open-source under the MIT License.
Developed with β€οΈ by Yash