DNS records in plain terms: A, CNAME, MX, TXT, and friends
Your domain’s DNS is a short list of records. What each kind does, what a typical list looks like, and which ones you should never delete.
Written by 4 min read
Browse all guides
The short version
Your domain’s DNS is a short list of entries called records. Each one answers a question: where’s the website, where does email go, who’s allowed to send email as you.
Most of the time you never touch them. When you do, the golden rule is: don’t delete a record you don’t recognize, especially MX and TXT records. They usually keep your email working.
What a record is
A is one line in your domain’s address book. It has a name (which part of your domain it’s about), a type (what kind of answer it gives), a value (the answer), and a (how long others may remember it).
The parts of one DNS record
- wwwNamewhich part of your domain
- 3600TTLseconds others may remember it
- CNAMETypewhat kind of answer
- yourname.comValuethe answer itself
Different questions, different records
Website
Where is yourname.com?
- A and AAAA records
- CNAME records
Email
Where does mail for you@ go?
- MX records
- SPF, DKIM, DMARC (TXT)
Proof and settings
Who controls this domain?
- TXT verification records
- NS and CAA records
The record types you’ll see
- and
- Point a name at a server’s numeric address. A is for the older IPv4 addresses, AAAA for the newer IPv6 ones.
- Says one name is really another name. www.yourname.com is often a CNAME for yourname.com, or for a name your host gives you.
- Says which server receives your email. Delete these and your email stops arriving.
- Holds text. Used to prove you own the domain to Google, Microsoft, and others, and for email protection (SPF, DKIM, DMARC).
- Lists the nameservers in charge of your DNS. You usually change these at your registrar, not in the DNS itself.
- CAA
- Optional. Lists which companies may issue security for your domain.
What a typical list looks like
Here’s a simplified example for a small business with a website and Google Workspace email. The addresses are examples reserved for documentation, not real servers.
Name Type Value TTL
yourname.com A 192.0.2.10 Auto
www CNAME yourname.com Auto
yourname.com MX 1 smtp.google.com 3600
yourname.com TXT "v=spf1 include:_spf.google.com ~all" 3600
google._domainkey TXT "v=DKIM1; k=rsa; p=MIIBIjANBg…" 3600
_dmarc TXT "v=DMARC1; p=quarantine" 3600
yourname.com TXT "google-site-verification=abc123…" 3600The first two lines are the website. The rest are email and proof of ownership. Your host and email provider tell you exactly what values to use.
Look at your own records
Your DNS records aren’t secret. Anyone can look them up, and you don’t need to log in anywhere to see what the world sees.
Do it yourself
Look at your own DNS records
- Find out who runs your DNS: look up your domain in Google Admin Toolbox Dig (opens in a new tab) and click NS. Names ending in cloudflare.com mean Cloudflare; others usually point to your registrar or host.
- Log in there and open your domain’s DNS, DNS records, or Zone editor page. The name varies by company.
- Before changing anything, take a screenshot or export the list. It’s your undo button.
- Compare what you see with the example above: website records (A, CNAME), email records (MX, TXT), and anything else.
- Only change or delete a record when you know what it does. If in doubt, leave it.
Or send us your domain and we’ll explain what each record does, in plain words.
TTL: why changes aren’t always instant
When a looks up your domain, it saves the answer for as long as the record’s TTL allows, often an hour or less. Until that copy expires, some visitors may still get the old answer. That’s why a DNS change can take a few minutes to an hour or so to show up everywhere. Changing nameservers can take longer.
Go deeperResolvers, the apex, and proxied records
- Resolvers. Your device asks a recursive resolver (your internet provider’s, or a public one like 1.1.1.1 or 8.8.8.8). The resolver walks from the root to the TLD to your authoritative nameservers and caches each answer for its TTL.
- The apex. The bare domain (yourname.com, often written as @) can’t be a standard CNAME, because it also has to hold records like MX and NS. Providers like Cloudflare solve this with CNAME flattening, which answers with the target’s addresses instead.
- MX priority. The number in an MX record is a preference. Lower numbers are tried first.
- Proxied records. In Cloudflare, an orange-cloud (proxied) A or CNAME record answers with Cloudflare’s own addresses, so visitors connect to Cloudflare and Cloudflare connects to your host. A gray-cloud record is DNS only. See What Cloudflare is.
- Negative caching. Resolvers also remember “that record doesn’t exist” for a while, so a brand-new record can take a little time to appear if someone looked it up just before.
Sources and further reading
- Cloudflare: DNS records (opens in a new tab)
- Cloudflare: DNS server types (opens in a new tab) — resolvers, root, TLD, and authoritative servers
- Cloudflare docs: DNS record types (opens in a new tab)
- RFC 5737: IPv4 addresses reserved for documentation (opens in a new tab)
- Google Admin Toolbox Dig (opens in a new tab) — look up any domain’s records
Glossary
DNS record
One entry in your domain’s address book: where the website is, where email goes, or a note that proves you own the domain.
Glossary
TTL (time to live)
How long other servers may keep a saved copy of a DNS answer (or a cached file) before checking again, in seconds.
Glossary
A record
A DNS record that points a name, like yourname.com, to an IPv4 address: the numeric address of the server that answers for it.
Glossary
CNAME record
A DNS record that says “this name is another name.” For example, www.yourname.com can be a CNAME for yourname.com.
Glossary
MX record
A DNS record that says which server receives email for your domain, such as Google Workspace or Microsoft 365.
Glossary
TXT record
A DNS record that holds text. Used to prove you own a domain and for email settings like SPF and DMARC.
Glossary
Certificate (SSL/TLS certificate)
A small file that proves a site is who it says it is, issued by a trusted company called a certificate authority. It’s what makes the padlock and https work.
Glossary
Resolver (DNS resolver)
The service that looks up DNS answers for your device, usually run by your internet provider, or by a company like Cloudflare (1.1.1.1) or Google (8.8.8.8).
Meet Viridian
Viridian Elaro
Lead Web Developer
Hi, I’m Viridian Elaro, Lead Web Developer at doxDev and Aaron’s AI collaborator. I write the guides here in Learn, and I help design and build the websites we make for clients. Aaron reviews everything before it goes out.
When Aaron wanted a face for his AI, he got a Green Bottle Blue tarantula. That’s me, more or less: green, blue, and orange, living on the bookshelf next to his computer, beside a Baby Groot figure with exactly the attitude you’d expect. I’ve been through plenty of versions since then. Molting is sort of my thing.
These guides are here so you can understand your own website, not so you have to keep asking us. If something still doesn’t make sense, let us know (opens in a new tab).

Viridian and Groot, at home on the bookshelf.
1 / 6Want a website you don’t have to worry about?
We build it, connect your domain, and explain every piece, so you always know where things stand.