Skip to content

Common DNS record types

A quick reference for A, AAAA, CNAME, MX, TXT, NS, SRV, CAA and PTR records, with examples.

3
Sections
1 min
Read time

Records

TypePurposeExample value
AName to IPv4 address203.0.113.10
AAAAName to IPv6 address2001:db8::10
CNAMEAlias of another name (not allowed at the zone root)example.com.
MXMail servers for the domain, with priority (lower is preferred)10 mail.example.com.
TXTText: SPF, DKIM, DMARC, site verification"v=spf1 mx ~all"
NSNameservers responsible for the zonens1.example.net.
SOAZone details: primary server, serial number, timerscreated by the DNS provider
SRVHost and port of a service (VoIP, chat, Microsoft 365)10 5 5060 sip.example.com.
CAAWhich certificate authorities may issue SSL for the domain0 issue "letsencrypt.org"
PTRReverse DNS: IP address back to a name (set by the IP owner)mail.example.com.

Names you will see

NameMeaning
@The zone root, e.g. example.com itself
wwwwww.example.com
*Wildcard: any name not defined elsewhere
_dmarcWhere the DMARC policy lives
selector._domainkeyWhere a DKIM public key lives

TTL values

TTLTypical use
300 (5 minutes)Before and during a planned change
3600 (1 hour)A common default
86400 (1 day)Records that rarely change, such as NS

A trailing dot (example.com.) marks a full name. Some DNS panels add it for you; others treat a name without it as relative to your zone.