diggeo is a Rust project that allows you to query for domain IP addresses and geolocation information. This tool is designed for developers and network professionals who need to quickly resolve domain IPs and gather geolocation data.
- Query the IP address of a given domain.
- Retrieve geolocation data based on the resolved IP.
- Integrates with the ipgeolocation.io API to obtain geolocation information for IP addresses.
- Simple and fast CLI or library usage (details below).
- Rust (if building from source)
Clone the repository:
git clone https://github.com/araujofrancisco/diggeo.git
cd diggeo
Build the project:
cargo build --release
You can use diggeo either by passing IPs directly, piping from a file, or resolving domains:
# Query geolocation for multiple IPs
diggeo 8.8.8.8 1.1.1.1
# Query geolocation for IPs listed in a file
cat ips.txt | diggeo
# Resolve a domain and get geolocation for its IP(s)
diggeo --dig example.com
Before using diggeo
, you must create a configuration file located at /etc/diggeo.conf
.
This file should contain your API key in the following format:
api_key = your_api_key_here
Replace your_api_key_here
with your actual API key.
src/
- Main source code directoryCargo.toml
- Project manifestLICENSE
- GNU GPL v3.0 License.gitignore
,Cargo.lock
,README.md
- Project files
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request.
Note: Replace the "Usage" section with actual usage instructions as the project evolves.