Cyberkern
Domains & infrastructure

DNS migration checklist for websites and email

Changing nameservers? Compare web and mail records before the switch. Use the CSV worksheet and a worked example to test the website and email separately.

Editorial: CyberkernSources checked: Published: Updated:

Are you moving the website or changing DNS providers?

If only the website moves, identify the hostnames that should point to the new web server. Check whether the mail provider uses any of those same names. A domain can keep the same MX record and still lose incoming mail if that record points to a hostname you have just redirected.

If you are changing authoritative nameservers, prepare the new DNS zone before switching at the registrar. Compare it with the old zone for web addresses, mail destinations and sender authentication. If DNSSEC is enabled, agree with both providers how to maintain or safely transition the chain of trust.

Give each part of the move an owner. The web owner checks the new site, and the mailbox owner confirms an external message arrived and can send a reply. Record the results separately so a working homepage cannot accidentally sign off an untested mailbox. [1] [5] [7]

The website works. Where is the email?

A correct web destination does not make the mail route correct. Follow the two paths through an illustrative migration.

firma.exampleA / AAAAMXPrevious web hostNew web hostSending mail serverActive mail hostRetired mail hostMX lookupSMTP connection
firma.exampleA / AAAAMXPrevious web hostNew web hostMX lookupSending mail serverActive mail hostRetired mail hostSMTP connection

One domain. Two separate routes.

A/AAAA identify the web destination. A sending mail server looks up MX, then connects to that mail host using SMTP.

The website moves. Mail stays.

A new web destination does not change the mail route. The existing mail provider can remain in place.

The website works. Mail does not arrive.

MX points to a retired host in this example. The website is reachable, but the illustrated mail delivery fails at the wrong destination.

Correct destination. Receipt still unverified.

MX has been corrected. Caches and queues may retain earlier state; successful delivery has not been established.

Verify the DNS answer and receipt separately.

Check the effective answer, then confirm a real test message at its destination. The tick here represents only that schematic test.

Read the sequence and its limits
  1. Separate web and mail

    Web DNS records and MX records identify different destinations. To deliver incoming mail, an external sending server looks up the MX, then opens an SMTP connection to the resulting mail host. DNS does not carry the message.

    Web DNS
    Previous web destination
    MX / SMTP
    Correct MX target
  2. Move the website only

    The web destination changes to the new host. The existing mail provider stays in place, so its correct MX record is retained. Changing web hosts does not automatically mean changing mail providers.

    Web DNS
    New web destination
    MX / SMTP
    Mail destination retained
  3. Spot the DNS migration error

    In the second situation, DNS administration also changes. The web destination is correct, but the example MX points to a mail host that no longer operates. A browser loads the website; the illustrated mail transfer fails at the wrong destination.

    Web DNS
    Website reachable
    MX / SMTP
    MX points to wrong host
  4. Match MX to the provider's instructions

    Compare the MX record with the mail provider's documented settings and correct the wrong value. Web records, SPF, DKIM and DMARC have different jobs; they cannot replace the correct destination for incoming mail.

    Web DNS
    Web destination unchanged
    MX / SMTP
    MX corrected
  5. Check the answer, then test delivery

    Check the effective DNS answer, then run a separate receiving test. Resolver caches and their TTLs, as well as queues or retries at the sender, can delay the effect. Record observed delivery rather than relying on a universal waiting period.

    Web DNS
    Check website separately
    MX / SMTP
    Test receiving separately

Website reachable, wrong MX target

firma.exampleA / AAAAMXPrevious web hostNew web hostSending mail serverActive mail hostRetired mail hostMX lookupSMTP connection
firma.exampleA / AAAAMXPrevious web hostNew web hostMX lookupSending mail serverActive mail hostRetired mail hostSMTP connection

Website reachable · MX points to wrong host

MX corrected, answer and delivery still to check

firma.exampleA / AAAAMXPrevious web hostNew web hostSending mail serverActive mail hostRetired mail hostMX lookupSMTP connection
firma.exampleA / AAAAMXPrevious web hostNew web hostMX lookupSending mail serverActive mail hostRetired mail hostSMTP connection

Check website separately · Test receiving separately

Loading the website is only one check

Record the web destination, effective MX answer and receiving-test result separately. The existing CSV worksheet helps hand over expected settings and responsibility. This illustration does not claim to have tested your domain.

A schematic explanation using a reserved example domain, not a customer case or test result. DNS supplies destinations; mail servers then transfer messages using SMTP. [6] [7]

Preserve mail and other dependencies explicitly

Reconcile any automatic DNS import with the existing inventory. Cloudflare advises reviewing records for the services in use and confirming mail values with the relevant provider.

Save the old zone before changing it and assign unexplained records to someone for investigation. A new agency should not have to guess whether an opaque TXT value is still required. Ask the responsible person for an evidenced decision. “Unknown” is not sufficient justification for deleting a record. [1]

Swipe or scroll sideways to read the table.

A compact DNS handover organised by purpose
Record or areaQuestion before the moveAcceptance check
Website A, AAAA and CNAMEWhich names should point to the new website?Check the main address, www and agreed subdomains.
MX and mail target namesWill the existing mail provider remain?Confirm receiving and sending with authorised tests.
SPF, DKIM and DMARCWhich active sending services require these values?Review domain authentication for each sending route.
Service and verification valuesWhich service and account owns each value?Retain, replace or remove with a documented reason.
DNSSEC and delegationAre nameservers or signing keys changing?Check resolution and the chain of trust separately.

A short TTL is not a migration plan

TTL describes how long a DNS answer may be cached. Lowering it later does not retrospectively clear answers that have already been stored.

Planning example, not a universal waiting period: a record previously uses 3,600 seconds and will use 300 seconds. Lowering it at the instant of cutover has not removed the previous hour of possible caching. Schedule the reduction in advance and keep the old service available for an agreed overlap. Other cache layers, nameserver delegation and DNSSEC can have their own timing considerations. Record the actual values instead of assuming one waiting period applies to everything. [2]

Do not leave old subdomains pointing at released services

A DNS reference to a retired resource that someone else can claim may enable subdomain takeover. A target that fails to resolve is not, by itself, proof that takeover is possible.

For each retiring service, record the name, target, previous account, owner and decommissioning decision. Change or remove the reference in a controlled way, account for remaining cache lifetimes, then release the old resource. Check links in applications and documents afterwards. Take care not to disable a replacement service that legitimately uses the same name. [3]

Include DNSSEC in the change plan

When nameservers change, the parent zone’s DS record must remain consistent with the DNSSEC keys. An outdated chain of trust can cause validating resolvers to return SERVFAIL.

Ask the DNS owner to plan the specific migration. Some providers support coordinated moves with signing active. Otherwise, time any disabling and re-enabling as part of the same change. Leaving DNSSEC permanently disabled is not a satisfactory completion step. If only the website host changes, with no DNS operator or signing-key change, first establish whether the chain of trust needs changing at all. [4] [5]

Close the migration after acceptance

A screenshot of the new homepage is only one part of acceptance. Agree a review time, an owner and a rollback route. The record should say what was checked and what remains unresolved. An email test that has not been carried out must remain open.

  • Compare the DNS inventory before and after the change.
  • Open the website, www, redirects and agreed subdomains.
  • Document authorised mail tests and sender authentication.
  • Check DNSSEC and delegation where affected.
  • Remove old references, then release unused resources in a controlled sequence.
  • Revoke unnecessary agency access and API keys.
  • Record the new owners and a follow-up review date.

DNS migration handover worksheet

Keep a shared record of the migration. The CSV worksheet covers the website, email, verification records and DNSSEC. Add a separate row for every DNS record actually in use. The worksheet contains no test results and does not run queries or change settings.

Take current and planned values from the relevant provider accounts. Record approval, the expected result and the evidence actually obtained. A test that has not been carried out remains open; a short TTL or a working homepage does not replace acceptance of the whole change.

Keep the completed file in your own protected storage. Do not enter passwords, API keys or other credentials. Infrastructure details should not be submitted through the public contact form. [1] [2] [3] [5]

Swipe or scroll sideways to read the table.

Record what changed and how it was checked
AreaRecord before the changeEvidence after the change
Website and wwwNames, old and planned targets, responsible ownersAvailability and agreed redirects
EmailMX and SPF, DKIM and DMARC for each sending routeAuthorised receiving and sending tests; sender authentication
Other servicesPurpose and responsible account for each verification recordConfirmed decision to retain, change or remove
DNSSEC and retired servicesDelegation, affected keys, retirement and rollback planConsistent resolution; controlled cleanup of old references

Download the DNS handover worksheet (CSV)

Email stopped arriving after a nameserver change?

First establish whether receiving, sending or only one sending service is affected. Record the time and exact error. Compare the new authoritative DNS zone with the saved inventory and your mail provider’s requirements.

Avoid changing several protections on suspicion. Delivery problems are not a reason to disable DMARC broadly or delete unexplained records. Record the cause, targeted correction and observed outcome separately.

If incoming mail is missing, compare the affected mail domain’s MX records with the mail provider’s instructions. Then check how each target hostname resolves. For delegated subdomains, check the authoritative DNS zone of both the mail domain and the MX target host. With Cloudflare, a mail hostname used for ordinary SMTP reception normally needs to be DNS-only; the standard HTTP proxy does not forward that traffic.

If receiving works but a website or application cannot send, compare that route with the working mailbox: which service submits the message, and what do its sending logs say? MX controls incoming delivery; SPF, DKIM and DMARC concern authentication of outgoing mail. For a rejection, identify the particular sending service and error before changing records.

If only some networks still see old answers, compare the currently delegated nameservers with authoritative responses and each cache. Lowering a TTL later does not immediately clear answers already cached. Record the time, affected service and error for the provider; do not include credentials in a public enquiry. [1] [2] [4] [5] [6]

Understand email domains and authentication

How to interpret DMARC reports

Level 1: Get an independent assessment of public DNS, TLS and email configuration

Swipe or scroll sideways to read the table.

Symptoms, first checks and supporting evidence
ObservationCheck firstThen establish
Website loads, incoming mail is missingAre MX records and their target names correct in the active zone?Check an authorised receiving test and provider status.
Mail arrives but authentication failsDo SPF and DKIM match the affected sending service?Inspect original headers for SPF, DKIM and DMARC alignment.
DNS returns SERVFAILDo delegation, DS records and DNSSEC signatures agree?Check the chain of trust; waiting for caches is not a diagnosis.
Only some networks see old valuesDistinguish authoritative answers from cached answers.Record the TTL, query time and resolver.

Worked example: the website is up, but mail is missing

Fictional handover excerpt for firma.example. The website host and nameservers change, while the mail provider stays the same. The DNS import accidentally copies the MX record of a retired mail server.

The DNS owner replaces the stale MX record with the destination confirmed by the mail provider and checks the delegated nameservers. Earlier bounces and any queued messages are investigated separately from the new test message. [6] [7]

Swipe or scroll sideways to read the table.

Completed handover excerpt: expected values, evidence and sign-off
CheckExpected at handoverEvidence and decision
Website · A recordfirma.example → 192.0.2.20. The home page loads over HTTPS.10:05 UTC · The A record matches and the site loads. Web check passed.
Incoming mail · MX recordfirma.example → 10 mx.maildienst.example10:05 UTC · The active zone returns 10 mx-alt.firma.example. Keep the handover open.
Mailbox · receiving testA new test message from an external sender reaches the intended inbox.10:20 UTC · The delegated nameservers return the correct MX record. The mailbox owner confirms receipt. Mail check passed.

Sources

  1. Cloudflare · Change your nameservers
  2. Cloudflare · Time to Live (TTL)
  3. Microsoft · Prevent dangling DNS entries and avoid subdomain takeover
  4. Cloudflare · DNSSEC
  5. Cloudflare · DNSSEC migration tutorial
  6. Cloudflare · Troubleshooting email issues
  7. IETF · RFC5321: MX lookup and separate SMTP delivery; queued retries
Related assessment

Security Assessment

Explore the service scope

Contact

Please do not send credentials or confidential information.

* Required field