Domain, DNS, and Web Hosting: What Each One Does
A guide to what domain names, DNS, and web hosting each do, how they connect, and why keeping them separate gives you options.
Facts that can change should include a source and check date. Benchmark claims should state the plan, region, method, and test period.
When a website loads, three separate systems are working together: a name people can remember, a directory that translates that name into a machine-readable address, and a server that holds the files themselves. Many guides blur them together because a lot of companies sell all three in one package. Understanding where one service ends and the next begins makes it easier to debug problems, compare providers, and keep control of your own site.
What a domain name actually is#
A domain name is the address someone types into a browser, such as example.com. It exists because numerical IP addresses are hard to remember and awkward to print on a business card. Domains are registered through companies accredited by ICANN, the organization that coordinates the internet's naming system, usually for a renewable term of one or more years. Registration gives you the right to use the name and to control where it points; it does not store files or send email by itself. If a registration lapses, the name can return to the open market, which is why renewal dates deserve as much attention as your hosting expiry.
What DNS does behind the scenes#
The Domain Name System is the internet's translation layer. Computers reach each other using numerical addresses, while people use names, and DNS is the distributed address book that maps one to the other. When a visitor types your domain, their resolver asks a chain of nameservers for the matching record, and the answer tells the browser which server to contact. DNS also carries the other directions attached to your name: A and AAAA records point to the server hosting your site, MX records route mail, and CNAME records alias one name to another. Those directions live with whoever operates your authoritative DNS, which can be your registrar, your host, or a third party. Because DNS is separate from both the name and the server, you can change any one of the three without disturbing the others.
What web hosting provides#
Web hosting is the server infrastructure that stores and serves your site. The host keeps your HTML files, images, stylesheets, scripts, and databases on disk, runs the software that executes your code, and answers when a browser requests a page over HTTP or HTTPS. Hosting products vary in how much of a machine you get: shared hosting places many accounts on one server, while virtual private servers, cloud instances, and dedicated machines hand you a larger and more isolated slice. What they all share is the job of storing content and delivering it on request. Nothing about a domain name or a DNS record can substitute for this layer; without a server to answer, the name points at nothing.
An analogy that ties it together#
A common way to picture the three layers is a physical shop. The domain name is the business name and street address customers know. DNS is the directory that resolves that address into exact coordinates so anyone can find it. The hosting server is the building where the shelves and stock are kept. Renaming the business does not move the building, and moving the building does not change the name — you simply update the directory so the coordinates match the new location. Keeping that picture in mind makes most hosting tasks easier to follow, because nearly every configuration job is a question of which layer you are editing.
Why the separation matters in practice#
Because the three services live at different layers, you are free to split them across different providers. You can register the name with one company, manage DNS with a second, and host the site with a third, joining them by pointing your A or CNAME records at the host's address. Bundling everything with one vendor is convenient. Splitting has real advantages, though. If your host has an outage, your domain and DNS remain under your control. If you outgrow a plan, you can move the site and update a record rather than start again. And if a billing dispute ever suspends a hosting account, an independently held domain means you keep the name even if you lose the server.
How the pieces connect when someone visits#
Put together, the sequence looks like this. A visitor types your domain. Their resolver queries DNS and receives the IP address of your hosting server. The browser opens a connection to that address and requests the page. The host executes any code, pulls content from the database, and returns the response. Each step can fail independently, which is why troubleshooting usually starts by asking which layer is misbehaving. A registration problem shows up as a name that no longer resolves at all. A DNS problem shows up as a name pointing at the wrong server. A hosting problem shows up as a server that answers slowly or not at all.
Sources
- ICANN: Beginner's Guide to Domain Names Checked 2026-08-28
- Mozilla Developer Network (MDN): What is a Domain Name? Checked 2026-08-28
- Cloudflare Learning Center: What is DNS? | How DNS Works Checked 2026-08-28