DNS records explained: A, AAAA, CNAME, MX, TXT, SRV and CAA
· 6 min read
DNS is the address book of the internet: it turns your domain name into the servers that answer for it. Each record answers one question. Here is what the common types do and when you need them.
The records at a glance
| Type | What it does | Example value |
|---|---|---|
| A | Points a name at a server's IPv4 address | 203.0.113.10 |
| AAAA | Points a name at a server's IPv6 address | 2001:db8::1 |
| CNAME | Makes a name an alias of another host name | shops.example-host.com |
| MX | Says which server receives the domain's email | 10 mail.example.com |
| TXT | Free text, used for verification and email policies | v=spf1 include:_spf.example.com ~all |
| SRV | Where to find a service (e.g. calling or chat) | 10 5 5060 sip.example.com |
| CAA | Which certificate authorities may issue certificates | 0 issue "letsencrypt.org" |
Names: @, www and subdomains
Every record has a name. "@" means the domain itself (example.com); "www" means www.example.com; any other word makes a subdomain, such as shop.example.com.
A rule that trips people up: CNAME
A name that has a CNAME cannot have any other record. That is why the domain itself (@) usually uses A records instead of a CNAME, and why "www" is often the CNAME. Our DNS page checks this before saving and tells you what to change.
TTL: how long answers are remembered
TTL (time to live) is how many seconds other servers may keep an answer before asking again. One hour (3600) is a sensible default. Lower it to a few minutes a day before a planned change, so the change is picked up quickly.
When do changes take effect?
Records saved in your control panel are used once your domain uses our nameservers. After a change, servers that still remember the old answer keep it until its TTL runs out.
