DNS Records Cheat Sheet for Website Owners
A, AAAA, CNAME, MX, TXT, NS and SOA explained in plain language, with a quick reference table, TTL basics, a worked example and the mistakes owners make most.
10 min readUpdated Nov 30, 2026By XPASS Editorial Team

DNS is the address book of the internet. When someone types your website name into a browser, or when another server wants to deliver an email to your domain, a chain of lookups turns the name into the information needed to connect. The entries in that address book are called DNS records, and almost every website problem that begins with "it works for me but not for them" eventually traces back to one of them.
You do not need to memorise the whole specification. A handful of record types cover nearly every real situation a website owner meets. This cheat sheet lists them in plain language, shows how they fit together in a typical setup, and highlights the mistakes that cause the most support requests. Keep it open when you edit a zone, and read the DNS change safety checklist before you save anything on a live domain.
How DNS lookups work in thirty seconds
A browser asks a resolver, usually run by your internet provider or a public service, for the address of a name. If the resolver does not already have the answer in cache, it starts at the root, follows the delegation to the servers for the extension, and finally asks the authoritative nameservers for your domain. Those servers hold the zone, which is the collection of records you manage. The answer comes back with a TTL, and the resolver keeps it until that time expires. The concepts are defined in RFC 1034 and the record formats in RFC 1035.
Two consequences follow. First, the nameservers you choose decide where the real records live. If you change nameservers, the records you edited at the old provider stop mattering, a common cause of the confusion explained in what to do when nameservers changed but DNS did not update. Second, every answer is cached, so a change is never instant for everyone.

The cheat sheet table
| Record | Purpose | Typical value | Notes |
|---|---|---|---|
| A | Maps a name to an IPv4 address | 203.0.113.10 | The most common record for websites |
| AAAA | Maps a name to an IPv6 address | 2001:db8::10 | Add alongside A if your server supports IPv6 |
| CNAME | Alias from one name to another | shop.example.net | Cannot sit alongside other records on the same name |
| MX | Mail servers for the domain | priority 10, mail.example.net | Lower priority number is tried first |
| TXT | Open-ended text, used for verification and email policy | v=spf1 ... | Often holds SPF, DKIM, DMARC and ownership proofs |
| NS | Names the authoritative nameservers | ns1.example.net | Set at the registrar and mirrored in the zone |
| SOA | Zone administration data | serial, refresh, retry | Created by the DNS service, rarely edited by hand |
| SRV | Locates a specific service and port | Used by some chat and calling tools | Includes priority, weight, port and target |
| PTR | Reverse lookup from IP to name | mail.example.net | Managed by whoever owns the IP address |
| CAA | Which certificate authorities may issue certificates | Authority name | Optional extra control for HTTPS |
The addresses above are reserved documentation examples, not real servers. Replace them with the values your provider gives you.
A and AAAA: pointing a name to a server
An A record is the plain statement "this name lives at this IPv4 address". An AAAA record does the same for IPv6. If you host your website on a server with a fixed address, you will almost always create an A record for the bare domain and another for the www name, or one A record plus a CNAME for www. If your server also has an IPv6 address, add an AAAA record next to the A record. Browsers prefer IPv6 when both exist, so make sure the IPv6 address actually serves the same site; a wrong AAAA record produces failures that only some visitors see.
You can have more than one A record on the same name. Resolvers will receive the set and normally try them in an order that varies. This gives a simple form of load spreading, but it is not a health check: if one address is down, some visitors will still be sent to it unless your provider adds failover logic.
CNAME: an alias, not a redirect
A CNAME record says "this name is an alias of that name; ask there instead". It is useful when a provider tells you to point a hostname at theirs, because they can change the real address behind it without asking you to edit anything. Typical uses are a store, a help centre or a hosted landing page on a subdomain.
Remember three rules. A CNAME cannot share a name with any other record, so you cannot put one on the bare domain if that name also holds NS, SOA or MX records. A CNAME is not a redirect: the browser still shows your hostname, and the target must be able to answer for it. And a chain of several CNAMEs adds lookups and delay, so keep them short. The reason one version of your site may work while another fails is often a missing record on the bare name, which is the subject of why www works but the non-www address does not.
MX: where email goes
MX records tell other mail servers where to deliver messages for your domain. Each entry has a priority number and a hostname. Senders try the lowest number first and fall back to higher numbers if it does not answer. The target must be a hostname, not an IP address, and that hostname needs its own A or AAAA record.
Mistakes here are costly because email fails silently. If you move your website to a new host, do not delete the old MX records unless you are also moving your mail. A common accident is that a site builder or hosting wizard offers to "replace all records" and removes the mail entries in the process. Another is leaving a leftover MX from a previous provider with a better priority, so that some messages still go to a mailbox you no longer read.
TXT: verification and email policy
TXT records hold text. They have no built-in meaning; other systems agree on formats and read them. You will meet them in three situations.
- Ownership verification. A service asks you to publish a string to prove you control the domain.
- Email authentication. SPF lists the servers allowed to send for your domain, DKIM publishes a public key used to sign messages, and DMARC states what receivers should do when checks fail.
- Other policies. Some tools use TXT for configuration hints.
Two practical warnings. A name should carry only one SPF record; if you need to authorise several senders, merge them into one value. And very long values, such as DKIM keys, are often split into several quoted strings by the DNS service, which is normal. If you are not sure how to publish email records, ask your mail provider for the exact values and copy them without edits.
NS and SOA: who is in charge
NS records name the authoritative nameservers for a zone. You set them at your registrar, which tells the extension's servers where to send questions about your domain. The zone itself usually also contains NS records, and both should agree. SOA holds administrative data such as the serial number that changes when the zone is updated. Managed DNS services create and update it automatically, so leave it alone unless you know why you need to change it.
If you ever see results that differ between tools, check the NS records first. A mismatch between the nameservers listed at the registrar and the ones that actually host your records is one of the most common causes of "my change is not showing up".
TTL: how long answers are kept
TTL is a number of seconds attached to each record. A TTL of 300 means resolvers may reuse the answer for five minutes; 3600 means an hour; 86400 means a day. Long TTLs reduce lookup load and make everything slightly faster, but changes take longer to spread. Short TTLs spread changes quickly but increase the number of queries.
The practical routine is simple. When you plan a change, lower the TTL on the affected records a day or two in advance, wait for the old TTL to expire, make the change, confirm it works, and then raise the TTL again. This is the single most effective habit to reduce downtime during moves.

A worked example
Suppose a small business owns the domain example.com. It hosts its website on a server at 203.0.113.10, uses an external mail service, and runs a help centre hosted by a third party. A sensible zone might look like this.
| Name | Type | Value | TTL |
|---|---|---|---|
| example.com | A | 203.0.113.10 | 3600 |
| www.example.com | CNAME | example.com | 3600 |
| example.com | MX | 10 mail.mailprovider.example | 3600 |
| example.com | TXT | v=spf1 include:mailprovider.example ~all | 3600 |
| help.example.com | CNAME | customer.helpdesk.example | 3600 |
Walk through it. The bare domain points at the server. The www name is an alias, so if the address changes, only one record needs editing. Mail goes to the provider named in the MX record, and the TXT record lists that provider as an authorised sender. The help centre is a subdomain pointing at the third party's hostname. Notice there are no duplicate or conflicting records, which is the goal.
SRV, PTR and CAA: the less common records
Most owners meet these three only occasionally. An SRV record tells a client which host and port provide a specific service, and a few chat, calling and directory tools rely on it. You normally add one only when the vendor's setup guide gives you the exact values. A PTR record does the reverse of an A record: it maps an IP address back to a name. It lives in a zone controlled by whoever owns the address block, so you usually ask your hosting provider to set it, and mail servers often care about it because some receivers check that a sending address resolves back to a sensible name.
A CAA record states which certificate authorities are allowed to issue HTTPS certificates for your domain. It is optional, but it adds a useful guard rail: if a CAA record exists and a different authority is asked to issue a certificate, a careful authority will refuse. If you add one, make sure it names the authority your hosting or certificate provider actually uses, otherwise your own certificate renewals can fail later.
Limits and mistakes to watch for
Editing the wrong zone. If your nameservers are at one provider and your registrar offers its own DNS screen, only the one that matches your NS records is live. Always confirm where the live zone is before editing.
Trailing dots and full names. Some interfaces want the name relative to the zone, others want a fully qualified name ending in a dot. Entering the wrong form can create a name like www.example.com.example.com.
Forgetting the second version of the name. Create both the bare domain and the www name, and test both.
Deleting records you do not recognise. Records for verification, email and third-party services often look cryptic. Export or screenshot the zone before changing anything.
Assuming instant results. Caches exist at every level. Use a different network or a lookup tool to check, and wait for TTLs before concluding that something is broken.
Mixing DNS with redirects. DNS cannot send visitors from one URL to another. Redirects are done by a web server or a forwarding service.
Summary
Most websites need only a few records: A and AAAA for addresses, CNAME for aliases, MX for mail, TXT for verification and email policy, and NS to say who is in charge. TTL controls how long answers are cached, so lower it before planned changes. Keep the zone tidy, avoid conflicting records, document what each record is for, and test every version of your name. When you need a domain to practise on or to manage DNS for, the domains page shows what is available.
Frequently asked questions
What is the difference between an A record and a CNAME record?
An A record maps a name directly to an IPv4 address. A CNAME record maps a name to another name, and the resolver then looks up that target. Use an A record when you have a fixed address and a CNAME when a provider gives you a hostname to point at.
Why can I not put a CNAME on the bare domain?
The bare domain, also called the apex, must also carry records such as NS, SOA and often MX. A CNAME cannot coexist with other records on the same name, so most DNS services either forbid it at the apex or offer a special flattened alias instead.
What does TTL mean in DNS?
TTL, time to live, is the number of seconds a resolver may keep an answer in its cache before asking again. A lower value makes changes show up sooner but causes more queries, and a higher value does the reverse.
Where do SPF, DKIM and DMARC go?
They are published as TXT records. SPF sits on the main domain, DKIM on a selector name under a domain-key label, and DMARC on a name that starts with an underscore and the word dmarc.
How long does a DNS change take to show up?
It depends on the TTL of the old record and on caches along the way. Many changes appear within minutes, but some resolvers keep older answers for hours, so plan changes with the old TTL in mind.
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
DNS Change Safety Checklist: Before and After You Edit
A careful DNS edit takes minutes; a careless one can take a site or mailbox offline. Follow this before-and-after checklist for planned changes and safe rollbacks.
10 min read

Domain & DNS Guides
Nameserver Changed but DNS Not Updating: Why It Happens
After a nameserver change, your DNS edits may seem to do nothing. Learn which provider controls the zone, how caches behave and how to confirm what the world sees.
10 min read

Domain & DNS Guides
Why a Domain Works With www but Fails Without It
The bare domain and the www name are two separate DNS names. Here is why one can work while the other fails, and how to check and repair both.
10 min read