Tutorial · migration-hosting · Published 2026-08-15 · 3 min read

Moving DNS records when the site moves house

Moving DNS records between hosts and providers: export the zone first, re-create forwards, and check TTL, mail, subdomains, SPF and SPF.

Moving DNS records is three jobs in one

A DNS move hides behind the "host move" headline. When you change hosting or registrars, the DNS zone moves with the domain: the site's A record, the email's MX and SPF, and the subdomains, wildcard and verification records. Copying the site files but forgetting the zone is how a migration produces working pages and dead email.

Step 1: export the whole zone, not the A record

From the current DNS provider (or the domain registrar's panel), export the full zone:

Record typeWhy it matters
A / AAAAThe site IP and www host
CNAMESubdomains, often www or the mail host
MXMail server the domain sends and receives from
TXTSPF, DKIM, DMARC, domain verification (Site verification is a common TXT use)
SRVVoIP, XMPP, configuration for some clients

The lines you could miss: the SPF (which must include the exact mail provider entry), the DKIM selector record (often named after the provider), and the verification records from Search Console and third parties. The DNS record reference lists what each type does.

Step 2: rebuild the zone on the new side

Create the new zone and paste your export in, adjusted for the new host's nameserver addresses if the nameservers themselves change. Adjustments to watch:

RecordWhat to fix in a move
ANew host IP (the whole point)
MXOften stays the same provider, confirm
SPF/TXTA mismatch where a provider changes breaks mail filters
DMARCA copied policy that still references the old SPF domain misreads

Step 3: the mail question

Mail hangs on MX and SPF/DKIM. On the migration day, run a mail-check tool (or send-test through outlook/gmail to a second address) that validates SPF, DKIM and DMARC for the new setup. Breakage shows as "5.5.0" style failures or messages to spam. The fix is the exact SPF line, not retrying.

Step 4: lower TTL and cut over

  1. Set the TTL low once on the current zone (300 seconds for the records that will change) at least 24 hours before.
  2. Update the registrar's nameservers or the DNS provider to the new zone.
  3. Wait for propagation with the local termination caveat: your own resolver caches. Test through a public lookup that bypasses your ISP cache.

Step 5: verify like a post-mortem

The host migration checklist treats the zone as an inventory item so the mail and the site never detach. When the change is only a domain change and not a host change, use the domain-change checklist instead.

Need a website built, fixed, optimised, migrated or replaced?

This technical resource is written by CSMBAC, a small design and development studio. If you would rather hand the problem to a professional, the website service page explains how we build enquiry-ready websites.

Explore website services