A fast CLI tool for domain registration lookups using RDAP and WHOIS.
Built by DomainDetails.com - Privacy-first domain intelligence.
- RDAP Lookups - Modern JSON-based protocol (preferred)
- WHOIS Fallback - Traditional protocol via DomainDetails.com API
- Local Caching - Caches IANA bootstrap data for fast TLD resolution
- Multiple Output Formats - Human-readable, JSON, or raw data
- Cross-Platform - macOS, Linux, Windows
brew install simplebytes-com/tap/domaindetailsdocker pull domaindetails/cli
# Run a lookup
docker run domaindetails/cli lookup example.comDownload the latest release for your platform from GitHub Releases.
git clone https://github.com/simplebytes-com/domaindetails-cli.git
cd domaindetails-cli
make build
make install# Auto-select best method (RDAP preferred, WHOIS fallback)
domaindetails lookup example.com
# RDAP only
domaindetails rdap example.com
# WHOIS only
domaindetails whois example.com# JSON output
domaindetails lookup example.com --json
# Include raw response data
domaindetails lookup example.com --raw
# JSON with raw data
domaindetails lookup example.com --json --rawdomaindetails lookup example.com --verbose# Update the IANA bootstrap cache
domaindetails cache update
# View cache status
domaindetails cache info
# Clear the cache
domaindetails cache clear────────────────────────────────────────────────────────────
Domain: example.com
Method: RDAP
────────────────────────────────────────────────────────────
Domain Name: EXAMPLE.COM
Registrar: RESERVED-Internet Assigned Numbers Authority
Created: 1995-08-14T04:00:00Z
Expires: 2025-08-13T04:00:00Z
Last Modified: 2024-08-14T07:01:34Z
Status:
• client delete prohibited
• client transfer prohibited
• client update prohibited
Nameservers:
• A.IANA-SERVERS.NET
• B.IANA-SERVERS.NET
DNSSEC: signed
{
"domain": "example.com",
"available": false,
"method": "rdap",
"parsed": {
"domainName": "EXAMPLE.COM",
"registrar": "RESERVED-Internet Assigned Numbers Authority",
"creationDate": "1995-08-14T04:00:00Z",
"expirationDate": "2025-08-13T04:00:00Z",
"lastModified": "2024-08-14T07:01:34Z",
"nameservers": ["A.IANA-SERVERS.NET", "B.IANA-SERVERS.NET"],
"status": ["client delete prohibited", "client transfer prohibited"],
"dnssec": "signed"
}
}- RDAP Lookups: Queries RDAP servers directly using the IANA bootstrap file (cached locally at
~/.domaindetails/) - WHOIS Lookups: Routes through the DomainDetails.com API which handles raw WHOIS queries and parsing
The dependency-free sample script in examples/wayback_domain_history.py analyzes representative Wayback Machine captures, reports likely major changes, identifies the last capture that looks like a developed website, and extracts historical contact details with source URLs.
python3 examples/wayback_domain_history.py example.com \
--from 2005 \
--max-snapshots 20 \
--output example-history.jsonThe script deliberately describes dates as observations rather than exact transition dates. Contact information is historical and must not be treated as currently verified. It uses the public Internet Archive endpoints, so larger domains may be slow or rate-limited.
The CLI caches the IANA RDAP bootstrap file locally to avoid repeated network requests:
- Location:
~/.domaindetails/rdap-bootstrap.json - TTL: 24 hours
- Fallback: Uses stale cache if refresh fails
This CLI uses the DomainDetails.com API for WHOIS lookups:
| Endpoint | Description |
|---|---|
GET /api/whois?domain=example.com |
WHOIS lookup with parsing |
The WHOIS parser is open source: @domaindetails/whois-parser
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE for details.
- Website: domaindetails.com
- Documentation: domaindetails.com/kb/cli
- Docker Hub: hub.docker.com/r/domaindetails/cli
- WHOIS Parser: npmjs.com/package/@domaindetails/whois-parser