Domain Nameservers Explained: What They Are and How to Change Them
Domain nameservers are the servers that hold your domain's DNS records and answer when the internet asks where your website and email live. You set them at your registrar, and they usually look like ns1.yourhost.com and ns2.yourhost.com. Changing nameservers moves the whole job of DNS management from one company to another, for example from your registrar to Cloudflare, so all your records are edited in the new place. It is a bigger switch than editing a single record: it can take up to 48 hours to fully propagate, and if the new nameservers do not already have your records set up, your site and email go dark during the change. This guide explains what nameservers are, how they differ from DNS, and how to change them safely.
Own the name, manage it anywhere you like
Browse premium domains with published prices and escrow-backed checkout.
What are nameservers?
Nameservers are the authoritative servers that store your domain's DNS records and reply when other computers ask how to reach your domain. When you register a name, the registrar sets a pair of nameservers, and those servers hold the zone file with your A record, MX records, and everything else. Anyone trying to load your site or send you email is ultimately routed to your nameservers to get the answer. You almost always have at least two, so that if one is unreachable the other still responds and your domain keeps working.
What is the difference between nameservers and DNS?
DNS is the entire system that turns domain names into addresses, and nameservers are the specific servers within that system that hold your domain's records. Put simply, DNS is the phone network and your nameservers are the particular directory that lists your number. Changing a nameserver changes which company hosts your records; changing a DNS record changes the data inside those records. That distinction decides which fix you reach for: to swap your DNS provider, you change nameservers, but to update where your website or email points, you edit a record and leave the nameservers alone.
| Change a nameserver | Change a DNS record | |
|---|---|---|
| What it does | Moves DNS hosting to a new provider | Updates one setting in the current zone |
| Where you do it | At your registrar | In your DNS provider's dashboard |
| How long it takes | Up to 48 hours (often 2 to 6) | Minutes to an hour, set by the TTL |
| Risk if done wrong | Site and email go down until records exist | One service affected until corrected |
| Use it when | Moving to Cloudflare, a host's DNS, etc. | Pointing to a new server, adding email |
What do nameservers look like?
Nameservers are just hostnames, usually supplied in pairs by whoever manages your DNS. Your registrar's defaults might be ns1.registrar.com and ns2.registrar.com. If you move DNS to Cloudflare, you get a personalized pair such as alice.ns.cloudflare.com and bob.ns.cloudflare.com. A managed host might give you ns1.hostname.com through ns4.hostname.com. The exact names do not matter; what matters is that whichever set you point the domain at is the set that holds your records, so those two things must stay in sync.
How do I change nameservers?
You change nameservers at your registrar, in the settings for that specific domain. The single most important rule is to set up your records on the new provider before you switch, because the new nameservers do not inherit anything from the old ones.
- Set up the zone on the new provider first. Add your DNS provider, then recreate every record you currently use: the A record, www CNAME, all MX records, and any TXT records for verification and email security.
- Copy your existing records exactly. Export them from your current provider so nothing is missed. A single dropped MX record takes your email offline.
- Open the domain at your registrar and find the nameserver settings, sometimes labeled "custom nameservers" or "DNS management".
- Replace the nameservers with the new pair and save. The registrar tells the TLD registry, which updates its delegation.
- Wait and verify. Propagation usually finishes in 2 to 6 hours but can take up to 48. Confirm the site loads and, because a bad switch can silently drop a service, keep an eye on it rather than checking once. A basic monitor that pings your site every minute tells you the moment something stops responding.
How long does a nameserver change take?
A nameserver change usually propagates in 2 to 6 hours but can take up to 48 hours in the worst cases. It is slower than a plain DNS record edit because the change has to travel up to the TLD registry and out to recursive resolvers worldwide, and different internet providers refresh their caches on their own schedules. During that window some visitors see the new nameservers and some still see the old ones, which is exactly why the new provider must already hold a complete copy of your records. Once propagation finishes, everyone resolves to the new setup.
Should I use my registrar's nameservers or change them?
For most people the registrar's default nameservers are perfectly fine, and you never need to touch them. You would change nameservers when you want a specific DNS provider's features: Cloudflare for its free CDN, security, and fast DNS, or a web host that asks you to use its nameservers so it can manage records for you automatically. If you are happy editing individual records at your registrar, there is no reason to move. Changing nameservers is a tool for consolidating DNS management in one place, not something every domain owner has to do.
Will changing nameservers affect my email or website?
It can, and that is the whole risk. Because the new nameservers replace the old ones entirely, any record you forget to recreate simply stops working: miss the MX records and email dies, miss the A record and the site goes down. Done correctly, with every record copied over in advance, the switch is seamless and visitors notice nothing. The safe habit is to treat a nameserver change as a migration, not a quick edit: build the complete zone on the new provider, switch, then confirm both website and email still work before you consider it done.
Do I need to change nameservers to point my domain to a website?
No, and this is a common mix-up. To make your domain load a website, you usually just edit the A record (or a CNAME for a hosted platform), which is a small change inside your existing nameservers. You only change nameservers when you want a different company to manage DNS entirely. If your goal is simply to get the site live, the faster and lower-risk path is in our guide on how to point a domain to a website, and the individual settings are covered in our guide to DNS records.
The bottom line on domain nameservers
Nameservers are the servers that hold your domain's records and answer for it, and changing them moves DNS management wholesale to a new provider. Treat that change with respect: recreate every record on the new provider first, switch at your registrar, allow up to 48 hours, and confirm your site and email survive. If all you want is to point the domain at a site or set up email, leave the nameservers alone and edit a record instead. And if you are still looking for the right name to build on, browse our brandable names for sale or read how much a domain name costs.
Looking for a premium domain?
Browse 470+ hand-picked, brandable domain names. Buy instantly or lease to own, with every payment secured by Escrow.com.
Browse Premium Domains