Skip to content

iq5sa/rdp-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

rdp — Domain WHOIS & RDAP Lookup CLI (macOS / Linux)

rdp is a lightweight command-line tool for performing modern WHOIS lookups using the RDAP protocol.
It provides clean and structured output including registrar details, registration dates, domain status, and nameservers.

✨ Features

  • Fetches official RDAP registry data (the modern replacement for WHOIS)
  • Displays:
    • Domain Status
    • Registrar Name + Abuse Contact
    • Registration / Expiration / Last Update Dates
    • Nameservers
  • Supports:
    • Raw JSON (--raw)
    • Pretty JSON (--json)
  • No external dependencies (pure Python standard library)
  • Works on macOS + Linux

🛠 Installation

1. Save the script

nano rdp

2. Make it executable

chmod +x rdp

3. Move it into your system PATH

macOS (Intel):

sudo mv rdp /usr/local/bin/rdp

macOS (Apple Silicon):

sudo mv rdp /opt/homebrew/bin/rdp

Linux:

sudo mv rdp /usr/bin/rdp

🚀 Usage

Basic Lookup

rdp example.com

Pretty JSON Output

rdp example.com --json

Raw JSON Output (machine-readable)

rdp example.com --raw

🧾 Example Output

Domain: example.com
Status: client transfer prohibited

Registrar: Register name, Inc.
Abuse Email: abuse@example.com

Registration Lifecycle:
  Registered : 2025-02-11T01:30:30Z
  Expires    : 2026-02-11T01:30:30Z
  Updated    : 2025-09-20T14:55:02Z

Nameservers:
  - ns1.example.com
  - ns2.example.com

📄 License

MIT — Free to use, modify, and distribute.

About

rdp-cli is a lightweight command-line tool for performing modern WHOIS lookups

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages