LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rdap

Query domain and IP registration data

TLDR

Query domain
$ rdap [example.com]
copy
Query IP address
$ rdap [192.0.2.1]
copy
Query ASN
$ rdap [AS15169]
copy
JSON output
$ rdap -j [example.com]
copy
WHOIS-style output
$ rdap -w [example.com]
copy
Verbose output
$ rdap -v [example.com]
copy
Use specific RDAP server
$ rdap -s [https://rdap.verisign.com/com/v1] [example.com]
copy

SYNOPSIS

rdap [options] query

DESCRIPTION

rdap queries Registration Data Access Protocol servers for domain, IP, and ASN registration information. RDAP is the modern replacement for WHOIS with structured data and authentication support.

PARAMETERS

-j, --json

Output JSON, pretty-printed
-r, --raw
Output raw server response
-w, --whois
Output WHOIS style (domain queries only)
-v, --verbose
Print verbose messages on stderr
-s, --server=URL
Use specific RDAP server
-T, --timeout=SECS
Timeout after specified seconds (default: 30)
-k, --insecure
Disable SSL certificate verification
--text
Output plain text tree format (default)
-t, --type=TYPE
RDAP query type (normally auto-detected): domain, ip, autnum, entity, nameserver, url

EXAMPLES

$ # Domain lookup
rdap example.com

# IP address lookup
rdap 8.8.8.8

# ASN lookup
rdap AS15169

# JSON output
rdap -j google.com

# Specific server
rdap -s https://rdap.verisign.com/com/v1 example.com

# IPv6 address
rdap 2001:4860:4860::8888
copy

QUERY TYPES

Query type is normally auto-detected, but can be specified with --type:

$ domain     - Domain registration
ip         - IP address/network
autnum     - Autonomous System Number
entity     - Registrant entity
nameserver - Name server
url        - Direct RDAP URL
copy

CAVEATS

Not all TLDs support RDAP. Some data may require authentication. Successor to WHOIS.

HISTORY

RDAP was developed by the IETF starting in 2012 as a structured, secure replacement for the WHOIS protocol.

SEE ALSO

whois(1), dig(1), host(1)

Copied to clipboard
Kai