What Is a Domain Name and How Does It Actually Work
If you are about to build your first website, you will hit the same wall almost everyone does: hosting companies, registrars and website builders all talk about domains as if you already know what they are.

If you are about to build your first website, you will hit the same wall almost everyone does: hosting companies, registrars and website builders all talk about domains as if you already know what they are. So what is a domain name, really, and how is it different from your website or your hosting? Getting this clear first saves you money and a lot of confused support tickets later.
In short, a domain name is the human friendly address people type to reach your site, like a street address for a building. It does not hold your website. It points to wherever your website lives. Here is how that works, what you are actually paying for, and how to choose one well.
What is a domain name in plain language
Every computer on the internet, including the servers that hold websites, is reached by a numeric IP address such as 203.0.113.42. Numbers like that are hard to remember and they change when you move hosts. A domain name is a readable label that maps to those numbers, so people can type a name instead.
A domain has parts, read from right to left:
- Top level domain (TLD): the ending, such as .com.org.site or a country code like .uk or .de.
- Second level domain: the name you choose, such as "riverbakery" in a riverbakery .com address.
- Subdomain: an optional prefix such as www or shop, which you can create yourself once you own the domain.
For a wider picture of how a browser, a server and a domain fit together, our explainer on how websites actually work walks through a full page request.
How a domain name finds your website
When someone types your domain into a browser, a lookup happens in the background through the Domain Name System, or DNS. It usually takes under 100 milliseconds:
- The browser asks a DNS resolver, typically run by the visitor's internet provider, for the IP address of your domain.
- The resolver asks the root servers which servers handle the TLD, for example .com.
- The TLD servers reply with the nameservers set for your domain at your registrar.
- Your nameservers reply with the IP address of your hosting server, stored in a record called an A record.
- The browser connects to that IP address and requests the page.
Resolvers store the answer for a while so the next visitor gets it instantly. That caching is also why changes to your DNS can take time to show up, which we cover in why your new domain is not loading yet.
Domain name vs hosting vs website
These three get mixed up constantly, partly because many companies sell them together.
| Thing | What it is | Typical yearly cost |
|---|---|---|
| Domain name | The address people type | About 10 to 20 dollars for a .com |
| Hosting | The server space where files live | Free to a few hundred dollars |
| Website | The pages, images and code themselves | Your time, or a designer's fee |
You can buy a domain from one company and host your site with another. You simply point the domain to the host by changing its nameservers or DNS records.
You never truly own a domain, you rent it
When you "buy" a domain, you are registering the right to use it for a period, usually one to ten years. Registrars are accredited companies that manage registrations on behalf of the registry that runs each TLD. If you forget to renew, the domain expires, goes through a grace period of roughly 30 to 45 days, then becomes available to anyone.
Three habits prevent most problems: turn on auto renew, keep the email address on your registrar account current, and enable two factor login. If you ever want to move registrars, our guide on transferring a domain safely explains the transfer lock and authorisation code steps.
What else a domain name can do
A domain is more than a website address. The same name can power several services, each controlled by its own DNS record:
- Email: MX records tell the internet which mail server accepts messages for your domain, so you can use an address with your own name instead of a free webmail account.
- Subdomains: a shop, a blog or a booking page can live on its own subdomain and even on a different host from your main site.
- Verification: TXT records prove to search tools and email providers that you control the domain.
Because all of this hangs off one name, losing access to your registrar account can take down your website and your email at the same time. Treat that login like a bank account.
Why you should skip the cheap first year deal
Most beginner guides tell you to grab the cheapest domain offer you can find. I would be more careful. Many registrars sell the first year for one or two dollars, then renew at 20 to 40 dollars. Some charge extra for privacy protection that others include free, and some make transfers awkward. Over five years, the "cheap" option often costs more.
Before you buy, check the renewal price, whether WHOIS privacy is included, and whether DNS management is free. A registrar with honest renewal pricing and a clean control panel is worth a few extra dollars in year one.
How to choose a good domain name
- Keep it short: under 15 characters is ideal, and easy to say out loud.
- Avoid hyphens and numbers: they are easy to mistype when someone hears the name.
- Prefer .com or your country code: visitors trust familiar endings more. Newer endings like .site or .shop work, but check renewal prices.
- Check social handles: see if the same name is free on the platforms you plan to use.
- Search for trademarks: a quick search of your national trademark database avoids legal headaches later.
Once you have a shortlist, say each name out loud to a friend and ask them to type it. If they spell it wrong, visitors will too. A name that survives that simple test is usually a safe choice for years.
Frequently asked questions
What is the difference between a domain name and a URL?
A domain name is just the address part, the name plus its ending. A URL is the full location of a specific page, including the https protocol at the start and a path such as /menu after the domain. Every URL contains a domain, but a domain alone is not a full URL.
Can I buy a domain name without hosting?
Yes. Many people register a domain first to secure the name and add hosting later. You can also use a domain only for email, or point it to a website builder that provides its own hosting.
How long does it take for a new domain name to work?
A newly registered domain usually starts working within a few minutes to a few hours. If you change nameservers on an existing domain, it can take up to 24 to 48 hours for every resolver to pick up the change.
More in Web Basics
Web Basics
What Website Bandwidth Limits Actually Mean for You
Your host emails to say you have used 82 percent of your monthly bandwidth, and it is only the 14th.
Web Basics
What HTTP Status Codes Mean and Which Ones Matter
A reader emailed me in September because his hosting support had replied to a ticket with the sentence "the origin is returning...
What Is a Favicon and How to Add One to Your Website
Your website looks finished, but in the browser tab it still shows a blank grey page icon, or worse, the logo of the website...