A domain name is your website’s address — the thing people type, like example.com — which you register through a registrar. Web hosting is the server space that stores your site’s files and delivers them to visitors. They are separate services: the domain points to the hosting through DNS. You need both for a live website, but you can buy them from the same company or different ones, and change either one independently.
The clearest way to picture the difference is a physical analogy. Your domain name is the street address; your web hosting is the building at that address. The address tells people where to go, but it is the building that actually holds everything. An address with no building behind it sends visitors nowhere; a building with no address is impossible to find. A working website needs both, wired together.
Two services, two jobs
A domain name is registered, not built. You reserve it through an ICANN-accredited registrar for a renewable yearly term — our guide on registering a domain covers that process. The domain itself stores no web pages; it is purely the human-friendly name that stands in for a server’s numeric address.
Web hosting is the opposite half: server space, usually rented monthly or yearly from a hosting company, where your actual files — HTML, images, databases, code — live and are served to anyone who visits. The host runs the machine, keeps it online, and hands your pages to browsers that ask for them.
| Domain name | Web hosting | |
|---|---|---|
| What it is | Your site’s address (e.g. example.com). | Server space that stores and serves your site’s files. |
| Analogy | The street address. | The building at that address. |
| You get it from | A domain registrar. | A web hosting provider. |
| Billing | Yearly registration, renewable up to ten years. | Ongoing monthly or yearly, scaling with resources. |
| Stores your files? | No. | Yes. |
| Rough cost | A small yearly fee (varies by extension). | Usually more, and recurring (varies by plan). |
On cost, hosting is usually the larger and the more variable of the two. A domain is a modest yearly registration fee; hosting is an ongoing charge that grows with the traffic, storage and features you need. Both vary a lot — see how much a domain costs for ranges — so always check current registrar and host pricing rather than assuming a fixed figure.
How DNS connects the two
The domain and the hosting are joined by DNS, the system that translates your name into the server’s numeric IP address. There are two common ways to make the connection, and you only need one:
- Point the nameservers at your host. Changing the domain’s nameservers to your hosting provider’s nameservers delegates all DNS for the name to the host, which then manages the records for you.
- Edit an A record. Keep DNS at the registrar and set an A record that points the domain to the host’s IP address (typically with a CNAME for the
wwwversion).
Either way, once the change propagates across the internet, typing the domain loads the site stored on the hosting server. Our step-by-step on pointing a domain to hosting covers both methods in detail, and how domain name resolution works explains the lookup behind the scenes.
Same company or different companies?
You can buy the domain and hosting together from one provider, which auto-connects them and is convenient, or keep them separate — domain at a specialist registrar, hosting elsewhere. Separate gives you more freedom to switch either one without disturbing the other. Many people register the name where pricing and management are best, and host wherever suits the project. See how to choose a registrar if you go the separate route.
Each can exist without the other
Because they are separate services, you can have one without the other — and you can change either independently.
A domain with no hosting has nowhere to send visitors, so it typically shows a parked placeholder page; our explainer on domain parking covers exactly that state. This is normal if you have registered a name to hold or develop later. Conversely, hosting with no custom domain is reachable only through a temporary host-provided address — fine for testing, but not the polished address you want long term.
The independence cuts both ways at switching time. You can move your hosting to a faster or cheaper provider and keep the same domain by repointing DNS, with visitors none the wiser. Or you can change registrars while leaving the hosting untouched. Knowing which layer a problem lives in — address or building — is half of fixing it.
A quick way to tell which is broken
If the domain does not resolve at all, the issue is usually the domain/DNS layer — nameservers, an A record, or an expired registration. If the address resolves but the site shows an error or the wrong page, the issue is usually the hosting layer — the server or the files on it. Separating address from building turns a vague “my site is down” into a specific place to look.
★ Key takeaways
- The domain name is your address (registered via a registrar); web hosting is the server that stores your site’s files.
- DNS connects them — via the host’s nameservers or an A record pointing at the host’s IP.
- You can buy them together or separately, and change either one independently.
- A domain can exist without hosting (it parks) and hosting can exist without a custom domain; hosting usually costs more and recurs.
Frequently asked questions
What is the difference between a domain name and web hosting?
A domain name is your website’s address — the thing people type, like example.com — which you register through a registrar. Web hosting is the server space that stores your site’s files and serves them to visitors. The domain points to the hosting via DNS. You need both for a working site: one is the address, the other is the building it points to.
Do I have to buy my domain and hosting from the same company?
No. You can buy them together from one provider for convenience, or keep them separate — registering the domain at one company and hosting the site at another. Keeping them separate gives you more flexibility to switch either one independently. When they are separate, you connect them by updating the domain’s DNS to point at the host.
How does a domain connect to hosting?
Through DNS. Either you change the domain’s nameservers to your host’s nameservers, which delegates all DNS to the host, or you keep DNS at the registrar and point an A record at the host’s IP address. Once that change propagates across the internet, typing the domain loads the site stored on the hosting server.
Can I have a domain without hosting?
Yes. A registered domain with no hosting simply has nowhere to send visitors, so it usually shows a parked placeholder page. Likewise you can have hosting with no custom domain, accessed by a temporary host address. Each is independent: you can register a name to hold for later, or set up hosting before you decide on a name.
Which costs more, a domain or hosting?
Usually hosting. A domain is a relatively small yearly registration fee, while hosting is an ongoing monthly or yearly charge that scales with the resources and features you need. Exact figures vary widely by extension and by hosting plan, so check current registrar and host pricing rather than relying on a fixed number.
Sources & further reading
- ICANN — Internet Corporation for Assigned Names and Numbers (domain registration and the DNS)
- IANA — Root Zone Database (which registry operates each extension)
- Related: tlddomain.us home, how to point a domain to hosting, what is domain parking?, how to register a domain name, domain name vs URL, what is a domain registrar?, how domain name resolution works