WHOIS and RDAP: looking up who owns a domain or IP
WHOIS and RDAP both look up registration data for domains, IPs and ASNs. How they differ, how to read each field, why owners are hidden, and how to report abuse.
5 min readPart 9 of 16
On this page
Every domain name, every block of IP addresses and every ASN has a public registration record: who it belongs to, when it was registered, through whom, and who to contact when something goes wrong. The older protocol for looking these records up is WHOIS; the newer one is RDAP.
Who keeps the records
For domains, the data is split between a few parties:
- The registry runs a top-level domain, such as Verisign for
.comor CNNIC for.cn. It keeps the basics for every domain under it: registration and expiry dates, status, name servers, and which registrar handled it. - The registrar is the company that sold you the domain. For some top-level domains such as
.com, the registrant's details are held by the registrar rather than the registry, so a full lookup takes two steps. - The registrant is whoever holds the domain.
For IP addresses and ASNs, the records live in the databases of the five regional internet registries (see What is an IP address?). They record which organization a block or ASN was assigned to, which country it's registered in, and who to contact about abuse.
How WHOIS and RDAP differ
Both return the same data. What differs is how you ask and what you get back.
| WHOIS | RDAP | |
|---|---|---|
| Introduced | 1980s | Standardized in 2015 |
| How you ask | Plain text over port 43 | HTTPS requests |
| What you get | Text in each registry's format | JSON with a standard structure |
| Languages | No defined encoding | Supports internationalized data |
| Which server | You have to know where to ask | Found automatically from a directory |
WHOIS has no standard format: every registry names fields and writes dates its own way, which makes it hard for software to read reliably. Take the registration date:
The registration date in WHOIS
- Verisign.comCreation Date: 1997-09-15T04:00:00Z
- CNNIC.cnRegistration Time: 2003-03-10 19:06:34
- JPRS.jp[登録年月日] 2001/02/02
- Nominet.ukRegistered on: 10-Jun-2014
- DENIC.deNot given over port 43, nor the holder
The same field in RDAP, for every registry
"eventAction": "registration", "eventDate": "1997-09-15T04:00:00Z"RDAP replaces it with defined fields, and it uses directories published by IANA to find the right server automatically:
data.iana.org/rdap/dns.jsonrdap.verisign.com/com/v1/rdap.markmonitor.com/rdap/
Registries and registrars for generic top-level domains (.com, .net, .org and so on) have offered RDAP since 2019, and ICANN announced that from 28 January 2025, RDAP replaces WHOIS as the definitive source of their registration data. WHOIS hasn't vanished overnight; Verisign's .com WHOIS still answers, for example. Country-code domains aren't governed by ICANN, and they're much further behind:
Top-level domains with an RDAP server in IANA’s directory
- Generic (.com, .net …)1033 of 103699.7%
- Internationalized (.中国 …)96 of 15163.6%
- Country and region (.cn, .jp …)74 of 24829.8%
Many country-code domains still only offer WHOIS, and a few offer neither. CKIP's WHOIS lookup uses RDAP where it's available and WHOIS otherwise, and the supported suffixes list on the page shows which method each one uses.
Reading a domain record
- Registered, Expires, Last updated: the key dates. A domain registered a few days ago that imitates a well-known brand is a classic sign of phishing.
- Registrar: the IANA ID after it is the registrar's ICANN accreditation number. To reach a domain's holder or report the domain, the registrar is usually the place to start.
- Registrant: only the organization and country are shown. Most registrars hide personal names, phone numbers and emails under privacy rules or replace them with a privacy service, and the page shows "Redacted for privacy". That doesn't mean the domain has no owner.
- Name servers: the servers that answer DNS queries for the domain, which tell you which DNS provider hosts it.
- DNSSEC: whether the domain is signed. If it is, resolvers can check that its DNS answers haven't been tampered with.
- Status: codes starting with
clientare set by the registrar, and codes starting withserverby the registry.
Common statuses:
- Transfer locked, Update locked, Delete locked: standard anti-hijacking protection. Most healthy domains have them.
- On hold (
clientHold,serverHold): the domain doesn't resolve, usually because of non-payment, expiry or a policy action. - Redemption period, Pending delete: the domain has expired and is being released; the stages are in the figure below.
- In useBefore the expiry date
- Renewal graceAfter expiry; set by the registrar, up to 45 days; renews normally
- Redemption30 days; a redemption fee to get it back
- Pending delete5 days, can’t be restored
- ReleasedAnyone can register it
Two things that often confuse people:
- Subdomains are looked up at the registrable level. Entering
www.bbc.co.uklooks upbbc.co.uk, and a subdomain a platform hands out, such asname.github.io, looks upgithub.ioitself. - No record doesn't mean the domain is available. Domains that are reserved, sold as premium names or blocked have no record either. Check with a registrar to see whether you can register it.
Reading an IP or ASN record
Looking up an IP returns the record for the block it's in:
- Network, Address range: the addresses this record covers, written as a prefix and as a start and end address; see CIDR notation explained.
- Network name, Handle: the name the holder gave the block and its ID in the registry's database.
- Organization, Registered country: who the block was assigned to and where it's registered. The registered country isn't necessarily where the addresses are used; see Native and cross-border IPs.
- Parent network: addresses are handed down in levels. A registry gives a large block to an ISP, which assigns smaller pieces to its customers. The lookup shows the most specific level and lists its parent.
- Allocation type: an allocation goes to an ISP to hand out further, while an assignment goes to the end user. PA (provider-aggregatable) space belongs to the ISP and has to be returned if you switch providers. PI (provider-independent) space belongs to the user and moves with them. Legacy space was handed out before the regional registries existed.
- Abuse contact: the mailbox for reports about spam, attacks and other abuse from these addresses.
Here's how the levels stack up for 52.48.4.44, an AWS address in Ireland:
52.0.0.0/8Managed by ARINNET52
52.0.0.0 – 52.79.255.255Amazon Technologies Inc. · direct allocation from ARINAT-88-Z
52.48.0.0/14Amazon Data Services Ireland · allocated on by AmazonAMAZON-DUB
The address you looked up52.48.4.44
Looking up an ASN shows its name, organization, registered country and regional registry.
The registered address of an IP tells you who manages the block and where to send complaints, not where the server is. For an IP's location and risk, use the IP lookup.
Reporting abuse from an IP
If an IP is scanning your server or sending you spam, you can report it to the block's abuse contact:
- Run a WHOIS lookup on the IP and find the email on the Abuse contact line.
- Say what happened: the IP, when it happened (with the time zone) and what you saw, plus the relevant log lines.
- Send it only to that mailbox, not to every contact in the record.
You may not hear back, but ISPs and cloud providers usually act on reports backed by logs.
Looking it up from the command line
The examples below use google.com and an AWS address, whose records haven't changed in years, so you can compare the output.
macOS includes a whois command, and on Linux it's usually one whois package away. The output is long, so pick out a few lines with grep:
whois google.com | grep -E '^ (Creation Date|Registry Expiry Date|Registrar):' Creation Date: 1997-09-15T04:00:00Z Registry Expiry Date: 2028-09-14T04:00:00Z Registrar: MarkMonitor Inc.RDAP is a plain HTTPS request, so curl works; it returns JSON, and jq picks out fields. First, find which server handles .com in IANA's directory:
curl -s https://data.iana.org/rdap/dns.json | jq -r '.services[] | select(.[0] | index("com")) | .[1][]'https://rdap.verisign.com/com/v1/Then ask it. The dates are under events, with the same field names at every registry:
curl -s https://rdap.verisign.com/com/v1/domain/google.com \ | jq -c '.events[] | select(.eventAction != "last update of RDAP database") | {eventAction, eventDate}'{"eventAction":"registration","eventDate":"1997-09-15T04:00:00Z"}{"eventAction":"expiration","eventDate":"2028-09-14T04:00:00Z"}{"eventAction":"last changed","eventDate":"2019-09-09T15:39:04Z"}For IPs and ASNs you can start at any regional registry, which redirects you if the resource isn't theirs, so add -L to follow the redirect. Ask APNIC, for example, and it passes 52.48.4.44 on to ARIN:
curl -sL https://rdap.apnic.net/ip/52.48.4.44 | jq -r '.handle, .name, .type, .parentHandle'NET-52-48-0-0-1AMAZON-DUBALLOCATIONNET-52-0-0-0-1The last line is the ID of the next level out in the figure above. If you'd rather not find servers and read JSON yourself, CKIP's WHOIS lookup finds the right server, turns the result into readable fields and keeps the original responses under Raw records.