How-To4 min read

How to Change Nameservers Safely

How to change nameservers without breaking your site or email: export your zone first, switch at the registrar, then verify before you relax.

By Matthew Zhao · Editor, Hosted EZ


Learning how to change nameservers safely is mostly learning what to copy down before you touch anything. Nameservers decide which servers answer for your whole domain, so one rushed change can move your website and silently drop your email. This guide walks through the change in an order that keeps both working.

This guide focuses on the checks a small-site owner can make safely. It also points out where a host, registrar, email provider, or developer needs to take over. Read how to choose a web host if you need the broader setup, and our migration guide before changing live infrastructure.

Know which login controls the nameservers

Keep the registrar login, DNS provider login, and hosting login straight. They may be the same company, but they are different jobs. Confusing them is how a small DNS change becomes a long afternoon.

Make a short note with account names, domain names, the exact URL involved, and the last known working time. Do not put passwords or recovery codes in the note. You want enough detail to retrace the work without creating a new security risk.

How to change nameservers without losing records

Record the current value before you edit it. Export the full zone from the old provider and recreate every entry at the new one first; a single missing dot, wrong record type, or forgotten mail entry can direct visitors and mail somewhere else. Our guide to DNS records explains what each type does.

Use a private browser window or a separate device after a change. That removes some of the confusion caused by cookies and cached redirects. If a DNS record is involved, note the TTL and allow the old answer time to expire before assuming the change failed.

Confirm the change with an independent lookup

Make DNS changes one at a time, then confirm them with an independent lookup. A browser is useful, but it can keep an older answer in cache. Nameserver changes also take longer to spread than record edits, and DNS propagation explains why the delay varies.

Test the normal path first, then the part that has the most consequence. For a store, that is checkout. For a form, it is receiving the email. A test should answer one question rather than produce a vague impression.

When to stop and ask for help

Stop when the next action could overwrite data, change production mail, or remove access to the account. Send support the domain, time in UTC, exact error, and the changes you made. Include a screenshot when it shows the error, but do not include private keys, passwords, or full payment information.

ICANN's DNS overview has useful background on the standards behind this topic: ICANN's DNS overview. Use it to understand the terms, then return to the small, reversible next step.

A sensible maintenance habit

Put the final configuration and the result in a short maintenance note. DNS problems repeat because nobody remembers which account owns a record or which entry was changed last time. A dated note turns the next incident into a lookup instead of an investigation.

Keep the change auditable

Use a short before-and-after record. Write the setting you found, its old value, the exact time you changed it, and the result of the test. If the change has a delay, such as a DNS TTL or a cache expiry, write the time you expect the new answer to be visible. This record is useful even when everything works. A few months later, it tells you why a setting has an unusual value.

Do not confuse an account dashboard with evidence from the live site. A dashboard can show that it accepted a record or a deployment. The visitor still needs to receive the page, email, redirect, or certificate you intended. Test from outside the account, and use a second connection if a cached answer could mislead you.

If you hand the task to someone else, give them the record rather than a conclusion. "The site is slow" is hard to investigate. "The delay began after this update, affects this URL, and persists in a private window" gives the next person a useful starting point.

One last check

Before you close the ticket or move to the next task, repeat the action that prompted the change. Use the ordinary path a visitor or colleague would use, not only the account dashboard. If the result is different, note the difference and keep troubleshooting from that point. A quiet confirmation now is much easier than discovering the missed detail during a launch or an outage.

Leave a useful handoff

Save the final test result with the date and account involved. If someone else needs to revisit the work, they should be able to see what changed without reconstructing the whole incident from browser history.

Bottom line

The safe way to change nameservers: export the zone, recreate every record at the new provider, switch at the registrar, and verify with an independent lookup before you cancel anything. Keep evidence, protect your backups, and ask support before a safe step turns into lost email.

Frequently asked questions

Should I change nameservers and hosting at the same time?

No. Change one related setting, test it, and keep the previous value until you know the result is stable.

What information should I give hosting support?

Give the domain, exact URL or service, UTC time, error text, and steps already tried. That is usually enough for support to find the relevant logs.

Should I export my DNS zone before changing nameservers?

Yes. Download or verify a recent backup before edits that affect files, databases, email, DNS, or software versions.

About the author

Matthew Zhao

Matthew has spent his career running production server fleets — tens of thousands of machines' worth. He writes about hosting the way he wishes someone had explained it to him: plainly.

About Hosted EZ →

Get the next guide in your inbox

One email when we publish something worth your time. No spam, unsubscribe whenever.

Keep reading