WhichWebHosting home

HomeGuidesDomains and DNSHow to run a WHOIS lookup on a domain

How to run a WHOIS lookup on a domain

Published

Share

A WHOIS lookup asks who is responsible for a domain name or an Internet Protocol (IP) address.1, source 1 You can run one for free with ICANN's Registration Data Lookup Tool, which looks up publicly available registration data, such as the name and contact information for the owner of a particular domain.1, source 1 The Registration Data Access Protocol (RDAP) lets you access registration data and was created as the replacement for the WHOIS protocol.2, source 2

What does a WHOIS lookup show?

WHOIS is not an acronym.1, source 1 WHOIS refers to the protocols, services and data types associated with domain names, IP addresses and Autonomous System Numbers (ASNs).1, source 1 Historically, the term WHOIS has meant the information collected when a domain name or IP numbering resource is registered, made available through a public directory service, and potentially updated throughout the life of the resource.1, source 1 WHOIS has also been used to mean public directory services that give access to domain name registration information, typically through applications that implement the WHOIS protocol or a web-based interface.1, source 1

WHOIS has also been used to mean the WHOIS protocol itself, which is defined in RFC 3912.1, source 1 For generic top-level domains (gTLDs), registration data is the information that is collected or generated in relation to a registered domain name.1, source 1 When a gTLD domain name is registered, the registrar must collect or generate certain data associated with it.1, source 1 Registrants are the individuals or organizations that register a domain name.1, source 1

A registrar is a company that registers domain names, and a reseller offers registration services through a registrar.1, source 1 Registration Data Directory Services (RDDS) are the services offered by registries and registrars to give access to registration data, or a subset of it, including the WHOIS service where it is offered.1, source 1 The Registration Data Directory Services system is a set of independently operated and distributed databases, run by registrars and registries, that are each responsible for their portion of the Internet's identifiers.1, source 1 Registry operators are the organizations that maintain the master database of all domain names registered under a particular generic top-level domain (gTLD).2, source 2

The databases for Internet numbers (IPv4 and IPv6 addresses and ASNs) are independently operated and unassociated with the domain name databases.1, source 1

How does the original WHOIS protocol work?

WHOIS is a TCP-based, transaction-oriented query and response protocol.3, source 3 RFC 3912, the technical specification of the WHOIS protocol, was published in 2004.1, source 1 A WHOIS server listens on TCP port 43 for requests from WHOIS clients.3, source 3 A WHOIS client sends a text request to the WHOIS server, and the server replies with text content.3, source 3

Every WHOIS request ends with an ASCII CR followed by an ASCII LF.3, source 3 The WHOIS server closes its connection as soon as its output is finished, and the closed TCP connection tells the client the response has been received.3, source 3 A WHOIS query is limited to the specific database queried, whether that is a registry operator's or a registrar's registration data database.4, source 4 With the WHOIS protocol, information is not linked across contracted party systems.4, source 4

The WHOIS protocol has not been internationalized and has no mechanism for indicating the character set in use.3, source 3 The WHOIS protocol has no provisions for strong security: it lacks mechanisms for access control, integrity and confidentiality.3, source 3 RFC 3912 says WHOIS-based services should only be used for information that is non-sensitive and intended to be accessible to everyone.3, source 3

What is RDAP and why did it replace WHOIS?

RDAP was developed by the technical community in the Internet Engineering Task Force (IETF).2, source 2 In March 2015, the Web Extensible Internet Registration Data Service (WEIRDS) working group published RFCs defining RDAP, a standardized replacement for the WHOIS protocol.1, source 1 RDAP delivers WHOIS-like registration data in standardized data access and query response formats.2, source 2 RDAP adds support for internationalization, secure access to data, and the ability to find authoritative servers.2, source 2

RDAP was intended to address deficiencies in WHOIS, including the lack of standardized command structures, standardized output and error structures, support for internationalization and localization, and support for user identification, authentication and access control.5, source 5

All gTLD registries and registrars were required to implement an RDAP service by Aug 26, 2019.4, source 4 All gTLD registries and registrars must provide RDAP services using the gTLD RDAP Profile.2, source 2 As of Jan 28, 2025, they are not required to provide WHOIS services, except for .com, .name and .post.2, source 2

RDAP implementation does not require changes to the data already stored and accessed via WHOIS: RDAP is another way of accessing that registration data.4, source 4 With RDAP the registration data is the same as with WHOIS, but the structure of the response is different.4, source 4 RDAP has a function called bootstrap that lets a query go beyond one registry operator or registrar to search all registration data available in the RDAP service.4, source 4 Instead of returning a result such as "not available," an RDAP query will route to the authoritative server to return the relevant data.4, source 4

RFC 9082 specifies how to query registration data using a RESTful web service and uniform query patterns.5, source 5 The RDAP query service is implemented using the Hypertext Transfer Protocol (HTTP).5, source 5 RFC 9083 defines RDAP responses in the JSON format.6, source 6

How do you run a domain lookup?

RDAP is a protocol, not a website.4, source 4 RDAP can be used through a command line utility, lookup software or a third-party website.4, source 4 ICANN's Registration Data Lookup Tool uses RDAP, the replacement of the WHOIS port 43 protocol.7, source 7

ICANN maintains a publicly available RDAP client that runs inside a web browser.8, source 8 That browser-based RDAP client is free to use and runs RDAP queries directly from your web browser.8, source 8 ICANN also maintains a command line RDAP client that runs in a computer's terminal application and can be used for scripting RDAP commands.8, source 8 The ICANN command line RDAP client is open source and available on GitHub.8, source 8

Other RDAP clients are listed in the Guide to the Registration Data Access Protocol, and ICANN neither endorses them nor guarantees their compliance with applicable requirements.8, source 8

  1. Choose an RDAP client, such as a third-party website, ICANN's browser-based client or ICANN's command line client.4, 8, sources 4 and 8
  2. Give the client the domain name you want to check in a fully qualified form; an internationalized domain name (IDN) is valid in either A-label or U-label format.5, source 5
  3. Let the client build the query, which is formed by retrieving a base URL from an IANA registry and appending the domain path segment.5, source 5
  4. Read the event dates and statuses in the response, such as the "registration", "last changed" and "expiration" events and the "transfer prohibited" status.6, source 6
  5. Check the entities for roles such as "registrant", "registrar" and "abuse", and note any status that says information is "private" or "removed".6, source 6

An RDAP query for domain information has the form /domain/XXXX, where XXXX is a fully qualified domain name.5, source 5 An RDAP lookup that only checks whether an object exists, without returning RDAP-encoded results, can use the HTTP HEAD method.5, source 5 An RDAP server must return an HTTP 501 (Not Implemented) response for query types it does not support.5, source 5 For IP queries, the RDAP 'ip' path segment identifies IP networks and associated data referenced by an IPv4 or IPv6 address.5, source 5

How do you read the results?

An RDAP domain object holds information about the domain registration, nameserver information related to the domain name, and entities related to it, such as registrant information and contacts.6, source 6 The "ldhName" member of an RDAP domain object is a string describing the domain name in LDH form.6, source 6 The "nameservers" member of an RDAP domain object is an array of nameserver objects.6, source 6

The "events" array in an RDAP response consists of objects that record events that have occurred on an object.6, source 6 Each event has a required "eventAction" string that denotes the reason for the event.6, source 6 Each event has a required "eventDate" string containing the time and date the event occurred.6, source 6 RDAP events can be future dated, and one use of that is to denote when an object expires from a registry.6, source 6

The "registration" event action means the object instance was initially registered.6, source 6 The "last changed" event action notes when the information in the object instance was last changed.6, source 6 The "transfer" event action means the object instance was transferred from one registrar to another.6, source 6 The "expiration" event action means the object instance has been removed or will be removed at a predetermined date and time from the registry.6, source 6

The "status" member of an RDAP object is an array of strings indicating the state of a registered object.6, source 6 The "active" status means the object is in use, and for domain names it means the domain name is published in DNS.6, source 6 The "transfer prohibited" status means transfers of the registration from one registrar to another are forbidden, and it normally applies to DNR domain names.6, source 6 The "delete prohibited" status means deletion of the registration is forbidden, and it normally applies to DNR domain names.6, source 6

The "port43" member of an RDAP object holds the fully qualified host name or IP address of the WHOIS server where the object may be found.6, source 6 RDAP uses entity objects to represent organizations, corporations, governments, non-profits, clubs, individual persons and informal groups of people.6, source 6 The "registrant" role means the entity is the registrant of the registration.6, source 6 The "registrar" role means the entity represents the authority responsible for the registration in the registry.6, source 6

The "technical" role means the entity is a technical contact for the registration.6, source 6 The "abuse" role means the entity handles network abuse issues on behalf of the registrant of the registration.6, source 6 The "validated" status signifies that the data of the object has been found to be accurate, and it is usually found on entity objects to note the validity of identifying contact information.6, source 6

Why is the owner's information sometimes missing?

An RDAP response needs to be built with privacy and other data-releasing policies in mind.5, source 5 There might not be a single, static information return policy that applies to all RDAP clients equally.5, source 5 Client identity and associated authorizations can be a relevant factor in how broad an RDAP response set is for a particular query.5, source 5

The "proxy" status means the registration of the object was performed by a third party.6, source 6 The "private" status means the information of the object is not designated for public consumption.6, source 6 The "removed" status means some of the information of the object has not been made available and has been removed.6, source 6 The "obscured" status means some of the information of the object has been altered so as not to readily reveal the actual information.6, source 6

The "proxy", "private", "removed" and "obscured" statuses are most commonly applied to entities.6, source 6 An empty "fn" (name) member may be used in an RDAP contact when the contact name does not exist or is redacted.6, source 6

Common questions

Is a WHOIS lookup free?

Yes. ICANN operates a free Registration Data Lookup Tool that lets people look up publicly available registration data. ICANN's browser-based RDAP client is free to use and runs RDAP queries directly from your web browser.

Can you see who owns a domain?

Sometimes. ICANN's free Registration Data Lookup Tool lets you look up publicly available registration data, such as the name and contact information for the owner of a particular domain. However, some of the information can be given a private status, meaning it is not designated for public consumption, or a removed status, meaning it has not been made available.

Is WHOIS being replaced?

Yes. The Registration Data Access Protocol was created as the replacement for the WHOIS protocol. All gTLD registries and registrars must provide RDAP services. As of Jan 28, 2025, they are not required to provide WHOIS services, except for .com, .name and .post.

What port does WHOIS use?

TCP port 43. A WHOIS server listens on that port for requests from WHOIS clients. WHOIS is a TCP-based, transaction-oriented query and response protocol.

Does WHOIS work for IP addresses too?

Yes. WHOIS refers to the protocols, services and data types associated with domain names, IP addresses and Autonomous System Numbers. For IP queries, the RDAP 'ip' path segment identifies IP networks and associated data, though the databases for Internet numbers are independently operated and unassociated with the domain name databases.

What does WHOIS stand for?

WHOIS is not an acronym. It is a service that asks and answers the question of who is responsible for a domain name or an Internet Protocol address.

Sources

Every fact on this page comes from one of these, checked before it goes live.

More guides

Domains and DNS

How to check if a domain name is available

Run a check on domain name availability with a Whois or RDAP lookup, then read the status codes that show when a deleted domain can be registered again.

· Mateo Cardenas

Domains and DNS

How to choose a domain name

Pick a domain name whose labels meet the character and length rules, then check its top-level domain and whether it could infringe someone else's rights.

· Mateo Cardenas

Domains and DNS

How to do a DNS lookup

Learn how to do a DNS lookup with nslookup, Resolve-DnsName, dig and host. Understand DNS record types, view your settings and read the query results.

· Mateo Cardenas

Domains and DNS

How to register a domain name

Learn how to register a domain name: choose a registrar, give accurate contact details, and understand renewal, free domain and transfer rules.

· Mateo Cardenas