DNS record types cheat sheet

Cheat Sheet

DNS Record Types Cheat Sheet

Quick reference for all common DNS record types used in system administration, networking, and cloud infrastructure.

Quick Reference

Most common record
A
IPv6 record
AAAA
Mail routing
MX
Name alias
CNAME
Text / SPF / DKIM
TXT
Authoritative servers
NS
Tip: DNS record types are case-insensitive. A, a, and a all refer to the same record type. TTL (Time To Live) controls how long resolvers cache a record — lower TTL means faster propagation after changes.

Address Records

Records that map a hostname to an IP address. These are the most fundamental DNS records.

TypeFull nameMaps toExample valueUse case
AAddressIPv4 address192.0.2.1Point domain to server IP
AAAAIPv6 AddressIPv6 address2001:db8::1Point domain to IPv6 server
CNAMECanonical NameAnother hostnamewww.example.comAlias — redirect one name to another
ALIASAlias (ANAME)Another hostnameexample.comRoot domain alias (not all providers)
CNAME restriction: A CNAME record cannot coexist with other records for the same name. You cannot use CNAME at the zone apex (root domain like example.com) — only on subdomains like www.example.com.

Mail Records

Records that control email routing and authentication for a domain.

TypeFull namePurposeExample value
MXMail ExchangerRoutes email to mail server10 mail.example.com
TXTText (SPF)Defines authorized sendersv=spf1 include:_spf.google.com ~all
TXTText (DKIM)Email signature verificationv=DKIM1; k=rsa; p=MIGf...
TXTText (DMARC)Email policy enforcementv=DMARC1; p=reject; rua=mailto:...
MX priority: Lower number = higher priority. 10 mail1.example.com is preferred over 20 mail2.example.com. Multiple MX records provide redundancy.

Infrastructure Records

Records that define the DNS zone structure and infrastructure configuration.

TypeFull namePurposeExample value
NSName ServerAuthoritative name servers for zonens1.example.com
SOAStart of AuthorityZone metadata and primary NSns1.example.com admin.example.com 2024...
PTRPointerReverse DNS — IP to hostnameserver.example.com
SRVServiceService location (port + host)10 5 443 server.example.com
CAACert Authority AuthWhich CAs may issue SSL certs0 issue "letsencrypt.org"

All DNS Record Types — Full Reference

Complete reference table of all common DNS record types sorted by category.

TypeFull nameRFCDescription
AAddressRFC 1035Maps hostname to IPv4 address
AAAAIPv6 AddressRFC 3596Maps hostname to IPv6 address
CNAMECanonical NameRFC 1035Alias from one name to another
MXMail ExchangerRFC 1035Mail server for the domain
TXTTextRFC 1035Arbitrary text — SPF, DKIM, DMARC, verification
NSName ServerRFC 1035Authoritative name servers for zone
SOAStart of AuthorityRFC 1035Zone metadata, serial, TTL defaults
PTRPointerRFC 1035Reverse DNS — IP address to hostname
SRVServiceRFC 2782Service port and host location
CAACert Authority AuthRFC 6844Authorized certificate authorities
NAPTRNaming Authority PointerRFC 3403Rewriting rules — used in VoIP/SIP
TLSATLS AuthenticationRFC 6698Binds TLS certificate to domain (DANE)
DSDelegation SignerRFC 4034DNSSEC — links child zone to parent
DNSKEYDNS KeyRFC 4034DNSSEC public key for zone
SSHFPSSH FingerprintRFC 4255SSH public key fingerprint
HINFOHost InfoRFC 1035CPU and OS type (rarely used)

SRV Record Format

SRV records define the location of services. The format is more complex than other record types.

_service._proto.name TTL IN SRV priority weight port target
FieldDescriptionExample
_serviceService name (e.g. _https, _sip)_https
_protoProtocol (_tcp or _udp)_tcp
priorityLower = higher priority10
weightLoad balancing weight5
portTCP/UDP port number443
targetTarget hostnameserver.example.com
Real example: _sip._tcp.example.com 3600 IN SRV 10 5 5060 sip.example.com — routes SIP traffic to port 5060.

Frequently Asked Questions

What is the difference between A and CNAME records?
An A record maps a hostname directly to an IPv4 address. A CNAME record is an alias that maps one hostname to another hostname. CNAMEs are useful for subdomains that should follow the same IP as the root domain, but they cannot be used at the zone apex (root domain).
Why can’t I use a CNAME at the root domain?
The DNS specification (RFC 1035) prohibits CNAME records from coexisting with other record types at the same name. Since the zone apex always has at least SOA and NS records, a CNAME is not allowed there. Use ALIAS or ANAME records (provider-specific) or an A record instead.
What is TTL and what value should I use?
TTL (Time To Live) is measured in seconds and controls how long DNS resolvers cache a record. Use lower values (300–900 seconds) before planned changes, and higher values (3600–86400 seconds) for stable records to reduce DNS lookup overhead. Common values: 300 (5 min), 3600 (1 hour), 86400 (24 hours).
How do I verify a DNS record was applied?
Use nslookup example.com, dig example.com A, or Resolve-DnsName example.com in PowerShell. Online tools like MXToolbox or Google Admin Toolbox also show current DNS records. Remember that propagation can take up to the TTL value of the previous record.
What is reverse DNS and when do I need it?
Reverse DNS (PTR records) maps an IP address back to a hostname. It is primarily used by mail servers to verify sender identity — many spam filters reject mail from IPs without a matching PTR record. Reverse DNS is managed by your IP address provider, not your domain registrar.