Skip to main content

WHOIS vs RDAP: which domain lookup result should you trust?

· 3 min read
AntAPI team

RDAP and WHOIS both provide registration information. RDAP uses HTTP and structured JSON; traditional WHOIS returns text whose layout varies by server. Prefer an authoritative source with clear timestamps and limitations over a result that merely contains more fields. Neither protocol guarantees access to a domain owner's identity.

Registration and DNS answer different questions​

A registered domain may have no website, A record or MX record. A DNS lookup that returns no address does not establish that the domain can be registered. Conversely, an old registration record does not prove that the registrant still controls a working website.

Use WHOIS Lookup for registration data and DNS Lookup for resolution. If your workflow needs an availability decision, distinguish a conclusive unregistered result from a timeout, unsupported suffix or incomplete response.

How the protocols differ​

QuestionRDAPTraditional WHOIS
Transport and formatHTTP, typically over HTTPS, with standardized JSONTCP port 43, usually free-form text
Dates and objectsStructured events, entities and linksLabels and text conventions depend on the service
PrivacyFields may be withheld or access restrictedFields may also be withheld or replaced
IntegrationParse defined objects while handling optional fieldsAccount for server-specific layouts and referrals

ICANN describes RDAP as the replacement for WHOIS. Coverage and disclosure still depend on the relevant registry and registrar, particularly across different top-level domains; do not assume every source returns the same fields.

A practical comparison workflow​

  1. Normalize the input and confirm which domain was actually queried, including its Unicode and Punycode forms.
  2. Record the source protocol, server and retrieval time. A cached response should be evaluated using its age.
  3. Compare equivalent events. Registration, expiration and last-change dates are different facts; a cache timestamp is none of them.
  4. Inspect missing-field warnings and redactions before making a downstream decision. A normalized JSON shape makes responses easier to consume, but it cannot create information the source did not publish.

For example, a response with registration confirmed but no public contact email should lead to “registered; contact not disclosed,” not “no owner.” See missing WHOIS data for that case.

Use the result in code​

AntAPI normalizes supported RDAP and WHOIS sources into a shared response. Read the WHOIS quickstart and data quality guide before using optional fields in an application. Check published coverage rather than assuming universal TLD support.

Sources​