| Crates.io | whois-dns-tool |
| lib.rs | whois-dns-tool |
| version | 0.1.0 |
| created_at | 2025-01-30 12:28:00.93256+00 |
| updated_at | 2025-01-30 12:28:00.93256+00 |
| description | A command-line interface (CLI) tool written in Rust for performing WHOIS and DNS lookups. This tool provides a simple way to query domain registration information and DNS records. |
| homepage | https://github.com/thinkphp/whois-lookup-tool/blob/master/README.md |
| repository | https://github.com/thinkphp/whois-lookup-tool |
| max_upload_size | |
| id | 1536314 |
| size | 43,508 |
A command-line interface (CLI) tool written in Rust for performing WHOIS and DNS lookups. This tool provides a simple way to query domain registration information and DNS records.
Ensure you have Rust and Cargo installed on your system. Then clone this repository and build the project:
git clone git@github.com:thinkphp/whois-lookup-tool.git
cd whois-dns-tool
cargo build --release
The compiled binary will be available in target/release/whois-dns.
To perform a WHOIS lookup for a domain or IP address:
whois-dns whois example.com
To perform a DNS lookup:
whois-dns dns example.com A # Look up A records
whois-dns dns example.com MX # Look up MX records
whois-dns dns example.com TXT # Look up TXT records
Supported DNS record types:
clap: Command line argument parsingcolored: Terminal text coloringtrust-dns-resolver: DNS resolutionanyhow: Error handlingtokio: Async runtimeThe tool implements robust error handling:
The tool includes built-in support for various TLD WHOIS servers:
Contributions are welcome! Please feel free to submit a Pull Request.
MIT