To check if a domain name is available, look it up in the registration database for its ending (.com, .org, .uk and so on), not just in DNSDNS The internet’s phone book. It turns a name people can remember, like example.com, into the number address computers use to find the server. More about DNS →. This guide is for anyone choosing a name for a new site or business who wants a reliable answer and to understand what “taken” really means.
Run a WHOISWHOIS A public lookup showing who a domain is registered with, when it expires and which nameservers it uses. More about WHOIS → or RDAP lookup on the exact name, for example with lookup.icann.org in a browser or whois example.com in a terminal. If the registry returns “No match”, “not found” or an HTTP 404, the name is not registered and you can usually buy it from any domain registrar. If a record comes back, it is taken, even when no website loads.
Where the real answer lives
Every domain ending, called a top-level domain or TLD, is run by one organisation called a registry. The registry keeps the master list of every name registered under that ending. RegistrarsDomain registrar The company you buy and renew your domain name from, and where you choose who handles its settings. More about Domain registrar → are the shops that sell names, and they all check that same list when you search.
There are two ways to ask a registry directly:
- WHOIS is the old text-based lookup. It shows the registrar, dates, status and nameserversNameserver The server that holds all of a domain’s settings. Whoever runs your nameservers controls where your website and email point. More about Nameserver → of a registered domain.
- RDAP (Registration Data Access Protocol) is its modern replacement. It returns the same kind of information in a structured format over HTTPSHTTPS The secure version of the web, shown by the padlock. Everything sent between you and the site is scrambled so nobody in between can read or change it. More about HTTPS →, and it is what ICANN’s own lookup tool uses for most endings.
A domain is available when the registry has no record for it. Anything else means someone holds it, or the registry is holding it back.
Searching never reserves a name. Nobody owns it until a registrar completes the registration and payment. If you find a name you want, register it when you are ready rather than assuming it will still be free next month.
Check availability in a browser
This is the simplest method and works on any device.
- Open lookup.icann.org (ICANN’s free registration data lookup).
- Type the full name, including the ending, such as
exampleco.com. - Read the result. If it shows a registrar, creation date and expiry date, the name is registered. If it reports that no record was found, the name is not registered.
A registrar’s search box gives the same yes or no, because it asks the same registry. A plain lookup also shows the facts behind a “taken” result, such as when the domain expires.
Check availability from the command line
If you already work in a terminal, these checks are quick and leave no doubt about where the answer came from.
whois on Linux and macOS
macOS includes whois. On Ubuntu and Debian install it first:
sudo apt install whois
On AlmaLinux and Rocky Linux:
sudo dnf install whois
Then ask about the name:
whois exampleco.com
For a registered .com you will see lines such as Registrar:, Creation Date:, Registry Expiry Date: and Name Server:. For an unregistered .com the registry replies with a line starting No match for. Other registries word it differently, for example “NOT FOUND” or “No Data Found”, so read the reply rather than looking for one exact phrase.
RDAP with curl
RDAP works over normal HTTPS, so curl is enough. Verisign runs the .com registry, and its RDAP address follows this pattern:
curl -s -o /dev/null -w "%{http_code}\n" https://rdap.verisign.com/com/v1/domain/exampleco.com
The command prints only the HTTP status codeHTTP status code The three-digit number a website sends back with every page, saying how it went: 200 means fine, 404 means not found, 500 means the site itself broke. More about HTTP status code →:
200means the registry has a record, so the name is registered.404means the registry has no record, so the name is not registered.
Drop the -o /dev/null -w ... part to see the full record as JSON. For other endings, the address of each registry’s RDAP service is listed in IANA’s bootstrap file at https://data.iana.org/rdap/dns.json.
Windows
Windows does not include a whois command. Use the browser method, or PowerShell:
Invoke-RestMethod https://rdap.verisign.com/com/v1/domain/exampleco.com
A registered name prints its record. An unregistered name produces an error that mentions 404 (Not Found).
Why DNS alone is not a reliable test
It is tempting to type the name into a browser, or run a DNS lookup, and decide that a name with no website must be free. That test is wrong in both directions.
- Registered names can have no DNS. Plenty of people register a domain and never point it anywhere. Some domains have no nameservers set, and some have been put on hold by the registrar or registry (status
clientHoldorserverHold). All of these return NXDOMAIN, the same “does not exist” answer you get for a name nobody owns. - No website does not mean no owner. A domain can be registered only for email, or parked, or kept to protect a brand.
DNS tells you whether a name currently resolves, as explained in how DNS works. Only the registry tells you whether it is owned. If you are seeing NXDOMAIN on a domain you do own, that is a different problem: see how to fix DNS_PROBE_FINISHED_NXDOMAIN.
When a name is taken, or nearly free
A “taken” result is not always the end of the story. The status lines in the WHOIS or RDAP record tell you what stage the domain is at.
| Status you see | What it means | Can you register it? |
|---|---|---|
ok or active, often with transfer locks | Registered and in normal use | No. You could only buy it from the owner |
autoRenewPeriod, or the site shows an expiry notice | Recently expired and in the grace period, when the owner can still renew as normal | Not yet |
redemptionPeriod | Expired and removed from use, but the owner can still restore it for a fee | Not yet |
pendingDelete | Being removed by the registry, usually for about five days | Not until it is deleted |
clientHold or serverHold | Registered but switched off in DNS | No |
| No record found | Not registered | Usually yes |
For the common generic endings such as .com, .net and .org, an expired domain usually passes through a registrar grace period, then a redemption period that typically lasts up to 30 days, then pending delete. Exact timings vary by registrar and registry, and country endings such as .uk or .de set their own rules. Popular names are often caught by back-order services the moment they are released, so do not count on an expiring name.
Reserved and premium names
Some names return no record but still cannot be registered normally. Registries reserve certain names, and on many newer endings they sell short or dictionary words as “premium” names at a higher price. If a lookup says a name is free but every registrar refuses it or quotes an unusual price, this is the likely reason.
A short checklist before you register
- Check the exact spelling with WHOIS or RDAP, not just a browser.
- Check the endings you care about separately: exampleco.com and exampleco.co are different domains.
- Check close variants people might type by mistake.
- Search your country’s trade mark register for the name, so you do not build on a name someone else has rights to.
Common problems
| Symptom | Cause | Fix |
|---|---|---|
whois: command not found | The whois package is not installed | Install it with sudo apt install whois or sudo dnf install whois |
| whois prints only a referral line | The first server only knows which registry to ask | Read further down, or run whois again against the server it names with -h |
| Lookup says free, but registrars refuse it | Reserved or premium name | Choose another name, or check the registry’s rules for that ending |
| No website, but the lookup shows a record | Domain is registered but unused or on hold | Treat it as taken and check its status and expiry date |
Official documentation
Related
- What is DNS propagation: why a newly registered domain can take a while to work everywhere.
- DNS record types explained: the A, MX and TXT recordsTXT record A domain setting that holds a line of text. Services use it to check you own the domain, and email uses it for SPF, DKIM and DMARC. More about TXT record → you will add once the name is yours.
- How to edit DNS records in cPanel’s Zone Editor: pointing a new domain at your hosting account.
Something out of date? Software changes. If a step no longer works, tell us and we will check it and update the page.



