Knowledgebase / Domains and Security
How to Change Domain Nameservers Without Losing Website or Email Access
Change domain nameservers safely by preparing the destination DNS zone first, preserving email records and checking the delegation after the change.
Before you start
You need access to the domain registrar, the current DNS provider and the destination DNS provider. Obtain the exact assigned nameservers from the destination account. A nameserver is a hostname, not a website IP address. The examples in this guide are placeholders; they are not ServersNest service settings.
Changing nameservers moves responsibility for the whole DNS zone. It does not copy your website, transfer domain ownership or create missing mailboxes. If you only want to move a website while retaining your existing DNS provider, changing its A or CNAME record may be enough.
Prepare the new zone
- Record the current delegation. Note the existing nameserver names and save a private export or screenshot of all DNS records. Include subdomains, mail records, verification records, CAA records and application-specific entries.
- Create the destination zone. Add the same domain at the new DNS provider. Recreate the records you still need. Automated scans can miss records, so compare the new zone with your inventory rather than assuming the import is complete.
- Confirm email routing. Preserve the intended MX destinations, SPF, DKIM selectors and DMARC policy. A website hosting change does not mean email should move to the web server.
- Plan DNSSEC. If a DS record exists at the registrar, coordinate the transition with both DNS providers. A stale DS record with new signing keys can cause validation failures. Do not guess replacement DS values.
Update the registrar
Open the domain’s nameserver or DNS delegation controls at its registrar. Replace the complete old set with the complete assigned new set. Do not combine unrelated providers’ nameservers unless both are deliberately configured for a supported multi-provider arrangement. Save and read the registrar’s confirmation.
Cloudflare Registrar domains must continue using Cloudflare’s nameservers under its standard registration arrangement. In that case, edit the required DNS records instead of trying to enter an external hosting provider’s nameservers. Custom nameserver products have separate eligibility and configuration requirements.
Check the result
Use the registrar’s status and a DNS lookup to confirm the new names. On a system with dig installed, replace example.com with your domain:
dig NS example.com +short
dig A example.com +short
dig MX example.com +shortTest the website over HTTPS, at least one subdomain, inbound mail and outbound mail. Different recursive resolvers may temporarily return old information because of caching. Keep the original DNS zone available during the transition and record when the change was saved.
Troubleshooting
If the old nameservers remain visible, compare results from several resolvers and check whether the registrar accepted the change. If the new nameservers appear but the website fails, inspect the destination zone’s records and DNSSEC rather than repeatedly switching delegation. If only email fails, review MX, mail-host address records and mail authentication separately.
The expected result is a consistent delegation to the intended provider with all required services still resolving. Restore the recorded delegation only as part of a deliberate rollback plan; repeated changes make diagnosis harder and do not force caches to refresh.
Frequently asked questions
How long does a nameserver change take?
There is no universal instant switch. Registrar processing and cached delegation or record TTLs affect what each resolver sees. Test the actual results rather than relying on a fixed countdown.
Should I enter an IP address in the nameserver field?
Normally enter the assigned nameserver hostnames. Registering your own child nameservers and glue addresses is a separate registrar task.
Will changing nameservers move my email?
No. Email continues working only if the new zone contains the right records and the intended mail service remains active.
Related guides and hosting options
Compare shared hosting plans against your application requirements. Confirm available tools and management responsibilities for your own account. For account-specific help, open a private support ticket with the domain, time and relevant redacted error.