What Are Nameservers and How to Change Them

Nameservers tell the internet which DNS service is responsible for a domain’s records. Those records help direct visitors to a website and route email to the right provider. If you are changing hosts or moving DNS management, understanding nameservers can help you avoid interrupting your site, email, or verification services.
A nameserver change is not a domain transfer. It changes where DNS is managed, while a registrar transfer moves the domain registration to a different company. For the wider picture, see our guide to what a domain name is, and read about what DNS is and how its records work.
What are nameservers?
Nameservers are servers that publish or answer questions about DNS records for a domain. A domain’s registrar stores the delegation information that points to the authoritative nameservers. Those authoritative servers host the DNS zone: the set of records that can tell other systems where to find the website, email service, and other online tools.
For example, when someone visits example.com, a DNS resolver needs to find the authoritative nameservers for the domain and request the relevant record. The record may direct a browser to the website host. The same zone can contain MX records for email and TXT records used for verification or email authentication. ICANN’s overview of the domain-name industry describes how registration, DNS hosting, and web hosting are distinct services, even when a provider bundles them.
Nameservers, DNS records, registrar, and web host
These terms are related, but each describes a different part of domain management:
- Registrar: the company where the domain registration is managed. Its domain settings usually let you change the nameserver delegation.
- Nameservers: the hostnames of DNS servers that are authoritative for the domain.
- DNS provider: the service that hosts and maintains the domain’s DNS zone and records.
- DNS records: individual instructions, such as A or AAAA records for a website, MX records for email, and TXT records for verification.
- Web host: the provider or platform that stores or runs the website.
Changing nameservers can move DNS management from one provider to another, but it does not automatically move website files. It also does not transfer the registration. Your registrar can stay the same while you point the domain at a different DNS provider. If the site itself is moving, you may need both a hosting migration and a planned DNS change. Our guide to domain registrar vs. web host explains those service roles, and this existing guide shows one example of connecting a domain to Hostinger.
When might you change nameservers?
You might change nameservers when a new DNS provider asks you to use its servers, when a website platform manages DNS for you, or when you want to consolidate DNS controls in another account. You might also keep the current nameservers and change only selected records. For example, if your goal is to point a website to a new host while leaving DNS and email where they are, changing an A or CNAME record may be enough. Follow the exact setup instructions from the service you are connecting.
Changing nameservers is a broader switch: the new authoritative provider becomes responsible for the domain’s DNS answers. If its zone is missing records, services can fail even though the registrar and domain registration are active. Cloudflare’s primary-zone setup guide recommends reviewing the DNS records before activating its nameservers because incomplete records can cause errors such as NXDOMAIN. The specific steps vary by provider.
Before changing nameservers: a safety checklist
Prepare the new DNS zone before editing the registrar. This gives the new provider the records it needs to answer queries after the delegation changes.
- Confirm where the domain is registered. Sign in to the registrar account that controls the domain’s nameserver setting. The registrar may be different from the current DNS provider.
- Record the current nameservers and DNS zone. Export or copy the existing records, including their type, host/name, value, priority, and TTL where shown. Save a copy so you can check what changed.
- Collect every service’s required records. Include website records, MX and email-authentication records, subdomains, verification TXT records, and any records used by other services.
- Enter the records at the new DNS provider. Use the exact values the provider or service gives you. Check for missing entries, typos, duplicate records, and records that should not be copied.
- Review DNSSEC instructions. DNSSEC settings and DS records can affect whether a domain resolves after a change. Check the migration guidance from both providers rather than applying one provider’s sequence to every setup.
How to change nameservers
1. Get the exact nameserver hostnames
Open the new DNS provider’s setup page and copy the nameserver hostnames it assigns to your domain. Do not substitute values from a general tutorial or another account. Nameserver names are provider-specific, and even a small typing error can prevent the delegation from working.
2. Check the new zone and related services
Before switching, compare the new zone with your saved records. Confirm that the website points to the correct host and that email, verification, and other services have the records they require. If another provider manages your email, make sure its MX and authentication records are represented in the new zone. A working website does not prove that email is configured correctly.
3. Replace the nameservers at the registrar
In the registrar’s control panel, open the domain’s nameserver or DNS delegation settings. Select the option for custom nameservers if required, replace the old entries with the exact hostnames supplied by the new provider, and save. The labels and page layout differ between registrars. Do not change unrelated registration or DNSSEC settings unless the provider’s documented migration steps require it.
4. Verify the change and test services
Check the registrar account to confirm the saved nameservers. Then use the new DNS provider’s status checks and test the website, email sending and receiving, and any service that relies on the domain. DNS answers may differ temporarily while caches refresh. Some setup processes describe a window of up to 24 hours, but that is not a universal guarantee; actual visibility depends on records, previous TTLs, and resolver caches. Cloudflare’s instructions, for example, recommend allowing time for the delegation change and then checking the zone status.
Common problems after a nameserver change
If the domain returns NXDOMAIN or the site stops loading, check that the nameserver hostnames were copied correctly and that the new DNS zone contains the website records. If the site loads but email does not, review MX and email-authentication records. If only one subdomain fails, confirm that its record was carried over. For an apparently inconsistent result, compare the authoritative zone with cached answers before making more edits.
Keep your old DNS information until the new provider is responding correctly and all services have been tested. If you need to roll back, return to the registrar and restore the prior nameservers, but remember that caches may also take time to reflect that change. Contact the affected provider if the domain remains unresolved or DNSSEC validation reports an error.
Frequently asked questions
Are nameservers the same as DNS records?
No. Nameservers are the servers that provide authoritative DNS answers. Records are the individual entries in the DNS zone, such as A records for a website or MX records for email.
Does changing nameservers transfer my domain?
No. A nameserver update changes where DNS is managed. A registrar transfer moves the registration to another registrar. If you intend to transfer the domain, see our guide on how to transfer a domain.
Will changing nameservers move my website?
No. It changes which DNS provider answers for the domain. Website files and databases must be moved or set up separately, and the new zone must point to the intended website service.
Can changing nameservers affect email?
Yes. Email depends on DNS records, including MX and often TXT records. Recreate the email provider’s required records in the new zone before changing the delegation, then test mail after the switch.
How long does a nameserver change take?
It varies. Resolvers can cache DNS information, so some users may see updated answers before others. Follow the provider’s status checks and do not rely on a fixed completion time.
Can I change one DNS record instead of all nameservers?
Often, yes. If you only need to direct a website to another host and want to keep the current DNS provider, you may be able to update the relevant A or CNAME record. Confirm the setup instructions and do not remove records used by email or other services.
Conclusion
Nameservers identify the authoritative DNS provider for a domain, while DNS records provide the detailed directions for websites, email, and other services. Before changing nameservers, save the current zone, recreate required records at the new provider, review DNSSEC guidance, and use the exact hostnames supplied for your domain. After saving the change at the registrar, verify the website and related services and allow caches to update. Changing nameservers is separate from transferring a domain or moving a website.



