Change DNS records with a simple rollback plan
Save the existing records, change the right DNS service and verify the result before retiring the old setup.
Read the guideWeb hosting · Practical guide
Plan website files, databases, DNS and mailboxes as separate parts of a hosting migration.
Archive placement: September 2025

Moving a website and moving email are separate jobs, even when both currently live in one hosting account. Make a clear decision about which services are moving, prepare and test the new website, and preserve the mail records and mailboxes that still need to work. The goal is a controlled cutover with a usable fallback.
Write down what you are moving before changing DNS. The website and mailboxes may use separate services even though they share a domain name.
Keep this inventory with the migration plan. Do not assume a website file copy includes mail, databases or a third-party email service. Decide explicitly which service stays where.
If email is staying with its current provider, keep the MX records and the hostnames they depend on pointing to that provider. Preserve the SPF, DKIM and DMARC records needed by existing senders. You may need to replace an MX target that indirectly follows the website address before changing the website A record.
If email is moving too, create the mailboxes, aliases and required forwarding rules at the new service first. Agree how old messages, folders and sent mail will be copied using the providers’ supported migration tools. MX only changes where new inbound messages are sent; it does not transfer existing messages or update anyone’s phone settings. Do not delete the old mailboxes during the DNS transition.
Copy files and import the database into the new hosting environment. Adjust configuration for its database details and paths. Preview using an appropriate test hostname or local hosts-file method, and keep the test protected from public indexing and unintended external actions.
Test images, forms, logins and application features before public DNS changes. A database-backed site may need a final synchronised copy during a short maintenance window so new orders or content are not lost between the first copy and cutover.
A browser preview should let you check the destination without sending normal visitors or customer mail there yet.
A complete HTTPS and redirect test under the final hostname still belongs in the cutover checks. Keep the previous website ready for rollback, and agree how the final database and uploads will be synchronised.
If email remains with the same provider, preserve its MX and authentication records while changing the website. If mail is moving, prepare the new destination before changing delivery.
Test sending and receiving with an outside mailbox and check spam folders on both sides. A working website is not a successful mail migration. Reconcile any messages received at the old service during cached DNS delivery before cancelling it.
For an application that accepts orders, posts or uploads, pause those writes briefly on the old site and take the final matched file/database copy. Import it at the destination, verify it, then change only the planned website records. Ensure one instance owns scheduled jobs, payment callbacks and outgoing notifications after the move.
Keep the old environment available for fallback and late traffic, but avoid letting both copies accept independent business data. DNS caches can send visitors to either address during the transition. For mail that is also moving, use the migration tool’s supported follow-up sync to collect messages that reached the old service, and test delivery from outside providers. Record what was copied and when.
Keep the old hosting and mail available for the agreed overlap while cached DNS answers expire. Watch delivery errors, form messages and new application records. Check both the main domain and any www address you use.
Write down the new DNS, hosting and email providers, along with the date and rollback details. Retire the old service after the checks and required data copies are complete. This is especially important if old mail is stored only on the previous provider.
If you must roll the website back after the new site accepted data, first preserve that newer data and decide how it will be reconciled. Reversing an A record alone does not merge two databases. Cancel the old service only after the agreed retention window and final mail/data checks are complete.
No. Website hosting, DNS hosting and domain registration can be managed separately. A registrar transfer has its own rules and should not be added to a website move without a reason.
The new environment may need authenticated SMTP settings, a permitted sender and correct DNS authentication. Test the form independently of mailbox receiving, and inspect its sending error rather than changing MX at random.
A DNS change and a registrar transfer are separate steps. Check the registration and transfer rules for your extension before making either change.