Domains

How to Change Your Domain's Nameservers Step by Step

Learn how to update your domain's nameservers at any registrar, understand when to do it, and how long DNS propagation takes.

Multi-colored cables intertwined against a dark background, showing technology connections.

To change your domain's nameservers, log in to your registrar's control panel, find the DNS / Nameservers section for your domain, replace the existing values with the new ones, and save. The change propagates globally within 1 to 48 hours.

This is the most common step when switching hosting providers, connecting your domain to a platform like Cloudflare or Shopify, or migrating your website to a new server. Here's everything you need to know to do it right.

What Are Nameservers and Why Do They Matter?

Nameservers are the servers that tell the internet which DNS server holds the authoritative records for your domain. They are the starting point of every DNS lookup.

When someone types your domain into a browser, the system first asks your nameservers: "Who knows about this domain?" The nameservers point to their own DNS zone, which contains your A records, MX records, CNAMEs, and so on.

Controlling your nameservers means controlling all DNS for your domain — which is why updating them is the first move when migrating to a new host.

When Do You Need to Change Nameservers?

  • Switching hosting providers: your new host will give you their nameservers.
  • Enabling Cloudflare: Cloudflare requires you to point your nameservers to theirs so it can filter traffic.
  • Connecting your domain to Shopify, WordPress.com, or similar platforms.
  • Migrating business email to Google Workspace or Microsoft 365 (though in this case you can often just update the MX records without changing nameservers).

If you only need to update a single record — adding a TXT record for Google Search Console verification, for example — you do not need to change nameservers. Just edit that record in your current DNS zone.

Step-by-Step: How to Change Nameservers

Step 1 — Get Your New Nameservers

Your new hosting provider or platform will supply the nameservers when you sign up or in the welcome dashboard. They typically look like this:

ns1.yournewhost.com
ns2.yournewhost.com

Copy them exactly — no extra spaces, no typos. Some providers give you three or four nameservers; use all of them for better redundancy.

Step 2 — Log In to Your Registrar

Access the account where you registered the domain (not your current hosting panel). Common registrars:

  • GoDaddy → My Products → Domains → Manage
  • Namecheap → Domain List → Manage → Nameservers
  • Hostinger → Domains → Manage → DNS / Nameservers
  • Google Domains / Squarespace Domains → DNS → Name servers

Step 3 — Find the Nameservers Section

Depending on the registrar, the section is labeled Nameservers, Name Servers, or DNS. You'll see the current nameservers listed — usually the registrar's own default servers.

Switch the mode to "Custom nameservers" or "Use my own nameservers" instead of the registrar's default.

Step 4 — Replace the Values

Clear out the current nameservers and enter the new ones, one per field. If the form shows only two fields and your provider gave you four nameservers, click "Add nameserver" to reveal extra fields.

Field Example value
Nameserver 1 ns1.yournewhost.com
Nameserver 2 ns2.yournewhost.com

Step 5 — Save and Confirm

Click Save or Update. Some registrars send a confirmation email; check your inbox and confirm if prompted.

The change is recorded immediately at the registrar, but global DNS propagation can take 1 to 48 hours.

DNS Propagation: What to Expect

Propagation isn't instant because DNS servers around the world cache the old values. The speed depends on the TTL (Time To Live) set in your DNS zone before the change.

  • Low TTL (300–600 s): propagation in 1–2 hours.
  • High TTL (86400 s = 24 h): up to 48 hours in the worst case.

During propagation, some visitors will see the new site while others still see the old one — that's normal. Avoid making additional changes during this window so you don't restart the clock.

You can track propagation progress with tools like whatsmydns.net or ask your hosting provider's support team to verify it for you.

Common Mistakes When Changing Nameservers

Typos in the Nameserver Values

A single typo will leave your domain unresolvable. Always copy-paste nameservers directly from your provider's email or dashboard — don't type them manually.

Editing the Wrong Panel

Nameservers are changed at your registrar, not at your current hosting provider. If you bought the domain at GoDaddy but host elsewhere, log in to GoDaddy to make the change.

Losing Email During the Switch

Changing nameservers replaces your entire DNS zone, including MX records. Before the switch, note your current MX, SPF, DKIM, and DMARC records and recreate them in the new DNS zone so email keeps flowing.

Not Waiting Long Enough

If the site doesn't load right away, wait — don't keep re-editing the settings. Propagation can genuinely take up to 48 hours for domains with a high TTL.

Tips for a Smooth Migration

  • Lower the TTL in advance: 24–48 hours before the switch, reduce your TTL to 300 seconds. Propagation will be much faster when you make the real change.
  • Set up the destination first: make sure your new hosting account is ready and the site is live there before pointing the nameservers.
  • Change during off-peak hours: overnight or on weekends to minimize impact.
  • Verify with command-line tools: use dig NS yourdomain.com or nslookup to confirm the new nameservers are responding.

Need help planning a full domain and hosting migration? The team at elenlace.com can guide you through every step.

For more guides on domain configuration, visit our domains section.

Key Takeaways

  • Nameservers control which DNS zone your domain points to; changing them affects all DNS records.
  • Make the change at your registrar — where you bought the domain — not at your hosting provider.
  • Copy the new nameservers exactly from your provider; a single typo breaks the domain.
  • Propagation takes 1–48 hours; lowering TTL beforehand speeds things up significantly.
  • Back up your MX and email authentication records before switching to avoid losing email.
  • Don't make further edits during propagation — let the change settle.

Ready to migrate without the headaches? Contact elenlace.com and we'll help you plan the switch from start to finish.

FAQ

How long does a nameserver change take to work?

Between 1 and 48 hours, depending on the TTL configured in your DNS zone before the change. Use a tool like whatsmydns.net to monitor propagation progress in real time across multiple global locations.

Can I change nameservers without losing my email?

Yes — but you must copy your MX, SPF, DKIM, and DMARC records to the new DNS zone before making the switch. Skipping this step will cause email to stop working until you add those records to the new zone.

How many nameservers should I enter?

At least two (ns1 and ns2) for redundancy. If your provider offers three or four, use all of them — it improves reliability if one server becomes temporarily unavailable.

What happens if I type the nameservers incorrectly?

Your domain will stop resolving for anyone who already received the propagated change — the website and email will go down. Fix the typo in your registrar panel immediately and wait for the corrected change to propagate.

Compare providers

Other providers and guides worth comparing:

← All