You open your domain’s DNS settings and find a table of A, CNAME, MX and TXT records with cryptic values and a TTL column nobody explains.
Each of those rows does one specific job. To show what that looks like on a real site, we looked up the live DNS records for droidcrunch.com and walked through every one.
You’ll learn what each record type does, when a CNAME beats an A record, and how to edit records safely.
What are DNS records?
DNS records are instructions stored on your domain’s DNS servers that tell the internet where to send traffic for that domain. Each record has a type, a name, a value and a TTL (time to live).
When someone visits your website or emails you, their device asks DNS servers for the right record. An A record answers “which IP address hosts this site?” An MX record answers “which server accepts this domain’s email?” If you want the full lookup journey, our guide on how DNS works traces a request step by step.
Records live in a DNS zone, the full set of records for one domain. You manage the zone wherever your nameservers point: your registrar, your host or a service like Cloudflare.
The common DNS record types at a glance
| Record | What it does | Example value |
|---|---|---|
| A | Points a name to an IPv4 address | 172.67.202.60 |
| AAAA | Points a name to an IPv6 address | 2606:4700:3031::ac43:ca3c |
| CNAME | Points a name to another name | www.github.com → github.com |
| MX | Says which server receives email | 10 mx.zoho.com |
| TXT | Holds text: verification, SPF, DMARC | v=spf1 include:zoho.com ~all |
| NS | Names the servers that run your DNS | aria.ns.cloudflare.com |
| SOA | Zone admin details and timers | Created by your DNS host |
| CAA | Limits who can issue SSL certificates | 0 issue “letsencrypt.org” |
Our test: the real DNS zone for droidcrunch.com
We queried every common record type for our own domain using Google’s public DNS lookup. Here’s what came back, with long verification codes shortened.
| Type | Name | Value | TTL |
|---|---|---|---|
| NS | droidcrunch.com | aria.ns.cloudflare.com, ned.ns.cloudflare.com | 21600 |
| A | droidcrunch.com | 172.67.202.60 and 104.21.22.36 | 300 |
| AAAA | droidcrunch.com | 2606:4700:3031::ac43:ca3c and 2606:4700:3037::6815:1624 | 300 |
| A | www | Same two addresses as the root | 300 |
| MX | droidcrunch.com | 10 mx.zoho.com, 20 mx2.zoho.com | 300 |
| TXT | droidcrunch.com | v=spf1 include:_spf.mlsend.com include:zoho.com ~all | 300 |
| TXT | droidcrunch.com | google-site-verification=…, ahrefs-site-verification_…, brevo-code:… | 300 |
| TXT | _dmarc | v=DMARC1; p=none; rua=mailto:… | 3600 |
| CAA | droidcrunch.com | None set | n/a |
NS says Cloudflare runs our DNS. A and AAAA point to Cloudflare’s network, which sits in front of our host. MX sends email to Zoho. And the TXT records hold our email authentication rules plus three ownership checks for Google, Ahrefs and Brevo.
Let’s go through each type.

A record: domain to IPv4 address
An A record maps a domain or subdomain to an IPv4 address, such as 172.67.202.60. It’s the record that makes your website load.
Our domain returned two A records. That’s normal behind a network like Cloudflare, which gives you several addresses so traffic has more than one path. On a plain shared hosting plan, you’d usually see one A record pointing to your server’s IP.
Use an A record when your host gives you an IP address. Hostinger, for example, shows it in the hosting dashboard, and you paste it into the A record for your domain.
AAAA record: domain to IPv6 address
An AAAA record does the same job as an A record for IPv6 addresses, the longer format such as 2606:4700:3031::ac43:ca3c. We had two of those too.
You only need one if your host supports IPv6. Devices that prefer IPv6 use it, and everyone else falls back to the A record. Our guide to IPv4 vs IPv6 explains the difference.
CNAME record: one name pointing to another
A CNAME (canonical name) record points one hostname at another hostname instead of an IP address. It says “this name is an alias; go look up that one.”
A clear example: www.github.com has a CNAME pointing to github.com, which then has the A record with the IP address. Change GitHub’s IP once, and both names follow.
CNAMEs are how most third-party services connect to your domain. Shops, help desks, landing page builders and email tools often ask you to create something like shop as a CNAME pointing to their hostname.
Our own www returned A records directly, with no CNAME visible. That’s Cloudflare’s proxy at work: it answers with its own addresses and hides whatever sits behind.
CNAME vs A record: which should you use?
Use an A record when you have an IP address. Use a CNAME when a service gives you a hostname, or when you want one name to follow another automatically.
Two rules trip people up:
- A CNAME can’t sit on the root domain (example.com) in standard DNS, because the root also needs NS and SOA records, and a CNAME can’t share a name with other records. Cloudflare and some other DNS hosts work around this with “CNAME flattening”.
- A CNAME can’t share its name with any other record. If
shopis a CNAME, it can’t also have an MX or TXT record.
MX record: where your email goes
An MX (mail exchanger) record tells other mail servers which server accepts email for your domain. Each MX record has a priority number; lower numbers are tried first.
Ours has two: mx.zoho.com at priority 10 and mx2.zoho.com at priority 20. If the first is down, mail goes to the second. Google Workspace and Microsoft 365 work the same way with their own hostnames.
An MX record must point to a hostname, never directly to an IP address. If your email suddenly stops arriving after a DNS change, a missing or wrong MX record is the first thing to check.
TXT record: verification and email security
A TXT record stores text that other services read. It does two main jobs: proving you own a domain and publishing email security rules.
Our zone had four TXT records on the root domain:
- SPF:
v=spf1 include:_spf.mlsend.com include:zoho.com ~all. It lists who may send email as droidcrunch.com: our newsletter tool and Zoho. - Google, Ahrefs and Brevo verification codes. Each service asked us to add a unique code to prove we control the domain.
There was one more TXT record on a subdomain, _dmarc.droidcrunch.com: v=DMARC1; p=none. That’s our DMARC policy, which tells receiving servers what to do with mail that fails SPF and DKIM checks. A p=none policy means “monitor only and send reports”, a sensible starting point before moving to quarantine or reject.
Our SPF, DKIM and DMARC setup guide walks through each of these, and email deliverability explained covers why they decide whether you land in the inbox.
DKIM: the keys you can’t see in a normal lookup
DKIM (DomainKeys Identified Mail) is the third email record, and it’s easy to miss. A sending service signs each message with a private key. The matching public key sits in a TXT record at a name like selector._domainkey.yourdomain.com.
The catch is the selector. DNS has no way to list every name in a zone, so you can only find a DKIM key if you know or guess its selector. We tried 13 common ones against our domain and found five keys:
| Selector | What answered | Used by |
|---|---|---|
zoho | TXT key, 1024-bit | Zoho Mail |
default | TXT key, 2048-bit | Unknown: an older tool |
litesrv | CNAME to MailerLite’s server | MailerLite newsletters |
brevo1 | CNAME, then CNAME, then key | Brevo |
brevo2 | CNAME, then CNAME, then key | Brevo (second key) |
Two things stood out. MailerLite and Brevo don’t store their keys in our zone at all. We publish a CNAME that points at their servers, so they can rotate keys without asking us to edit DNS. Brevo’s chain was two CNAMEs deep before it reached the actual key.
The default selector was the puzzle. It holds a 2048-bit key, but nothing in our zone says which tool created it. That’s normal on an older domain: records outlive the services that needed them. Before deleting a record like that, check every tool that sends mail as your domain.
Counting SPF lookups
SPF has a hard limit that catches growing businesses out: a receiving server will follow at most 10 DNS lookups while checking one SPF record. Every include, a, mx or redirect counts, including the ones nested inside the services you include. Go over, and SPF fails for every email you send.
We wrote a short script to follow our own SPF record down every branch:
droidcrunch.com | v=spf1 include:_spf.mlsend.com include:zoho.com ~all
lookup | _spf.mlsend.com
_spf.mlsend.com | ip4 ranges only
lookup | zoho.com
zoho.com | v=spf1 include:spf.zoho.com include:zcsend.net include:spf.zohomail.com include:popspf.zohomail.com -all
lookup | spf.zoho.com
spf.zoho.com | ip4 ranges only
lookup | zcsend.net
zcsend.net | ip4 ranges only
lookup | spf.zohomail.com
spf.zohomail.com | ip4 ranges only
lookup | popspf.zohomail.com
popspf.zohomail.com | ip4 ranges only
droidcrunch.com DNS lookups: 6 of 10 allowed
Our record uses 6 of the 10 lookups. MailerLite’s include costs one. Zoho’s costs five, because zoho.com includes four more records of its own. Add two or three more email tools with nested includes, and we’d hit the wall without touching a single visible setting.
Notice that Brevo isn’t in our SPF at all. Its mail can still pass DMARC through its DKIM signature, because DMARC needs only one of SPF or DKIM to pass and match the domain.

NS record: who runs your DNS
NS (nameserver) records say which servers hold the authoritative DNS zone for your domain. Ours point to aria.ns.cloudflare.com and ned.ns.cloudflare.com.
This is the record that decides where you edit everything else. If your NS records point to Cloudflare, changes made at your registrar or host do nothing. That’s the most common reason “my DNS change isn’t working.”
SOA, CAA, SRV and PTR records
A few other types show up in DNS panels:
- SOA (start of authority) holds admin details for the zone, such as the primary nameserver and timing values. Your DNS host creates it; you rarely touch it.
- CAA lists which certificate authorities may issue SSL certificates for your domain. We don’t have one, which is common, but it’s a cheap extra layer of protection.
- SRV points specific services, such as calling or chat apps, to a host and port.
- PTR does reverse lookups, mapping an IP back to a name. It’s set by whoever owns the IP, usually your host, and matters for mail servers.
HTTPS records: the newer type in your zone
Our lookup turned up one record most guides don’t mention yet: an HTTPS record (type 65). Cloudflare publishes it for us automatically:
1 . alpn=h3,h2 ipv4hint=104.21.22.36,172.67.202.60 ech=…
It tells browsers, before they connect, that the site supports HTTP/3 (h3) and HTTP/2, gives them the IP addresses up front, and carries a key for Encrypted Client Hello. Browsers that read it can skip a round trip and start on HTTP/3 straight away.
You don’t need to create one by hand. If your DNS host or CDN adds it, leave it alone.
When a record doesn’t exist: NXDOMAIN vs an empty answer
DNS has two different ways of saying “nothing here”, and they point to different problems.
| What we asked | Status | Meaning |
|---|---|---|
shop.droidcrunch.com, A | 3 (NXDOMAIN) | The name doesn’t exist |
droidcrunch.com, CAA | 0, no answers | Name exists, no record of this type |
droidcrunch.com, MX | 0, two answers | Records found |
NXDOMAIN means the name itself doesn’t exist. We asked for shop.droidcrunch.com, which we never created, and got status 3. A browser shows that as DNS_PROBE_FINISHED_NXDOMAIN.
An empty answer means the name exists but has no record of that type. Our root domain has A, MX and TXT records but no CAA, so the CAA lookup came back with status 0 and no answers.
The difference saves time when something breaks. NXDOMAIN usually means a typo in the name, a record that was never added, or nameservers pointing at the wrong zone. An empty answer means you added the wrong type, such as a CNAME where the service checks for TXT.
What is TTL in DNS records?
TTL (time to live) is how many seconds other DNS servers may cache a record before checking again. Our A and MX records have a TTL of 300 seconds, five minutes. Our NS records use 21,600 seconds, six hours.
A lower TTL makes changes reach visitors faster, at the cost of more lookups. Before a planned move, such as switching hosts, lower the TTL a day early. After the move settles, you can raise it again.
A worked example: the records for a new site with business email
Here’s the full set of records you’d create for a new site, example.com, hosted on a server at 203.0.113.10 with Google Workspace for email. The IP and codes are placeholders; your host and email provider give you the real values.
| Type | Name | Value | Why |
|---|---|---|---|
| A | @ | 203.0.113.10 | Loads the website |
| CNAME | www | example.com | www follows the root |
| MX | @ | smtp.google.com, priority 1 | Receives email |
| TXT | @ | v=spf1 include:_spf.google.com ~all | SPF: who may send |
| TXT | google._domainkey | Key from the Google Admin console | DKIM signing |
| TXT | _dmarc | v=DMARC1; p=none; rua=mailto:[email protected] | DMARC, report only |
| TXT | @ | google-site-verification=… | Proves you own the domain |
| CAA | @ | 0 issue "letsencrypt.org" | Optional: limits who issues SSL |
That’s eight records for a working site with authenticated email. Most of them are copy-and-paste from your host and email provider. The two you decide yourself are the DMARC policy (start with p=none) and whether www is a CNAME or its own A record.
Order matters a little. Add the MX, SPF and DKIM records before you switch on email at the provider, so the first messages you send are already authenticated. Add DMARC last, once a test email passes SPF and DKIM.
Common DNS record mistakes and how to fix them
These cause most of the “my DNS is broken” moments:
| Mistake | What you’ll see | Fix |
|---|---|---|
| Two SPF records on one name | SPF fails for all mail | Merge them into one v=spf1 record |
| Editing DNS at the registrar when NS points elsewhere | Changes never show up | Edit at the provider your NS records name |
| Typing the full domain in the name field | Records like www.example.com.example.com | Enter only www or @ |
| CNAME on the root domain | Panel refuses it, or other records break | Use an A record, or your host’s flattening |
| MX pointing at an IP or a CNAME | Mail bounces or delays | Point MX at a hostname with an A record |
| Mail hostname proxied through a CDN | Email apps can’t connect | Set that record to DNS only |
| Over 10 SPF lookups | SPF permerror, more spam-folder mail | Drop unused includes |
| Deleting an unknown TXT record | A tool stops verifying or signing | Check which service owns it first |
One more from our own zone is worth a look. mail.droidcrunch.com returns Cloudflare’s proxy addresses. Our mail runs on Zoho, so nothing depends on it, but on a site that hosts its own mail, a proxied mail hostname breaks email apps. Cloudflare’s proxy passes web traffic, not IMAP or SMTP, so mail records need the grey “DNS only” cloud.
How to check your own DNS records
You don’t need special software. Three ways work on any computer:
# Mac or Linux
dig +short MX droidcrunch.com
dig +short TXT _dmarc.droidcrunch.com
# Windows
nslookup -type=TXT droidcrunch.com
# Any browser
https://dns.google/resolve?name=droidcrunch.com&type=MX
The dig command is built into Mac and Linux. On Windows, nslookup does the same job. And any browser can query Google’s public resolver directly with a URL like the last line, which returns the answer as JSON.
When you’re checking a change, query a public resolver rather than your own router. Your router may still hold the old answer in its cache until the TTL runs out.
How to add or edit DNS records
How to add a DNS record
The same steps work at Hostinger, Cloudflare, GoDaddy or Namecheap.
-
Step 1 of 5
Find where your DNS is hosted
Look up your domain’s NS records with any DNS lookup tool. Edit records at that provider, not wherever you bought the domain.
-
Step 2 of 5
Open the DNS zone editor
It’s usually called DNS Zone, DNS Records or Manage DNS in the domain settings.
-
Step 3 of 5
Choose the record type
Pick A, CNAME, MX or TXT based on what the service asked for. Copy the value exactly, with no extra spaces.
-
Step 4 of 5
Set the name
Use
@for the root domain, or the subdomain alone, such aswwworshop. Most panels add your domain automatically. -
Step 5 of 5
Save and verify
Leave TTL on the default unless you’re planning a move. Then check the record with a public DNS lookup before asking the service to verify it.
Most changes reach the majority of visitors within minutes to a few hours, depending on the old TTL. If a site still doesn’t load, our guide to DNS_PROBE_FINISHED_NXDOMAIN errors covers the usual causes.
Heads-up: our Hostinger link is an affiliate link. If you buy through it, DroidCrunch earns a commission at no extra cost to you.
If you’re setting up a new site, Hostinger includes a DNS zone editor in its dashboard, so you can manage A, CNAME, MX and TXT records in one place. Our Hostinger coupon codes page lists current discounts, and how web hosting works explains where DNS fits in.
Frequently asked questions
What is CNAME flattening?
CNAME flattening lets you point a root domain at a hostname, which standard DNS doesn’t allow. The DNS host looks up the target itself and answers with the final IP addresses. Cloudflare does this by default, and other providers offer it as ALIAS or ANAME records.
Should I use @ or my full domain name in DNS records?
Use @ for the root domain in most DNS panels, since they add your domain automatically. Typing the full domain into the name field can create a record like example.com.example.com. For subdomains, enter only the part before your domain, such as www.
How long do DNS changes take to work?
It depends on the old record’s TTL. With a TTL of 300 seconds, most visitors see the change within minutes. Records with long TTLs, or nameserver changes at the registry level, can take up to a day or two to reach everyone.
Do I need an MX record if I don’t use email on my domain?
No, but without one nobody can email your domain. Some owners add a null MX record, a single MX with priority 0 and a value of a dot, to state clearly that the domain accepts no mail.
Can I have more than one TXT record?
Yes, and most domains do. You can have separate TXT records for Google verification, SPF and other services. The exception is SPF: a domain should have only one SPF record, with every sender listed inside it.
Where do I find my DNS records?
Use any public DNS lookup tool to see your live records, or log in to the provider your NS records point to. That’s often your registrar, your host or Cloudflare. The provider’s zone editor is where you add or change them.
What happens if I delete the wrong DNS record?
Whatever relied on it stops working. Deleting an A record takes your site offline; deleting MX stops incoming email. Before editing, take a screenshot or export of your zone so you can restore any record exactly.
The bottom line
Every DNS record answers one question. A and AAAA say where the site lives, CNAME points one name at another, MX routes email, TXT proves ownership and publishes email rules, and NS says who’s in charge of the rest.
Our own zone shows the pattern most sites follow: Cloudflare for DNS, a separate email provider in MX, and a growing pile of TXT records as you add tools.
Before you edit anything, check your NS records so you change the zone that’s actually live.



