[ DNS & domains ]

Back up a DNS zone before an authentication change

Preserve zone data, provider attributes and recovery boundaries before changing SPF, DKIM or DMARC. Separate a backup file from a verified restore.

By the EmailAuth research team · 6 min read

[ Key points ]

  • Confirm the authoritative zone and account before exporting.
  • Retain unchanged bytes, a checksum and capture context.
  • Keep provider attributes and external dependencies visible.
  • Prefer an exact-record reversal when unrelated changes may have occurred.
On this page

Make the backup answer a recovery question

Before changing an authentication record, preserve enough information to explain what was published, what the provider stored and how the intended change could be reversed. A downloaded zone file is useful, but its existence does not prove that a restore will recreate the service. Treat the backup as a recovery packet with an owner, a capture time and explicit limits.

This guide uses Cloudflare's public DNS import and export documentation reviewed on 8 November 2026 as a concrete provider example. The workflow is a proposed control, not a report of an export or restore performed here. Provider interfaces and account features need checking before operational use. No credentials, private signing keys or production zone data are required to understand the method.

Identify the zone and the change boundary

Write down the exact zone, account and authoritative provider before collecting files. Registration and authoritative hosting can belong to different organizations. A child zone can also have its own owner. An export from a parent does not establish the contents of a delegated child. The DNS hierarchy makes that distinction material when the affected name sits below a delegation. RFC 1034

List the names and types in scope: an SPF TXT owner, a DKIM selector owner, a DMARC policy owner, or a vendor CNAME target. Preserve the whole relevant record set rather than copying only the string that looks important. Record any unrelated TXT data at the same owner so that a future repair does not accidentally remove service verification records. Keep the requested change separate from the surrounding inventory.

Capture provider data and public observations separately

Cloudflare documents an export from the DNS Records page through Import and Export, then Export. Its API alternative is a GET operation accepting DNS Read permission. That documents a route for an authorized operator, not permission to create a token or access an account. Prefer an already approved read path and store the result in the team's restricted evidence location. Cloudflare import and export

Preserve the downloaded bytes unchanged. Give a working copy to the reviewer and retain the original with a checksum, UTC capture time, zone identity and operator. A checksum detects subsequent byte changes; it does not establish that the original was complete, correct or collected from the right account. Record whether the export preceded the change freeze and whether anyone could still edit the zone during collection.

Build a second inventory of proposed public checks: exact owner, type, authoritative server, recursive resolver, timestamp, response status, returned data and TTL. These checks would show what those servers answered at those times. They do not replace the provider export, and the export does not replace them. No lookup results are supplied here. Original authoritative and recursive transcripts remain required evidence.

Preserve the parts a portable file may not restore

Cloudflare's documented export includes comments, tags and special tags for selected record behavior. In particular, its proxy-state tags influence import behavior, and absent tags can leave behavior dependent on the general import option. Preserve those attributes and review their meaning before moving a file to another service. Another provider need not interpret Cloudflare-specific comments as configuration. Cloudflare record attributes

Keep a separate dependency sheet for registrar delegation, DNSSEC administration, traffic-routing features, account ownership and sender configuration. Mark each item captured, separately backed up, or outside scope. Do not label a zone file a full account backup. A DNS TXT record containing a DKIM public key is not the private key used by the sender. Private-key custody belongs in a separate approved system, never in an ordinary zone-backup ticket. RFC 6376

Design a narrow reversal before changing anything

Consider this fictional review case: a team plans to replace one SPF TXT record at example.com while a website team is editing an unrelated address record. The recovery proposal should identify the previous SPF value and all current records at that owner. Restoring an older whole-zone snapshot could erase the website team's legitimate edit. The default recovery proposal should therefore be a reviewed exact-record reversal, with whole-zone restoration reserved for a separately justified incident plan.

Specify the condition that would trigger reversal, the person allowed to decide, the operator and the verification steps. Check whether the previous value is still safe: a retired vendor or compromised key must not be revived merely because it appeared in yesterday's snapshot. A reversible file edit is not automatically a safe operational rollback. Compare the live intended scope again before any later approved write.

A restore rehearsal should use an isolated, authorized destination and verify parsing, record sets and provider attributes. Reading the file is not a rehearsal, and importing it into production is not a harmless test. Cloudflare documents a 256 KiB import limit, so even a valid export needs a destination-specific restore check. No rehearsal or import has been performed for this article. Cloudflare import limits

Close the evidence packet without overstating success

The release checklist should name the unchanged source file, its checksum, the exact-record diff, omitted dependencies and the proposed reversal. It should also record who reviewed the material and which evidence is still missing. Restrict access even when many DNS values are public: a consolidated inventory and provider comments can expose operational details that are not obvious from one public lookup.

After an independently authorized change or reversal, compare authoritative and recursive observations with the approved intent. Caches can retain earlier answers, so a restored control-panel value does not instantly settle every receiver's view. Keep the previous and replacement values, observation times and cache-related uncertainty together. RFC 2308

The useful outcome is a recovery packet another operator can evaluate without guessing. It is not a promise that a downloaded file will restore mail delivery. Sender behavior and received-message evidence still need their own verification, and the original execution gate stays open until those applicable checks are actually performed.

[ Takeaway ]

A useful backup preserves both the previous state and the limits of a safe reversal. A zone export alone does not prove recoverability.

[ By role ]

What this means for you

Choose your role for practical next steps.

DNS administrator

Prove what the recovery packet contains

The operator owns the boundary between an exported file and a functioning recovery procedure. Preserve enough context that a colleague can identify omissions without opening the production panel.

Next steps

  1. Record zone, account, export time and unchanged file checksum.
  2. Compare provider attributes and relevant record sets with the inventory.
  3. Escalate any restore behavior that has not been rehearsed in an approved isolated destination.

Email operations owner

Keep sender dependencies in the reversal plan

An old DNS value may no longer correspond to an authorized sender or safe key. Review authentication intent before accepting a technically possible restore.

Next steps

  1. Identify the affected SPF domain, DKIM selector or policy owner.
  2. State which sender configuration depends on each record.
  3. Reject recovery material that would revive a compromised key or retired sender.

Change approver

Authorize a bounded recovery action

A backup reduces uncertainty but does not grant permission to write. Approval should identify the exact reversal and its trigger, including how concurrent edits will be protected.

Next steps

  1. Name the decision owner and operator.
  2. Require a current-state comparison before restoration.
  3. Keep whole-zone recovery separate from routine exact-record rollback.

[ FAQs ]

Frequently asked questions

Is a zone export the same as a complete DNS service backup?

No. Treat it as one component. Inventory delegation, DNSSEC administration, account configuration, provider-specific features and sender dependencies separately. The packet should state what was captured and what remains outside its restore scope, rather than promise a full account recovery.

Can I export from Cloudflare without granting DNS write access?

Cloudflare documents DNS Read as sufficient for its export API. Use an existing authorized access path; the documentation does not itself authorize creating credentials or changing account permissions. Exporting and restoring are separate operations with different effects.

Do Cloudflare exports preserve proxy settings?

The documented format uses special cf-proxied tags to represent proxy state. Retain and inspect them. Do not assume another provider will interpret those comments, or that removing them leaves an import with the same behavior.

Why keep authoritative answers if I already have the export?

They answer different questions. The export records provider-side data; a timestamped DNS response records what a particular server returned for the named type. Preserve both, and do not treat either as evidence of a remote receiver’s authentication outcome.

Should rollback restore the entire old zone?

Only under a separately reviewed recovery plan. For a narrow authentication edit, compare the exact affected records with current state first. A whole-zone restore can remove legitimate changes made since the backup and can restore obsolete values.

Should I put the DKIM private key in the backup packet?

No. DKIM publishes a public verification key through DNS, while signing requires private-key custody. Keep private keys in the approved signing or secret-management system. A zone snapshot is not evidence that the sender’s private-key recovery process works.

Does a checksum prove the export is complete?

It proves only that a later byte sequence matches the hashed file, assuming the checksum record is trusted. Completeness requires checking zone identity, record scope, export limitations and omitted dependencies. Preserve a readable inventory alongside the original file.

What would satisfy the missing operational evidence?

An authorized capture should retain exact authoritative and recursive queries, timestamps, record types and responses, plus the exported baseline and reviewed recovery scope. A restore rehearsal, if required, needs its own safe destination and approval. None of those executions occurred here.

[ Sources ]

Sources

  1. Cloudflare DNS import and export records
  2. RFC 1034: Domain names: concepts and facilities
  3. RFC 1035: Domain names: implementation and specification
  4. RFC 2308: Negative Caching of DNS Queries
  5. RFC 6376: DomainKeys Identified Mail Signatures

[ Glossary ]

Glossary

Zone export
A provider-produced representation of DNS records and any supported attributes; its restore scope depends on the documented format.
Record set
Records sharing an owner name, class and type. Review the complete affected set rather than an isolated display string.
Recovery packet
The proposed collection of baseline files, provenance, dependencies, approvals and verification steps needed to assess a restore.
Authoritative observation
A recorded response from a server established to be authoritative for the relevant zone, including the exact question and time.
Exact-record reversal
A reviewed change restoring selected earlier record values while accounting for current state and unrelated concurrent changes.

Enterprise provenance

Why top financial institutions and governments retired their email security dashboards.

Traditional email authentication platforms sell you a dashboard and ask your engineers to do the labour. In high-stakes environments, manual oversight means delayed enforcement, configuration drift and unmonitored shadow domains.

EmailAuth is the agentic email provenance platform. Our agents enforce p=reject, keep third-party senders aligned and move your domains to full RFC 9989 compliance, the new DMARC standard,, with human-in-the-loop auditability.

Governments Large enterprises Tier-1 financial institutions

SaaS · Dedicated tenancy · Air-gapped on-prem · BYOK encryption

Knowledge Base