Skip to content

Files

Latest commit

9c0ac05 · Nov 13, 2023

History

History
54 lines (38 loc) · 1.53 KB

README.md

File metadata and controls

54 lines (38 loc) · 1.53 KB

Welcome to country-ip 👋

Build Status License: GPLv3

An IP to country / country to IP resolver that supports IPv4 and IPv6.

Using APNIC, ARIN, RIPE, LACNIC and AFRINIC databases.

Install

# Nix (Recommended) (Release binaries are cached)
nix run github:AMTSupport/tools#country-ip

# Cargo
cargo install --git https://github.com/AMTSupport/tools country-ip

Usage

# Get the country of an IP
country-ip lookup $ip

# Get a random IP of a given country
country-ip get $country

Author

👤 James Draycott

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2023 James Draycott.
This project is GPLv3 licensed.