Articles · DNS

2026-11-18 11 min EN / FR

Migrating DNS without breaking your email

Changing DNS provider, moving a domain, or switching hosts can silently break email. Messages bounce or land in spam, and you find out days later from a customer. Almost all of this is avoidable with one rule: copy everything before you change anything.

A quick refresher

DNS is the directory that tells the internet where your website and your email live. A few record types matter here:

  • A / AAAA: where your website is
  • CNAME: an alias pointing to another name
  • MX: where incoming email is delivered
  • TXT: free-form records, used for SPF, DKIM, DMARC and domain verification
  • NS: which servers are authoritative for your domain

The key distinction: the registrar is where the domain is registered and renewed. The DNS host is where the records are stored. They can be the same company or different ones. Changing the DNS host means changing the NS records, which is not the same as transferring the domain.

Step 1: Take a full inventory of the current zone

Export the current records, or copy them manually if no export exists. Do not rely on a "scan" feature of a new provider, since it may miss things.

Pay attention to records people forget:

  • MX records and their priorities
  • SPF (a TXT record starting with v=spf1)
  • DKIM records, usually CNAMEs or TXT records on names like selector._domainkey
  • DMARC (a TXT record on _dmarc)
  • Autodiscover / autoconfig records used by mail clients
  • Verification records for Google, Microsoft, and other services
  • Subdomains (shop, support, status, staging, old marketing sites)
  • Records for third-party senders: newsletter tools, invoicing software, CRM, helpdesk
  • SRV records for chat or voice services
  • CAA records limiting who can issue SSL certificates

If nobody can explain a record, do not delete it. Note it, keep it, and investigate later.

Step 2: Lower the TTL in advance

At least two days before the change, reduce the TTL on all important records (5 to 10 minutes is typical). That limits how long some people see the old setup after the switch. Keep in mind that the TTL of NS records is controlled at the registrar or parent zone level and often cannot be shortened. Plan extra time. The same TTL idea applies when you switch hosting.

Step 3: Recreate the zone at the new provider

Add every record before touching nameservers. Then compare the two zones line by line. Typical mistakes:

  • A trailing dot or a missing hostname in a CNAME value
  • TXT records split into multiple strings that get altered
  • DKIM keys truncated when pasted (they are long)
  • A proxied or "orange cloud" setting that was not there before, which can break mail-related records
  • A CNAME on the root of the domain, which is not allowed by DNS rules (some providers offer an "alias" or "flattening" feature as a workaround, with varying behavior)

You can query the new provider's nameservers directly with a DNS lookup tool, to check that the answers match the old ones before the switch.

About to change DNS?

We can rebuild the zone with you, check SPF / DKIM / DMARC, and run the cutover so mail keeps flowing.

Step 4: Check the email authentication trio

These three records decide whether your mail is trusted.

SPF lists the servers allowed to send mail for your domain. Two common errors:

  • More than one SPF record (only one is allowed)
  • Too many lookups: SPF allows at most 10 DNS lookups, and every include: counts. Companies that add one tool after another often exceed this limit, and SPF then fails

DKIM signs outgoing messages. If the DKIM records do not exist at the new DNS host, signed mail starts failing verification.

DMARC tells receivers what to do when SPF or DKIM fails. If you currently have a strict policy and something is broken after migration, mail will be rejected rather than just flagged. Consider setting the policy to monitoring mode during the change, then tightening it again once everything is stable.

Step 5: Watch out for DNSSEC

If DNSSEC is enabled on your domain, there is a signing record (DS) at the registrar. If you change DNS providers without handling it, the domain can stop resolving for many users, which also takes email down.

The safe order is generally:

  1. Remove the DS record at the registrar (or disable DNSSEC) well ahead of the change, and wait for old TTLs to expire.
  2. Migrate the DNS.
  3. Re-enable DNSSEC with the new provider's keys, and add the new DS record.

Check your registrar and new provider documentation for their exact procedure.

Step 6: Switch nameservers

Choose a quiet time, not Friday evening. Update the NS records at the registrar to the new provider's nameservers. Propagation can take from minutes to a couple of days, so both old and new servers must answer correctly throughout. Do not delete the old zone yet.

Step 7: Test email actively

Do not wait for someone to complain. Right after the switch:

  • Send a message to your domain from an external address (Gmail, Outlook, and one other provider)
  • Send a message from your domain to those same addresses
  • Check message headers for SPF, DKIM and DMARC "pass"
  • Send from each system that uses your domain (CRM, shop, invoicing, newsletter, helpdesk)
  • Check the mail logs of your email provider
  • Repeat the next day, and a few days later

Free online tools can check your records and send you a test report.

Step 8: Clean up

  • After a week or two of stable operation, raise TTL to a normal value
  • Remove the old zone from the previous provider
  • Document the final zone, with a note explaining each unusual record
  • Store registrar and DNS access in your team's password manager (see the 30-minute account audit)

Common pitfalls

  • Forgetting an MX record or its priority
  • Missing DKIM for a secondary sender such as a newsletter tool
  • Two SPF records, or one over the lookup limit
  • Forgetting subdomains, which suddenly stop resolving
  • DNSSEC left enabled after the move
  • Deleting the old zone immediately
  • Doing the change right before a busy period
  • Mistaking a registrar transfer for a DNS move, and doing both at once. Do them separately, and with at least a few days between them

Safer alternative: separate things permanently

A lasting improvement is to keep email, website and DNS with separate, well-documented ownership. A hosting change then never touches email, and a registrar change never touches the website. It is slightly more to manage, but it removes the most common source of outages. Put that ownership map in your exit plan.

Checklist

  • Full export of the current zone saved
  • TTL lowered 48 hours ahead
  • New zone built and compared record by record
  • SPF, DKIM and DMARC verified
  • DNSSEC plan decided
  • Test emails sent in both directions
  • Old zone kept for at least a week
  • Final documentation saved

Related

Need a second pair of eyes on the zone?

Send an export of the current records (or screenshots). We will flag what must move with email before you touch NS.