You bought a domain, you have a server with an IP address somewhere, and yet typing the domain into a browser brings up nothing. Or maybe everything works, but someone tells you to “change your nameservers” and you have no idea what that means or where to do it. Nameservers sit right at the center of that confusion. Once you understand them, a big chunk of the mystery around domains and DNS quietly disappears.
This article walks through what a nameserver actually is, why your domain has to be told which nameservers to use, and how the three pieces — your registrar, your nameservers, and your DNS records — connect into one chain. We’ll keep it conceptual and beginner-friendly, with simple analogies and a couple of diagrams.
The problem nameservers solve
Computers don’t talk to each other using names like example.com. They use IP addresses — numeric labels such as 203.0.113.10. Names are for humans; numbers are for machines. So every time you visit a website, something has to translate the friendly name into the numeric address. That translation system is called DNS (the Domain Name System), and it works a bit like a giant, distributed phone book for the internet.
But here’s the catch: there is no single phone book sitting in one place. The information is spread across many servers around the world. So when your browser asks “what’s the IP for example.com?”, that question has to be routed to the one server that is officially responsible for answering it. That official server is the nameserver.
The one-line definition
A nameserver is a server that holds the DNS records for one or more domains and answers the question “what’s the address for this name?” — authoritatively, meaning its answer is the source of truth.
What lives inside a nameserver
A nameserver doesn’t store the website itself. It doesn’t hold your images, your HTML, or your database. What it holds is a small set of DNS records — short instructions that say where different parts of your domain point. Think of the nameserver as the directory desk, not the building.
Here are the common record types you’ll meet:
| Record | What it does | Example value |
|---|---|---|
| A | Points a name to an IPv4 address | 203.0.113.10 |
| AAAA | Points a name to an IPv6 address | 2001:db8::1 |
| CNAME | Points a name to another name (an alias) | example.com |
| MX | Says which server handles email | mail.example.com |
| TXT | Holds free-form text (verification, email policy) | "v=spf1 ..." |
When someone visits your site, a DNS lookup reaches your authoritative nameserver, reads the matching A record, and gets back the IP address of your web server. The browser then connects to that IP. The nameserver’s job ends the moment it hands over the answer.
Why a domain must “point at” nameservers
When you register a domain, you don’t just own a name floating in space. That name has to be linked to a set of nameservers so the world knows where to ask for its records. This is the part that trips people up, so let’s slow down.
Up at the top of the DNS world sit the servers responsible for each top-level domain — for .com, for .org, for .id, and so on. These TLD servers don’t know your website’s IP. What they know is a single, crucial fact: which nameservers are responsible for your domain. That’s it. They act like a signpost: “For example.com, go ask these nameservers.”
So pointing your domain at nameservers means recording, at the TLD level, the names of the servers that will answer for you. Those names usually look like this:
ns1.host.com
ns2.host.com
You almost always get at least two, for redundancy — if one is down, the other still answers.
Browser
│ "what's the IP for example.com?"
▼
Resolver ──► Root servers ──► ".com" TLD servers
│ │
│ "ask ns1.host.com" ◄───┘
▼
ns1.host.com (the authoritative nameserver)
│
│ "example.com → 203.0.113.10"
▼
Browser connects to 203.0.113.10
The resolver in that diagram is the helper (usually run by your internet provider or a service like a public DNS resolver) that does the legwork of asking around on your browser’s behalf.
The registrar, the nameserver, and your records
Now we can connect the three pieces that confuse almost every beginner. They are different things, often run by different companies, and each has one specific job.
| Piece | What it is | Its one job |
|---|---|---|
| Registrar | The company you bought the domain from | Records, at the TLD level, which nameservers your domain uses |
| Nameserver (DNS host) | The server that answers DNS queries | Stores and serves your DNS records |
| DNS records | The actual instructions (A, MX, TXT…) | Say where each part of your domain points |
Here’s the chain in plain words. You buy example.com from a registrar. In the registrar’s control panel, there’s a setting for nameservers. You enter the nameserver names given to you by your DNS host (which might be the same company, your web host, or a separate DNS provider). The registrar passes those names up to the TLD servers. From that point on, every DNS question about example.com gets routed to your chosen nameservers, and those nameservers read your records to give the answer.
Same company or three companies — both are fine
These roles can all live under one provider, or be split across three. A common setup: buy the domain at one registrar, point its nameservers at a separate DNS host, and host the actual website on a third server. The pieces don’t have to match, as long as the nameserver setting at the registrar is correct.
What actually happens when you “change nameservers”
Changing nameservers means going into your registrar’s dashboard and replacing the current nameserver names with new ones — typically because you’re moving your DNS management to a different provider. When you do this, you’re not editing any records yet; you’re changing who answers for the domain.
The moment that change is saved and propagates, every lookup for your domain starts going to the new nameservers instead of the old ones. That’s powerful, but it has a consequence beginners often miss: the new nameservers must already have your records set up. If you switch to a fresh DNS host that has no A record for your domain, your site can go dark, because the new authority has nothing to hand out.
Set up records first, then switch
Before you change nameservers, make sure the new DNS host already contains the records your domain needs — at minimum the A record for your website and any MX records for email. Otherwise the switch can break your site and mail until you add them.
There’s also timing to understand. DNS answers are cached along the way to make the internet fast, so a nameserver change isn’t instant everywhere. Some visitors hit the old answer for a while and some hit the new one. This in-between period — called propagation — usually settles within hours, occasionally up to a day or two, depending on how long the old records were allowed to be cached.
Nameservers vs DNS records: a clean distinction
It’s easy to mix these two up, so let’s make the line sharp. Nameservers are the who: which servers are in charge of answering. DNS records are the what: the specific answers those servers give. Changing your nameservers swaps the authority. Editing a record changes a single answer while keeping the same authority.
If you want to move your domain’s name to a new IP address, you usually don’t touch nameservers at all — you just edit the A record on whatever DNS host already serves your domain. You only change nameservers when you want a different provider to be in charge of all your records.
Change a record → edit one answer (e.g. point A at a new IP)
Change nameservers → change who answers for the whole domain
A quick mental model to keep
If you remember nothing else, hold on to this: a domain name is just a label until the TLD servers know which nameservers speak for it. The registrar writes down that pointer. The nameservers hold the records. The records say where everything actually lives. Each layer hands off to the next, and DNS is simply that chain working from top to bottom.
Recap
- Nameservers are the authoritative servers that hold a domain’s DNS records and answer “what’s the IP for this name?”.
- They store records (A, AAAA, CNAME, MX, TXT…), not the website’s files.
- Your domain must point at a set of nameservers; the registrar records that pointer up at the TLD level.
- Registrar, nameserver/DNS host, and DNS records are three distinct roles that can live in one company or three.
- Changing nameservers changes who answers; editing a record changes what the answer is — and DNS caching means changes take time to spread.
From here, a natural next step is to look more closely at individual record types — what an A record, a CNAME, and an MX record each control — and at how DNS caching and TTL values decide how fast your changes reach the world. Those topics build directly on the chain you just learned.