DNS record types explained (A, AAAA, CNAME, MX, TXT, SRV, CAA)

Updated 2026-10-29

On this page
  1. The record types
  2. Names
  3. TTL
  4. Rules that often catch people out
  5. Common questions

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

TypeWhat it doesRecord value formatExample
APoints a name to an IPv4 addressAn IPv4 address203.0.113.10
AAAAPoints a name to an IPv6 addressAn IPv6 address2001:db8::10
CNAMEMakes a name an alias of another hostnameA hostname, ending with a dotexample.com.
MXSays which server receives the domain's emailA hostname ending with a dot, plus Priority 0–65535mail.example.com. with priority 0
TXTFree text: SPF, DKIM, DMARC, verification codes1–2048 printable characters, without surrounding quotesv=spf1 +a +mx ~all
NSDelegates a name to other nameserversA hostname, ending with a dotns1.example.net.
SRVLocates a service (calls, chat, autodiscovery)weight port target, plus Priority5 5060 sip.example.com. with priority 10
CAASays which certificate authorities may issue certificatesflag tag "value" with tag issue, issuewild or iodef0 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, NS and SRV targets, 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 CNAME must not have an A, MX or TXT record too, and the domain itself (@) should not be a CNAME. The DNS server refuses such a zone.
  • CAA and free certificates. If you add CAA records, include 0 issue "letsencrypt.org", otherwise the free certificates cannot be issued or renewed.
  • Only one SPF record. Edit the existing TXT record that starts with v=spf1 instead 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).

Was this article helpful?

Still stuck?

Ask the AI about your exact situation — it answers from this knowledge base — or contact us.