ZeroToWP

Nameserver

Quick Definition

A nameserver is a specialized DNS server that stores your domain's DNS records and answers queries about where your website and email should be directed. When you connect a domain to hosting, you point your nameservers to your host.

Cloudflare explanation of how DNS and nameservers work to translate domain names into IP addresses

What Is a Nameserver?

A nameserver is a server in the Domain Name System (DNS) that stores your domain's DNS records and responds to queries about them. When someone types your domain name into their browser, the nameserver is what actually answers the question: "Where is this website hosted?"

Think of nameservers as the phone book of the internet. Your domain name is the contact name, and the nameserver looks up the matching phone number (IP address) so your browser knows which server to call. Every domain has at least two nameservers for redundancy — if one goes down, the other keeps answering queries.

Nameservers typically look like this:

  • ns1.hostingprovider.com
  • ns2.hostingprovider.com

When you sign up for web hosting, your host gives you their nameserver addresses. You then go to your domain registrar and update your domain to point to those nameservers. This is how you connect your domain to your hosting account.

How the Nameserver Lookup Process Works

When a visitor types yourdomain.com into their browser, here is what happens behind the scenes:

  1. Root nameserver — The browser first contacts a root server, which acts like a librarian index. It does not know your specific domain, but it knows where to find .com, .org, .net, etc.
  2. TLD nameserver — The root server directs the query to the Top-Level Domain server for .com, which knows which nameservers are authoritative for your domain.
  3. Authoritative nameserver — This is your nameserver (the one your hosting provider gave you). It holds the actual DNS records — A records, MX records, CNAME records — and returns the IP address of your web server.
  4. Connection — The browser connects to that IP address and loads your WordPress site.

This entire chain happens in milliseconds. The results are cached (stored temporarily) so repeat visitors get even faster responses.

When You Need to Change Nameservers

You will change nameservers in a few common situations:

  • Connecting a domain to new hosting — Your host provides nameservers like ns1.bluehost.com and ns2.bluehost.com. You update these at your registrar.
  • Switching hosting providers — Point your nameservers to the new host's servers.
  • Using Cloudflare — Cloudflare acts as a CDN and DNS proxy. You change your nameservers to Cloudflare's (like ivy.ns.cloudflare.com) so all traffic routes through their network first.

Important: nameserver changes can take up to 24–72 hours to propagate worldwide. During this time, some visitors may see the old site and some the new one. This is normal and called DNS propagation.

Why It Matters

Nameservers are the bridge between your domain name and your hosting. If they are pointed to the wrong place, your website will not load — even if your hosting and WordPress installation are perfectly fine. Understanding nameservers means you can confidently set up a new site, switch hosts, or troubleshoot "site not loading" issues that often come down to incorrect nameserver configuration.

Related Terms

Related Articles