Skip to content

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
Read it as: “www.yourname.com is another name for yourname.com, and you can remember that for an hour.”

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.

Example DNS records for yourname.com
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…"      3600

The 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

  1. 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.
  2. Log in there and open your domain’s DNS, DNS records, or Zone editor page. The name varies by company.
  3. Before changing anything, take a screenshot or export the list. It’s your undo button.
  4. Compare what you see with the example above: website records (A, CNAME), email records (MX, TXT), and anything else.
  5. 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

Want 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.