Advanced
Lesson 7 of 14 · ~6 min

Mail-vs-web migration independence

Web and mail records are different categories pointing at different hosts. Treating a migration of one as a migration of both is the common cause of "we changed something and the other broke" tickets.

The single most common we changed something and the other one broke ticket comes from a tech treating mail and web as one migration when they should be two.

Web records (A, AAAA, CNAME, www) and mail records (MX, SPF, DKIM, DMARC) are different categories, often pointing at different hosts, often migrating at different times. Knowing they’re independent prevents the reflex to update all the DNS during the cutover.

The shape of the independence

LayerRecordsTypical destination
WebA, AAAA at apex and www; CNAME for wwwShared hosting, VPS, managed app host, CDN
MailMX, plus SPF, DKIM, DMARC TXTsM365, Google Workspace, separate mail provider

The web host has nothing to do with mail; the mail host has nothing to do with the web. They share only the domain name. A migration of one doesn’t require touching the other.

The two canonical scenarios

Website moves; mail stays. A and AAAA (and possibly www CNAME) change to point at the new web host. MX, SPF, DKIM, DMARC stay because the mail provider isn’t changing.

What can go wrong: the tech moves all the DNS to the new web host’s nameservers, accidentally moving MX records to point at the new web host (which doesn’t run a mail server). Inbound mail bounces.

Mail moves; website stays. MX changes to the new mail provider’s value; SPF gets the new provider’s include; DKIM gets the new CNAMEs or TXTs; DMARC may need adding. A, AAAA, the www CNAME stay because the web host isn’t changing.

What can go wrong: the tech treats this as a domain transfer and changes the A record to the new mail provider’s address. The website goes offline.

What this is NOT

  • “Web and mail share DNS, so they’re one thing.” They share a DNS host; the records are independent. You can edit MX without touching A.
  • “Migrating the website means migrating the email too.” Only if the website’s host also runs the client’s mail (rare for small businesses).
  • “The new host’s DNS instructions cover everything.” They cover what the new host needs. They don’t tell you not to break what’s currently working elsewhere.

What to do with this

When a migration request arrives:

  1. Identify which layer is moving (web only? mail only? both?).
  2. List the records that will change. Stop. Anything not on the list isn’t touched.
  3. Confirm with the client: I’ll be updating A and AAAA to point at the new web host. MX, SPF, DKIM, and DMARC stay at M365. Is that right?
  4. Run the change. Verify by checking both what should have changed (website resolves to new IP) and what shouldn’t have (mail still flows through M365).

Decision walkthrough

Which records do you touch?
A client emails: 'we're moving our website to a new web host next week. The new host gave us their IP and said to point the domain at them. Please make the change.' The current zone has A and AAAA at the apex/www, MX at M365, SPF including spf.protection.outlook.com, DKIM CNAMEs for M365, DMARC.
Web host migration. Which records change?
Next lesson