How to Change Nameservers (NS)
Last updated: 23 September 2026
A nameserver (NS) determines where a domain's DNS records are held. You change the nameservers to connect your domain to a new host or server, or to move to a DNS service such as Cloudflare. This is done in the panel of the company the domain is registered with — not in the hosting panel.
When do you change nameservers?
- You bought new hosting/a new server and are connecting the domain to it
- You are moving DNS management to Cloudflare or another DNS provider
- You transferred the domain to another company and will use the new company's DNS
Changing nameservers step by step
1. Get the new nameserver addresses
The provider you are connecting the domain to gives you 2 (sometimes 3–4) nameserver addresses. Example:
ns1.arcnar.com
ns2.arcnar.com
You find this in your hosting/server provider's welcome email or panel.
2. Create your records at the new DNS first
The moment you change the nameservers, your old DNS zone stops being used. To avoid site and email downtime, recreate the following records identically in the new provider's DNS panel before you switch:
- A / AAAA — your site's IP address (root and www)
- MX — your email server
- TXT — SPF, DKIM, DMARC and any verification records
- CNAME — subdomains
To see your current records, check your old DNS panel or use a "DNS lookup" tool. Details: DNS Records Guide.
3. Change the nameservers at the registrar
Log into the panel of the company the domain is registered with → select your domain → the "Nameservers" / "DNS Settings" section. Choose "Use custom nameservers", enter the new addresses, and save.
4. Wait for propagation
The nameserver change propagates through the extension's registry database. This usually takes a few hours, at most 24–48 hours. During this time some visitors may see the old server and some the new — which is why matching the records in step 2 matters.
Verifying the change
You can check from the command line:
# Linux / macOS
dig NS yoursite.com +short
# Windows
nslookup -type=ns yoursite.com
If the new nameserver addresses appear, the change has propagated. Tools like whatsmydns.net let you watch propagation worldwide.
Common problems
- Site won't load: no A record at the new DNS, or the wrong IP. Check the A record in the new panel.
- Email not arriving: the MX record was forgotten at the new DNS. Add your email provider's MX values.
- "Nameserver not accepted": for some extensions (especially .tr) the nameserver must first be defined in the registry with a "glue record". Ask your provider.
- Change has taken over 48 hours: the domain may have expired or be in "clientHold" status. Check the domain status in WHOIS.