domains
Domain, Hosting, and DNS: How a Website Actually Works
Published 2026-09-09 · 6 min read
If you're setting up your first website, three words come up constantly: domain, hosting, and DNS. It's rarely clear how they differ or why you need all three. They sound interchangeable. They aren't. Each does a completely separate job, and a website only exists when the three are connected.
This is the plain-language overview that ties them together. Once the big picture clicks, the links throughout point you to deeper guides on each piece.
The one-sentence version
Think of putting your website online like opening a shop at a physical location:
- The domain is your street address, the thing people type or write
down to find you (
example.com). - The hosting is the building and the land, the actual space where all your stuff physically sits.
- DNS is the directory, the system that turns your easy-to-remember address into exact directions to that building.
You need the address, you need the building, and you need the directory that connects one to the other. Miss any of the three and nobody reaches your shop.
What a domain name is
A domain name is the human-friendly name people type into a browser, like
example.com. That's all it is: a name you rent, usually a year at a time,
from a domain registrarAn accredited company that sells and manages domain registrations on a registry's behalf..
The most important thing to understand is what a domain is not: it is not
your website, and it doesn't store anything. Owning example.com is like owning
a street address: it's yours to point wherever you like, but on its own it's
just a label. A brand-new domain with nothing behind it shows an empty page or
an error, because there's no building at the address yet.
For how names are actually sold and managed behind the scenes (registries, registrars, and who governs it all), see how domains work.
What web hosting is
Web hosting is the computer that stores your website's files and sends them to visitors. Every page, image, and line of code that makes up your site lives on a server (a computer that's always on and always connected to the internet) run by a hosting provider.
When someone visits your site, their browser asks that server for the files, and the server delivers them. That's the "building": the physical place your website actually occupies. No hosting means there's nothing to show, no matter how good your domain name is.
Hosting comes in different sizes and shapes depending on how much traffic and control you need. If you're just starting out, choosing a shared hosting plan and what cPanel hosting is are good next reads.
What DNS is
Here's the gap: people type names like example.com, but computers find each
other using numeric IP addresses like 203.0.113.10. Something has to
translate between the two. That something is DNS, the Domain Name System.
DNS is the internet's directory. When a visitor types your domain, their device
asks DNS, "What's the address for example.com?" and DNS answers with the IP of
the server your site is hosted on. The browser then goes to that server and loads
the page. All of this happens in a fraction of a second, invisibly.
Two pieces of DNS terminology are worth knowing early:
- Nameservers are the DNS servers that hold the official records for your domain. Pointing your domain's nameservers at your host is the usual way to say "this domain's answers live here."
- DNS records are the individual entries that route different things. An A record points the domain to your website's server, an MX record routes your email, and so on.
You don't need to memorize these. When you're ready, our guide to DNS records explains each type with real examples.
How the three connect
Putting a site online is really just wiring these three together:
- Register the domain. You rent
example.comfrom a registrar. Right now it points nowhere. - Get hosting. You sign up with a hosting provider, who gives you server space and either an IP addressThe numeric address (like 203.0.113.10) that identifies a server on the internet. or a set of nameservers to point at.
- Connect them with DNS. In your domain's settings, you point its nameservers (or A record) at your hosting. This is the step that links the address to the building.
- A visitor arrives. Someone types
example.com. DNS translates it to your host's IP, the browser requests the files from that server, and your page loads.
That's the whole loop: domain → DNS → hosting → your website on screen. For a blow-by-blow of everything the browser does in that final step, see what happens when you type a URL.
One thing that trips up beginners: after you connect or change DNS, it isn't always instant. Answers are cached around the world, so a change can take minutes to a couple of days to show up everywhere, a delay called DNS propagation.
Why they're sold separately
Because each is a distinct service, you can buy them from different companies and mix and match. You might register your domain in one place and host your site somewhere else entirely; DNS is what lets them cooperate regardless of who provides what. Many people do buy a domain and hosting together for convenience, but you're never locked in: you can move your hosting without giving up your domain, or move your domain without rebuilding your site.
Which do I actually need?
For a normal website, you need all three, and they line up like this:
- A domain, so people have a name to type. (Rented from a registrar.)
- Hosting, so there's a server storing and serving your site. (From a hosting provider.)
- DNS, so the name resolves to that server. (Configured in your domain settings; often handled for you when you point nameservers at your host.)
Get those three connected and you have a working website. Everything else (security, speed, email, the specific record types) builds on top of this foundation.
Go deeper
Now that the big picture makes sense, here's where each piece is explained in full:
FAQs
Do I need both a domain and hosting to have a website?+
Yes. The domain is the address people type, and hosting is the computer that actually stores and serves your website's files. A domain with no hosting points to nothing, and hosting with no domain can only be reached by a hard-to-remember IP address. You need both, connected by DNS.
Can I buy my domain and hosting from different companies?+
Yes, and it's common. Your domain and your hosting are separate services. You just log in to your domain provider and point its DNS (usually the nameservers) at your hosting provider, and the two work together even though they're bought from different places.
What's the difference between a domain and a website?+
A domain is only the name, the address, like example.com. The website is the actual pages, images, and files, which live on hosting. Owning a domain doesn't create a website any more than owning a street address builds a house on the lot.
What are nameservers and what do they do?+
Nameservers are the DNS servers that hold the authoritative records for your domain. When you point your domain's nameservers at your hosting provider, you're telling the internet, 'Ask this provider where my domain's website and email live.' Changing nameservers is the usual way to connect a domain to a host.
Why doesn't a new domain or DNS change work instantly?+
DNS answers are cached around the world for a set time, so it can take anywhere from a few minutes to a couple of days for a new domain or a DNS change to be visible everywhere. This delay is called DNS propagation.
Related reading
Reseller Hosting Explained: Should You Resell Hosting Under Your Own Brand?
What reseller hosting actually is, who it makes sense for, and what running a small hosting business on top of it actually involves in Rwanda.
2026-09-13 · 3 min read
Local SEO for Rwandan Businesses: Getting Found on Google in Kigali and Beyond
A practical, no-nonsense guide to ranking locally in Rwanda: Google Business Profile, on-page basics, site speed, and where the real backlinks come from.
2026-09-13 · 3 min read
How to Choose a Domain Name for Your Business
A practical framework for picking a business domain name: length, memorability, keywords, and avoiding trademark trouble before you register.
2026-09-12 · 3 min read