Crates.io | ipfetch |
lib.rs | ipfetch |
version | 1.0.1 |
source | src |
created_at | 2022-04-05 17:32:22.974739 |
updated_at | 2024-08-05 18:17:56.664839 |
description | CLI Tool for Easy IP Information Fetching |
homepage | https://github.com/mark-ruddy/ipfetch |
repository | https://github.com/mark-ruddy/ipfetch |
max_upload_size | |
id | 562703 |
size | 2,461,144 |
CLI Tool for easy IP information fetching, inspired by https://github.com/trakBan/ipfetch.
This Rust implementation aims to provide stability and extra features, if you are interested in using the underlying Rust IP API library see https://github.com/mark-ruddy/seeip.
Asciinema example: https://asciinema.org/a/DJWnX7EL0MpBeL21yEUKlAqPo
Install the binary using cargo:
cargo install ipfetch
Clone the source code from github and compile yourself:
git clone https://github.com/mark-ruddy/ipfetch
cd ipfetch && cargo build --release
sudo mv target/release/ipfetch /usr/local/bin
Run ipfetch --help
to see available flags.
Get info on your own IP:
ipfetch --my-ip
Some systems can have both an IPv4 and an IPv6 assigned, to specifically check both:
ipfetch --my-ipv4 --my-ipv6
Get info on an IP:
ipfetch --ip 208.67.222.222
Get info on multiple IPs, IPv6 is supported:
ipfetch --ip 208.67.222.222 --ip 2620:0:ccc::2
Print IP info to terminal for the Google and Cloudflare DNS servers, and save this info to a file:
ipfetch --ip 8.8.8.8 --ip 1.1.1.1 --output dns-servers-info
Combine the flags to produce a report on your IPv6 and others in one command:
ipfetch --my-ipv6 --ip 8.8.8.8 -ip 208.67.222.222 --output ip-info-data
Any and all contributions are appreciated - completely new features, bug fixes etc. Ensure your code is formatted with rustfmt
.