A nameserver is a server that holds the DNS records for your domain, the settings that tell the internet where your website and email actually live. When you set a domain's nameservers, you're telling every browser and email client in the world which server to ask for that information.
Nameservers vs DNS Records
These two terms get mixed up often, but they're not the same thing. Nameservers decide where your domain's DNS records are stored and managed. DNS records themselves, like the A record or MX record, are the actual instructions inside that location, pointing to your web server's IP address or your mail server. Changing nameservers moves the whole set of records to a different management system; editing a single DNS record changes just one instruction within the current system.
Why Nameservers Matter
- They determine whether your domain uses your host's DNS or a separate DNS service.
- Every domain needs at least two nameservers, listed for redundancy, so lookups still succeed if one is temporarily unreachable.
- Wrong or outdated nameservers are one of the most common reasons a domain 'isn't working' even though hosting itself is fine.
If your host handles both your domain and hosting, they'll usually assign you nameservers automatically when your account is set up, so you don't need to configure DNS records manually.
Typical Nameserver Format
Nameservers usually look like ns1.example.com and ns2.example.com, sometimes with a third or fourth for larger providers. Your hosting provider supplies the exact addresses to use; you enter these at your domain registrar, not at the hosting account itself.
If you're setting up a new domain or moving to new hosting, see our guide on pointing your domain to a new host for the step-by-step process.