Skip to main content

Modern RDAP Client for Rust

Query domain, IP, and ASN registration data with a fast, elegant Rust client. Full RFC 7480-7484 support with automatic bootstrap discovery and beautiful terminal output.

Quick Start

Get up and running in minutes with RDAP

1

Install RDAP

Install via your package manager or build from source:
# Debian/Ubuntu
sudo apt install rdap

# macOS
brew install xtomcom/brew/rdap

# From source
cargo install --git https://github.com/xtomcom/rdap
2

Run your first query

Query any domain, IP address, or AS number:
# Query a domain
rdap example.com

# Query an IP address
rdap 8.8.8.8

# Query an AS number
rdap AS15169
Abuse contact for `example.com` is `abuse@example.com`

Query from https://rdap.verisign.com/com/v1/domain/example.com

Domain Name: EXAMPLE.COM
Handle: 2336799_DOMAIN_COM-VRSN
Status: client delete prohibited
Nameserver: NS1.EXAMPLE.COM
Nameserver: NS2.EXAMPLE.COM
Registration: 1995-08-14T04:00:00Z
Expiration: 2024-08-13T04:00:00Z
3

Use as a Rust library

Add RDAP to your Rust project:
[dependencies]
rdap = { git = "https://github.com/xtomcom/rdap.git" }
tokio = { version = "1", features = ["full"] }
use rdap::{RdapClient, RdapRequest, QueryType};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = RdapClient::new()?;
    let request = RdapRequest::new(QueryType::Domain, "example.com");
    let result = client.query(&request).await?;
    
    println!("{:?}", result);
    Ok(())
}

Key Features

Everything you need for RDAP queries

Full RDAP Support

Complete implementation of RFC 7480-7484 with support for domains, IPs, AS numbers, entities, and nameservers.

Auto-Detection

Automatically detects query type from input. No need to specify whether it’s a domain, IP, or AS number.

Bootstrap Discovery

Automatic IANA bootstrap service discovery to find authoritative RDAP servers with TLD override support.

Multi-Layer Queries

Follows registrar referrals for domain queries to fetch both registry and registrar data in one command.

Beautiful Output

Colorized terminal output with pretty-printed tables and clear hierarchical display.

Async Support

Built on Tokio for fast, non-blocking I/O with connection pooling and efficient HTTP client.

Ready to get started?

Install RDAP today and start querying domain, IP, and ASN registration data with ease.