Which DNS Records Should You Back Up Before Editing?
A single wrong DNS edit can take down a website or stop email. Learn exactly which records and settings to save first, how to capture them and how to roll back.
9 min readUpdated Nov 19, 2026By XPASS Editorial Team

Why a backup comes before any DNS edit
DNS is the address book of your domain. It tells the world where your website lives, where your email should be delivered and which services are allowed to speak for you. Most of the time the address book sits untouched for months. Then one day you add a record for a new tool, move to another host or change your DNS provider, and a small slip suddenly affects everything that depends on the domain.
The difficulty is that DNS has no undo button. When you delete or overwrite a record, the old value is simply gone from your panel. Resolvers around the world may still remember it for a while because of caching, but you cannot rely on that, and you cannot ask a resolver to hand it back. If you did not write the old value down, you may have to reconstruct it from memory, from old emails or from guesswork.
A backup takes a few minutes. It turns a risky edit into a reversible one: if something breaks, you know exactly what the records looked like before and can restore them. The original specifications, RFC 1034 and RFC 1035, describe DNS as a distributed database of resource records, and that is a useful way to think about the task: you are making a copy of a small database before you modify it.

What to back up: the records
A zone can hold many record types. The table lists the ones that matter most in practice and what could go wrong if you lose them.
| Record type | What it does | Risk if lost or changed by mistake |
|---|---|---|
| A | Points a name to an IPv4 address | Website or service becomes unreachable |
| AAAA | Points a name to an IPv6 address | IPv6 visitors fail or reach the wrong server |
| CNAME | Makes one name an alias of another | Subdomains such as www, shop or mail stop working |
| MX | Names the servers that receive email | Incoming email bounces or goes missing |
| TXT | Holds text values such as SPF, DKIM, DMARC and verification tokens | Email gets rejected or marked as spam; services lose verification |
| NS | Names the authoritative nameservers | Changing it wrongly can move the whole zone away |
| SRV | Locates specific services, such as some chat or calendar tools | The related service stops finding its server |
| CAA | Limits which authorities may issue certificates | Certificate issuance may be blocked or too open |
| SOA | Holds zone administration data | Usually managed by the provider, but note it |
Do not copy only the records you recognise. Back up the entire list, including entries nobody on your team remembers adding. Old records often exist because some service still depends on them, and the only way to find out is to see what breaks.
Pay extra attention to email records
Email is the part people most often forget. Your MX records decide where incoming mail goes. TXT records then decide whether your outgoing mail is trusted: SPF lists the servers allowed to send for your domain, DKIM publishes the public key used to check message signatures, and DMARC tells receivers what to do when a message fails those checks. DKIM records usually live under a selector name such as selector1._domainkey, which is easy to overlook because it is a subdomain rather than the root.
Copy each of these exactly. TXT values can be long, and some providers split them into several quoted strings. Keep the original structure so you can paste it back without error.
Subdomains and verification records
Walk through every subdomain: www, mail, shop, blog, api, staging and anything else on the list. Also save verification records, such as the TXT or CNAME values that prove ownership to a search tool, an email service or a certificate authority. Losing them does not always break anything immediately, but you may need to repeat the verification later, and some are checked again periodically.
What to back up: the settings around the records
A record export is only part of the picture. Several important facts live elsewhere.
- Nameservers at the registrar. These are the delegation that decides which DNS provider is in charge. Write down the current nameserver hostnames before you change them.
- TTL values. The TTL tells resolvers how long they may cache a record. If you lower TTLs before a change to make it faster, you need to know the original values so you can restore them afterwards.
- DNSSEC status. If DNSSEC is enabled, a DS record is published at the parent zone. Changing providers without handling it properly can make the domain fail validation. RFC 4033 gives the background if you are new to it.
- Provider-specific features. Some panels offer URL redirects, proxying, geographic routing or health checks that do not export as ordinary records. Make a note, or a screenshot, of any such feature you use.
- Registrar settings. Auto-renewal, transfer lock and contact details are not DNS, but they sit next to it and are worth noting before a larger change.
How to capture the backup
There are three practical methods, and using two of them together is the most reliable approach.
Method 1: export a zone file
Many DNS services let you download a zone file, a plain text list of records in a standard layout. This is the best option because it is complete and easy to re-import. Save it with a clear name such as example.com-2026-12-06-before-change.txt. Check afterwards that the file contains the record types you expect, especially long TXT entries.
Method 2: copy values by hand
If the provider offers no export, open the record list and copy each record into a text document or spreadsheet with four columns: name, type, value and TTL. It is slower, but copying text is more reliable than reading from an image. For long values, use copy and paste rather than retyping.
Method 3: query with dig
The dig tool, available on most systems, shows what the public DNS currently returns. A few examples:
dig example.com Adig example.com MXdig example.com TXTdig example.com NSdig www.example.com CNAME
Using dig is a good cross-check because it shows what resolvers actually see, not just what your panel claims. Its weakness is that you must ask for each name and type, so it cannot discover a record you did not think of. That is why it complements, but does not replace, the provider's full list. You can also ask a specific nameserver directly with dig @ns1.provider.example example.com ANY, although many servers limit what they answer to ANY queries, so asking per type is more dependable.
Finally, take a screenshot of the panel as a visual record of the layout. It is a backup of last resort, not the main copy.
A safe editing routine
Once the copy is saved, follow a short routine for each change.
- Save the backup and store it somewhere other than the DNS panel, for example in your documentation folder.
- Write down what you plan to change in one sentence, such as "add a CNAME for shop pointing to the store platform".
- Check the TTL of the records you will touch. A high TTL means a mistake lingers longer in caches. If the change is large, consider lowering the TTL a day beforehand and restoring it afterwards.
- Make one change at a time. If you change five things and something breaks, you will not know which one caused it.
- Verify immediately with
digor an online lookup, and then test the real service: open the website, send a test email in both directions. - Compare with the backup after the change. Everything you did not intend to change should match the saved copy.
- Record the outcome with the date, so the next person knows what was done.
If something is wrong, restore the saved value for the affected record. Because you changed only one thing, rollback is a single step. Remember that cached values take up to the TTL to refresh, so recovery may not be instant.
A plain example
Suppose a small online shop wants to switch its website from an old host to a new one. The owner opens the DNS panel and sees an A record for the root, a CNAME for www, two MX records, three TXT records and a CNAME for shop.
First, the owner exports the zone file and also copies the values into a document. While doing so, they notice a TXT record they do not recognise. A quick search of old emails shows it was created to verify the domain with an email-sending service the shop uses for newsletters. Without the backup and the careful review, deleting it during a tidy-up would have broken newsletter delivery.
Next, the owner lowers the TTL on the A record the day before, then on the day changes only that A record to the new host's IP address. They test the website, check from a second network, and confirm that the MX and TXT records are identical to the backup. Two days later, the TTL goes back to its normal value. When the new host has a fault on the first evening, the owner simply restores the old A record from the backup within minutes.
Limits and what to watch for
Backups help, but they are not magic. Keep these points in mind.
- An export may be incomplete. Some providers leave out provider-specific features, internal records or records for other zones. Compare the export with the panel.
- Do not trust one source only. A panel can be out of date or show records that are not yet published. Cross-check with
digand compare. - Caches delay everything. Both mistakes and fixes take time to spread. Resolvers hold a record until its TTL runs out, so test from more than one network and be patient.
- Wildcard and apex rules. A wildcard record answers for names that do not exist elsewhere, which can hide mistakes. A CNAME cannot normally sit at the root of a domain alongside other records, so know how your provider handles an alias at the apex.
- Secrets in TXT records. Some verification tokens and keys are sensitive. Store your backup with sensible access rules, not in a public place.
- Backups age. A copy from last year is not the state of today. Make a fresh one before each significant change and keep the old ones with dates.
- A backup is not a migration plan. If you are changing providers, the steps are larger. Our guide on moving DNS hosting without email downtime walks through that case in detail.
Where a backup fits in the bigger picture
Your DNS provider's own features also matter. Some services keep a history of changes or let you snapshot a zone, which is convenient, but you should still keep an independent copy because your access to that panel may itself be what fails. If you are choosing a provider, the differences between plans are explained in Premium DNS compared with basic DNS, and you can read about how DNS relates to content delivery in DNS and CDN: what is the difference.
It also helps to decide who is responsible. In a small team, name one person as the owner of DNS changes and keep the dated backups in a shared folder. Many outages are caused less by technical limits than by two people editing the same zone without knowing about each other.
Summary
Before you edit DNS, copy the whole zone: A, AAAA, CNAME, MX, TXT, NS, SRV and CAA records, with their TTL values. Add the settings that sit around the records, namely the registrar nameservers, DNSSEC status and provider-specific features. Capture the data in at least two ways, such as an exported file plus a dig check, then make one change at a time, test the website and email straight away, and compare with the saved copy. Keep dated backups, remember that caches delay both mistakes and repairs, and treat the copy as your rollback plan. If you are looking at where to manage your domain and DNS, the domains page shows the available options.
Frequently asked questions
Which DNS records matter most to back up?
Back up everything, but pay special attention to A and AAAA records for the website, MX records for email, TXT records for SPF, DKIM, DMARC and domain verification, CNAME records for subdomains and services, and the NS records that name your DNS provider. Missing one email-related record is the most common cause of trouble.
Is a screenshot of my DNS panel enough as a backup?
A screenshot is better than nothing, but a text copy is safer. Long TXT values are easy to misread or truncate in an image. Use an export file if your provider offers one, or copy each value into a text document and keep the screenshot as a second check.
Can I use dig to see my current records?
Yes. Querying each record type for the apex and your known subdomains shows what the world currently sees. It is a useful cross-check, but it only reveals names you think to ask about, so combine it with the provider's own record list.
How long should I keep the backup?
Keep it at least until the change has settled everywhere and you have checked the website and email for several days. Many people keep dated copies permanently because they take almost no space and make later audits easier.
Do I need to back up settings outside the record list?
Yes. Note the nameservers set at your registrar, the TTL values, whether DNSSEC is enabled and any provider-specific features such as redirects or proxying. These are not always part of an exported record file.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Ready to register your domain?
Search a name, compare extensions and pay once for the years you choose.
.com registration from $18.81 for the first year
Search domainsKeep reading

Domain & DNS Guides
How to Move DNS Hosting Without Email Downtime
Moving DNS hosting can silently break mail if one MX, SPF or DKIM record is missed. Follow this checklist to copy, test and switch nameservers safely.
11 min read

Domain & DNS Guides
What Is Premium DNS and How Does It Differ From Basic DNS?
Basic DNS comes bundled with many domains and hosts; Premium DNS is a dedicated service with a wider network and more tools. Learn the real differences and who needs which.
9 min read

Domain & DNS Guides
DNS vs CDN: What Is the Difference?
DNS tells browsers where your site lives, while a CDN delivers copies of your content from nearby locations. Here is how the two fit together and where they differ.
9 min read