What is a domain name?
A domain name is the name someone types to reach a website — the human-readable address of a place on the internet. This guide explains what a domain name is, what each part of it is called, and how a domain differs from a URL and an IP address.
What is a domain name?
A domain name is a name that identifies a computer or service on the internet. Every machine connected to the internet — including the one that runs a website — has a numerical address called an IP address, such as 192.0.2.7. People remember words far better than numbers, so the Domain Name System (DNS) keeps a translation between the two: when someone types a domain name, DNS looks up the IP address behind it, and the browser connects there.
A domain name is not a website and not a file. It is closer to an entry in a phone book: the name is what you look up, and the address behind it is where the actual thing lives. The website itself lives on a computer belonging to a hosting provider; the domain name just points at it. The full picture is in domain name vs hosting.
The parts of a domain name
Domain names are read from right to left, from the most general part to the most specific. Take www.brightplumbing.com:
- .com is the *top-level domain* (TLD), sometimes called the domain extension. It is the last label, after the final dot. Top-level domains come in several kinds — generic (.com, .org), country-code (.ca, .uk) and restricted (.edu, .gov).
- brightplumbing is the *second-level domain*. This is the part you choose and register; for most names this is "the name."
- www is a *subdomain*: an optional extra label in front of the registered name.
wwwis a convention, not a requirement. A site can live atbrightplumbing.comalone, and subdomains likeblog.brightplumbing.comorshop.brightplumbing.comcan each point somewhere different.
Each dot-separated part is called a *label*. Labels may contain letters, digits and hyphens, but not a hyphen at the start or end; each label is limited to 63 characters and a full domain name to 253 characters. Names are case-insensitive: BrightPlumbing.com and brightplumbing.com are the same name.
Domain name examples, explained
example.com— the simplest case: one registered label (example) under the .com TLD, no subdomain.en.wikipedia.org— the registered name iswikipedia.org;enis a subdomain, here the English edition of an encyclopedia.brightplumbing.co.uk— in the United Kingdom, registrations sit under fixed second levels such as.co.uk. The registrable name is the whole ofbrightplumbing.co.uk, and the top-level domain is.uk.about.me— .me is the country-code TLD of Montenegro, marketed worldwide as a personal-name extension.
Where the domain sits in a URL
A URL (uniform resource locator) is a complete address for one specific thing on the web, and the domain name is one component of it. Take https://www.brightplumbing.com/services?job=leak:
https://— the scheme; it says "fetch this with HTTPS," the secure form of HTTP.www.brightplumbing.com— the host; the domain name sits here, including any subdomain./services— the path to a particular page on that host.?job=leak— a query string, extra parameters the page can read.
So the domain-vs-URL question has a simple answer: every URL contains a domain (or a bare IP address), but a domain name is only one part of the URL — the part that identifies the host.
Domain name vs IP address vs URL
- An IP address is the actual number a computer uses to reach another computer.
- A domain name is a human-friendly label that DNS translates into that number.
- A URL is the full instruction: scheme, domain (or IP), path and query.
One domain can have several IP addresses behind it, for reliability, and one IP address can serve many domains, as on shared hosting. Neither direction is one-to-one, which is why the mapping lives in DNS rather than in the numbers themselves. The lookup itself is covered in how DNS works.
What a domain name is not
A domain name is not a business name: registering brightplumbing.com gives you no general legal rights to the words, and registers no business anywhere. It is not a trademark, either. And it is not permanent — a registration is a lease you keep by renewing, which is the subject of how domain registration works.
Frequently asked questions
What was the first domain name ever registered?
symbolics.com, registered on March 15, 1985 by Symbolics, a computer company. A handful of other technology companies registered their names later that same year.
Is a domain name the same thing as a website?
No. The domain name is the address; the website is the content at the address. A domain can exist with nothing at it (a parked page), and a finished website can sit unreachable because nobody pointed the domain at it — which is also why domains and hosting are billed separately.
How many domain names are there?
Hundreds of millions are registered at any given time, and the number changes daily as names are registered, dropped and re-registered. If you are weighing a name for a project, you can see how crowded a name idea is with the search tool on the home page.
Do I own my domain name once I register it?
Not the way you own a physical thing. Registration is an exclusive right to use the name for the term you paid for, kept by renewing. If it lapses, the name eventually returns to the open pool — see expired domain names.