Networking

How to Check if a Domain Name Is Available (Registrar or RDAP)

To check if a domain is available, type the name into a registrar's search box: it queries the registry and shows whether you can buy it and at what price. To check it yourself, send an RDAP query for the name; a 404 response means the registry has no registration record for it.

Replace example-name.com with your own name in every step below.

Check a domain with a registrar search

This is the method to use before you buy. Any domain registrar has a search field on its home page. Enter the full name including the extension (example-name.com) and the result is one of three things:

  • Available, with a price for the first term and usually a different price for renewal. Read the renewal price before you pay.
  • Taken, often with alternative extensions suggested. Different extensions are different domains with different owners.
  • Available as a premium name, which the registrar prices well above the standard rate.

Prices and premium rules are set by each registrar and registry, so the same name can cost different amounts in different places. Compare before buying.

Check a domain with an RDAP lookup

RDAP (Registration Data Access Protocol) is the standard way to ask a registry what it knows about a domain. ICANN describes it as the replacement for WHOIS. It is plain HTTPS returning JSON, so you can use any HTTP client. RFC 9082 defines the query form as /domain/<name> appended to the registry's base URL:

https://<rdap-base-url>/domain/example-name.com

The base URL differs per TLD (the part after the last dot). Per RFC 9224, a client finds it in the IANA "Bootstrap Service Registry for Domain Name Space": it matches the name against the registry entries label by label, from right to left, and uses the base URL listed for the longest match. Prefer the https entry if several are listed.

With the base URL in hand, request the domain with curl (on Windows PowerShell, use curl.exe, because plain curl is an alias for a different cmdlet):

curl -i https://<rdap-base-url>/domain/example-name.com

How to read the response:

HTTP statusMeaning
200The registry returned a record, so the name is registered. The body is a JSON registration record.
404The registry has no registration record for the name. RFC 7480 section 5.3 specifies this response for a negative answer.

RFC 9083 says an error body, when present, is a JSON object with a required numeric errorCode matching the HTTP code, plus an optional title and description. Example error body (the exact text varies by server):

{
  "errorCode": 404,
  "title": "Not Found"
}

Why "not registered" is not always "buyable"

An RDAP 404 tells you there is no registration record. It does not promise you can register the name. A registry can hold names back or charge premium rates, and some TLDs restrict who may register. The registrar search accounts for those rules when it checks the name for you, so use RDAP to explore and the registrar to confirm.

The reverse also happens: a name is registered but looks dead. Pointing a browser at it fails with an error or a blank page. That only means no website answers there. Registration and DNS records are separate, so a browser error is not a reliable availability test.

What about WHOIS?

The older WHOIS protocol is what many "domain checker" pages and the whois command still use. ICANN states that from 28 January 2025, registries and registrars are no longer required to provide WHOIS services, except for .com, .name and .post, and that both must still provide RDAP. If a WHOIS lookup returns nothing or an odd error for a newer TLD, try RDAP instead.

Which method should you use?

Use a registrar search when you intend to buy the name. It is the only check that shows the real price, the renewal cost and any premium surcharge in one place, and it reflects the rules of the TLD you picked. Use RDAP when you want to check many names quickly, script the check, or confirm what a registry holds without a registrar's sales page in the way.

Whichever you choose, treat the result as a snapshot. A name that is free now can be registered by someone else a minute later, so once you have settled on a name, register it right away instead of leaving the tab open and coming back tomorrow.

If the name is taken, the RDAP record for a registered domain also tells you which registrar holds it and when the registration was created. That can help you judge whether the name is actively used or has simply been parked.

Domain checking tips

  • Include the extension. example-name alone is not a domain.
  • Check spelling variants and the hyphenated version of your name; people will mistype yours.
  • If your first choice is taken, a different extension is a different domain, but think about whether visitors will confuse it with the existing owner's site.

Frequently asked questions

Is a domain available if it does not resolve in a browser?
Not necessarily. A domain can be registered and still show an error page, because the owner may have set no website or no DNS records at all. Registration and DNS resolution are separate things. Only a registration lookup (a registrar search or an RDAP query) tells you whether the name is taken.
What does an RDAP 404 mean for a domain?
RFC 7480 says an RDAP server returns a 404 (Not Found) response when it has no information about the queried object. For a domain query, that means the registry has no registration record for the name. It is a strong sign the name is unregistered, but your registrar's search is what confirms you can actually buy it.
How do I find the right RDAP server for a TLD?
Use the IANA Bootstrap Service Registry for Domain Name Space. RFC 9224 says a client matches the domain against the registry entries label by label from right to left, uses the entry with the longest match, and takes the base URL from its service URL list, preferring https.
Does WHOIS still work for checking domains?
Often, but it is no longer required. ICANN states that from 28 January 2025 registries and registrars no longer have to provide WHOIS services, except for .com, .name and .post, while RDAP remains required. RDAP is the protocol to rely on.

Sources