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.sh
Or provide an IP address directly:
./ip_info_tool.sh 8.8.8.8
Example 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 -y
For macOS (Homebrew):
brew install dnsutils whois curl traceroute
chmod +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