How to Move Web Hosting While Keeping Your Domain and Email

Move a live website to a new host without transferring the domain. Stage the site, change web records carefully, and verify mail and rollback.

FBFenwei BianAuthorNov 24, 2026
  • web-hosting
  • dns
  • site-migration
  • guide

You can move a website to a new host while leaving the domain registered where it is. When your existing DNS provider can point the web records at the new host, you can often leave the nameservers and mail configuration in place as well. Some hosted mail setups share dependencies with the old web host, so check the actual delivery path before assuming mail is independent.

Stage the new host before changing public DNS

Back up the site files, database and configuration. Run the site on the new host, and check representative pages, logins, forms, downloads and static assets. If people can place orders or submit content, decide when writes will pause or how you will replicate them. Test a rollback against that data plan, not only against the old IP address.

If you have an IP address for the new endpoint and it is ready to respond for the production name, try curl --resolve www.example.com:443:192.0.2.44 https://www.example.com/docs/ with your own host and IP. This overrides resolution for that request and keeps the intended hostname in TLS and HTTP. Check a staging URL and your host's recommended preview method when it cannot yet serve the production certificate.

Update the web records and preserve mail

Record the old values for the apex and www first. Copy the new host's exact instructions. For example, a bare domain may use A and AAAA records while www uses a CNAME. Do not leave outdated AAAA records pointing at the old host when you move the IPv4 address. Test both families wherever you advertise both.

Keep existing MX, SPF, DKIM and DMARC records unless the migration changes the services they describe. Inspect the MX target too. If it follows an address you intend to change, preserving the MX record alone will not preserve delivery. If the old web host also answers DNS or mail, plan those services separately before cancelling it. When nameservers must change, prepare and verify the complete replacement zone.

Make rollback a decision with evidence

Reduce the web records' TTL in advance if your provider permits it. Cached answers can still reach the old host, so keep it serving during the overlap. Check both old and new origins, look at logs for traffic and errors, and send inbound and outbound mail through real test accounts. Google's hosting migration guidance also recommends watching traffic to both hosting environments before you terminate the old one.

Define rollback criteria before the switch, such as persistent requests arriving at a wrong service or an application fault that you cannot repair quickly. If the new site accepted writes, reconcile those changes before you return visitors to the old database. Restore only the records you changed and measure the public result again.

Sources and further reading

About the author(s)

Software Developer & Writer • Namefi
FBAuthor

Fenwei Bian is a software developer in her thirties who spends her working hours in pull requests and her weekends with her hands in soil or sawdust. Years of open source on GitHub taught her that names are interfaces: a good one is clear, honest about what it does, and kind to whoever has to use it next.

She gardens because it rewards patience and punishes wishful thinking, and she does woodwork because a joint either fits or it doesn't. Both habits show up in how she writes about naming — measure twice, check the source, and don't sand over a rough spot and hope no one notices.

For Namefi she writes about how domain markets actually move, the practical trade-offs of tokenizing and flipping names, and picking a domain you'll still be glad you own in twenty years.

Related guides

Discuss this post

View the discussion on Namefi Discuss