Docs / DNS & Domains / Understanding DNS Record Types: A Complete Reference

Understanding DNS Record Types: A Complete Reference

By Admin · Feb 25, 2026 · Updated Apr 23, 2026 · 204 views · 1 min read

Common DNS Record Types

TypePurposeExample
AMaps domain to IPv4 addressexample.com → 93.184.216.34
AAAAMaps domain to IPv6 addressexample.com → 2606:2800:220:1::
CNAMEAlias to another domainwww → example.com
MXMail server for the domain10 mail.example.com
TXTArbitrary text (SPF, DKIM, verification)v=spf1 ip4:... -all
NSAuthoritative nameserversns1.example.com
SOAZone authority informationPrimary NS, admin email, serials
SRVService location_sip._tcp.example.com
CAACertificate Authority Authorization0 issue "letsencrypt.org"
PTRReverse DNS (IP to domain)34.216.184.93 → example.com

A Record

The most fundamental record type, pointing a domain to an IP address:

example.com.    300    IN    A    198.48.63.241

CNAME Record

Creates an alias. Cannot coexist with other record types at the same name:

www.example.com.    300    IN    CNAME    example.com.

MX Record

Specifies mail servers with priority (lower = preferred):

example.com.    300    IN    MX    10    mail.example.com.
example.com.    300    IN    MX    20    backup-mail.example.com.

TXT Record

Used for SPF, DKIM, domain verification, and more:

example.com.    300    IN    TXT    "v=spf1 ip4:198.48.63.240/28 -all"

CAA Record

Controls which Certificate Authorities can issue SSL certificates for your domain:

example.com.    300    IN    CAA    0 issue "letsencrypt.org"
example.com.    300    IN    CAA    0 issuewild "letsencrypt.org"

Querying DNS Records

dig example.com A +short
dig example.com MX +short
dig example.com TXT +short
dig example.com ANY +noall +answer

Was this article helpful?