Definition
A nameserver (also spelled name server) is a dedicated server that manages, stores, and responds to queries regarding Domain Name System (DNS) records. Its primary function is to publish authoritative zone files containing the mappings between human-readable domain names and server IP addresses.
When a visitor types your domain into a browser, the nameserver provides the definitive answer telling the visitor’s computer which web server or mail server handles your traffic.
Authoritative Nameservers vs Recursive Resolvers
To understand DNS architecture, it is essential to distinguish between the two primary classes of nameservers:
- Authoritative Nameservers:
These servers hold the actual, verified zone records for a specific domain name. Web hosting companies, domain registrars, and cloud DNS providers run authoritative nameservers. They only answer queries for domains they have been delegated authority over, returning definitive answers (orNXDOMAINif a record does not exist). - Recursive DNS Resolvers:
These servers (typically operated by local Internet Service Providers, Google Public DNS at8.8.8.8, or Cloudflare at1.1.1.1) do not own domain records. Instead, they act as intermediaries: when a client asks forexample.com, the recursive resolver traverses root servers, TLD servers, and finally queries the authoritative nameserver, caching the result locally to speed up future lookups.
The Concept of Nameserver Delegation
When you register a domain name at a domain registrar, you are required to specify which nameservers have authority over that domain. This process is called nameserver delegation:
- You enter custom nameserver hostnames (such as
ns1.provider.comandns2.provider.com) at your registrar. - The registrar informs the registry operator for your top-level domain (TLD, such as Verisign for
.com). - The TLD registry publishes
NSdelegation records pointing to those nameservers. - From that moment forward, any internet user querying your domain is routed directly to your chosen authoritative nameservers for DNS answers.
Important Distinctions: Nameserver vs Registrar vs Web Server
Confusion often arises because some companies provide all three services under one brand:
- Domain Registrar: Where you purchase and renew domain ownership rights.
- Nameserver: Where the domain’s DNS routing instructions and zone files reside.
- Web Hosting Server: Where your website’s actual HTML files, PHP scripts, WordPress database, and media are hosted.
You can register a domain with one provider, delegate its nameservers to a second DNS provider, and host the actual website files on a Web Hosting Wale server.
To learn how to discover which nameservers currently control a domain, read our practical tutorial on How to Find Domain Nameservers.
Frequently Asked Questions
Is a nameserver the same as a web hosting server?
No. A web hosting server stores your website files, databases, and images. A nameserver only stores the DNS directory that tells browsers which server IP address to connect to.
Why do domains require at least two nameservers?
Redundancy and fault tolerance. Having at least two distinct nameserver hostnames (e.g. primary and secondary) located on separate networks ensures DNS resolution continues uninterrupted if one server experiences downtime.
What happens when I change my domain's nameservers?
Changing nameservers transfers authoritative DNS management to a new provider. All existing DNS records must be recreated at the new provider before delegating nameservers to avoid website or email outages.
Need Technical Assistance?
Web Hosting Wale support is available 24/7. Tickets are typically answered within 10-15 minutes.