Nameserver
Nameservers are the authoritative servers that tell the internet where to find your website and email services. They host your DNS zone and respond to queries about your domain.
§ 1 Definition
Nameservers are specialized servers that form the backbone of the DNS system. They store DNS records for a domain and respond to queries from other DNS servers around the world. When you register a domain, the registrar provides default nameservers. You can change these to point to your hosting provider, CDN (like Cloudflare), or a dedicated DNS service. Every domain must have at least two nameservers for redundancy. The nameserver you choose controls who manages your DNS records, making it a critical decision for your site's availability and security.
§ 2 How Nameservers Work
When someone types your domain into a browser, their DNS resolver asks the root DNS servers where to find the nameservers for your domain's TLD (.com, .org, etc.). The TLD servers respond with your nameserver addresses. The resolver then queries your nameservers for the actual DNS records (A, CNAME, MX, etc.). Your nameservers return the records, and the browser connects to your server. This hierarchical system is why DNS is sometimes called the phonebook of the internet.
§ 3 Nameservers vs Registrars vs DNS Hosting
These roles are distinct but often bundled. The registrar is where you buy the domain. The nameserver is where your DNS records live. The DNS hosting is the service that operates the nameservers. You can buy a domain at GoDaddy (registrar), but point the nameservers to Cloudflare (DNS hosting). Decoupling these gives you flexibility: you keep your domain at one company while managing DNS at another with better features, performance, or security.
§ 4 Changing Nameservers
Changing nameservers is the way to transfer DNS management from one provider to another. You update the nameserver settings at your registrar with the names provided by your new DNS host. Propagation can take 24-48 hours, during which your site may be intermittently available. Plan changes during low-traffic periods and keep your old DNS records intact until propagation completes in case you need to revert.
§ 5 Note
§ 6 In code
```
# Typical nameserver records at a registrar
# (Set in your registrar's domain management panel)
Primary Nameserver: ns1.cloudflare.com
Secondary Nameserver: ns2.cloudflare.com
Tertiary Nameserver: ns3.cloudflare.com
Quaternary Nameserver: ns4.cloudflare.com
```§ 7 Common questions
- Q. Can my domain work without nameservers?
- A. No. Nameservers are mandatory. Without them, no DNS resolver can find your DNS records, and your domain won't resolve to any website or email service.
- Q. What happens if one nameserver goes down?
- A. This is why you have at least two. If one fails, DNS resolvers query the other. As long as at least one is reachable, your domain continues to resolve.
- Nameservers host your DNS records and tell the internet where to find your site.
- You can decouple domain registrar and DNS hosting by changing nameservers.
- Always have at least two nameservers for redundancy.
- Nameserver changes take 24-48 hours to propagate globally.
We configure nameservers as part of every site launch, ensuring DNS points to the right infrastructure for performance and security. Get in touch for domain setup assistance.
Get in touchNameservers are the authoritative servers that tell the internet where to find your website and email services. They host your DNS zone and respond to queries about your domain.
Category: Infrastructure
Author: Atomic Glue Editorial Team
## Definition
Nameservers are specialized servers that form the backbone of the [DNS](/glossary/dns-management-a-record-cname) system. They store DNS records for a domain and respond to queries from other DNS servers around the world. When you register a domain, the registrar provides default nameservers. You can change these to point to your hosting provider, CDN (like Cloudflare), or a dedicated DNS service. Every domain must have at least two nameservers for redundancy. The nameserver you choose controls who manages your DNS records, making it a critical decision for your site's availability and security.
## How Nameservers Work
When someone types your domain into a browser, their DNS resolver asks the root DNS servers where to find the nameservers for your domain's TLD (.com, .org, etc.). The TLD servers respond with your nameserver addresses. The resolver then queries your nameservers for the actual DNS records (A, CNAME, MX, etc.). Your nameservers return the records, and the browser connects to your server. This hierarchical system is why DNS is sometimes called the phonebook of the internet.
## Nameservers vs Registrars vs DNS Hosting
These roles are distinct but often bundled. The **registrar** is where you buy the domain. The **nameserver** is where your DNS records live. The **DNS hosting** is the service that operates the nameservers. You can buy a domain at GoDaddy (registrar), but point the nameservers to Cloudflare (DNS hosting). Decoupling these gives you flexibility: you keep your domain at one company while managing DNS at another with better features, performance, or security.
## Changing Nameservers
Changing nameservers is the way to transfer DNS management from one provider to another. You update the nameserver settings at your registrar with the names provided by your new DNS host. Propagation can take 24-48 hours, during which your site may be intermittently available. Plan changes during low-traffic periods and keep your old DNS records intact until propagation completes in case you need to revert.
## Note
Most providers require exactly two nameservers, but some allow up to four or more. Always keep the default values documented in case you need to revert.
## In code
## Common questions Q: Can my domain work without nameservers? A: No. Nameservers are mandatory. Without them, no DNS resolver can find your DNS records, and your domain won't resolve to any website or email service. Q: What happens if one nameserver goes down? A: This is why you have at least two. If one fails, DNS resolvers query the other. As long as at least one is reachable, your domain continues to resolve.
## Key takeaways
- Nameservers host your DNS records and tell the internet where to find your site.
- You can decouple domain registrar and DNS hosting by changing nameservers.
- Always have at least two nameservers for redundancy.
- Nameserver changes take 24-48 hours to propagate globally.
## Related entries
- [DNS Management (A Record / CNAME)](atomicglue.co/glossary/dns-management-a-record-cname)
- [Domain Registrar](atomicglue.co/glossary/domain-registrar)
- [Cloudflare](atomicglue.co/glossary/cloudflare)
Last updated July 2026. Permalink: atomicglue.co/glossary/nameserver