DNS Record Types

The most common DNS record types and what they are used for


TypePurposeExample
AMaps a domain to an IPv4 addressexample.com → 93.184.216.34
AAAAMaps a domain to an IPv6 addressexample.com → 2606:2800:...
CNAMEAlias that points a name to another domainwww.example.com → example.com
MXMail server responsible for the domainexample.com → mail.example.com
NSAuthoritative name server for the domainexample.com → ns1.example.com
TXTArbitrary text, used for SPF, DKIM and verification"v=spf1 include:_spf.example.com ~all"
SOAStart of Authority: zone metadata and serial numberprimary name server and admin email
PTRReverse DNS: maps an IP back to a hostname34.216.184.93.in-addr.arpa → example.com
SRVService locator: host and port for a service_sip._tcp.example.com
CAACertificate Authority Authorization: which CAs may issue0 issue "letsencrypt.org"

Email authentication records

These are published as TXT records and work together to protect a domain's email:

RecordPurpose
SPFLists the servers allowed to send mail for the domain
DKIMSigns outgoing mail so receivers can verify it was not altered
DMARCTells receivers what to do with mail that fails SPF or DKIM