DNS record types explained (A, AAAA, CNAME, MX, TXT, SRV, CAA)
The Zone Editor (customers) and DNS Zones (administrators and resellers) accept eight record types. Each one is checked before it is saved; if the value has the wrong format you see an error and nothing is changed.
The record types
| Type | What it does | Record value format | Example |
|---|---|---|---|
| A | Points a name to an IPv4 address | An IPv4 address | 203.0.113.10 |
| AAAA | Points a name to an IPv6 address | An IPv6 address | 2001:db8::10 |
| CNAME | Makes a name an alias of another hostname | A hostname, ending with a dot | example.com. |
| MX | Says which server receives the domain's email | A hostname ending with a dot, plus Priority 0–65535 | mail.example.com. with priority 0 |
| TXT | Free text: SPF, DKIM, DMARC, verification codes | 1–2048 printable characters, without surrounding quotes | v=spf1 +a +mx ~all |
| NS | Delegates a name to other nameservers | A hostname, ending with a dot | ns1.example.net. |
| SRV | Locates a service (calls, chat, autodiscovery) | weight port target, plus Priority | 5 5060 sip.example.com. with priority 10 |
| CAA | Says which certificate authorities may issue certificates | flag tag "value" with tag issue, issuewild or iodef | 0 issue "letsencrypt.org" |
Names
@means the domain itself. An empty name is saved as@.- Other names are the part before the domain:
www,mail,_dmarc,_sip._tcp. *is a wildcard: it answers for any name that has no record of its own.- Letters, digits,
-and_are allowed in each part.
TTL
The TTL (time to live) is how many seconds other DNS servers may keep the answer before asking again. It must be between 60 (1 minute) and 604800 (1 week). New records get the server's default, normally 14400 (4 hours). Lower it a day before you plan to move a record, so the change spreads fast.
Rules that often catch people out
- The trailing dot. In
CNAME,MX,NSandSRVtargets,mail.example.org.(with the dot) is a full name. Without the dot, your domain is added:mail.example.org.example.com. - A CNAME cannot share its name with other records. A name that has a
CNAMEmust not have anA,MXorTXTrecord too, and the domain itself (@) should not be aCNAME. The DNS server refuses such a zone. - CAA and free certificates. If you add
CAArecords, include0 issue "letsencrypt.org", otherwise the free certificates cannot be issued or renewed. - Only one SPF record. Edit the existing
TXTrecord that starts withv=spf1instead of adding a second one.
Common questions
Should I use an A record or a CNAME for www?
Both work. New zones use www CNAME example.com., so www follows the domain's address automatically.
Can I add other types such as PTR, DS or SOA?
No. The SOA record is managed for you. Reverse DNS (PTR) is set by whoever owns the IP address. DS records belong at the registrar (see DNSSEC).
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- How to add or change DNS records in the Zone Editor
Add, change and delete DNS records (A, CNAME, MX, TXT and more) for your domain in the control panel's Zone Editor, with examples and rules.
- DNS changes not working or not showing yet
You changed a DNS record or nameservers but the old address still shows. Find out why (DNS hosted elsewhere, TTL, missing trailing dot) and how to fix it.
- SSL certificate not issued (status Failed): causes and fixes
The free SSL certificate shows Failed on the SSL/TLS page. Find the cause from the error shown (CAA, 404 challenge, timeout, rate limit, wildcard) and fix it.