Skip to content
Sign inStart monitoring

Developer Documentation · RFC Standards

DNS Record Types Cheat Sheet.

An authoritative, developer-first cheat sheet covering syntax, RFC specifications, recommended TTLs, common pitfalls, and direct test links for every standard DNS record.

RFC 1035 StandardsDirect Diagnostic LinksTTL Best Practices
A

Address Record

RFC 1035IPv4

Maps a human-readable hostname to a 32-bit IPv4 address.

Lookup A Records
// Zone File Example:
example.com. 300 IN A 93.184.216.34
Recommended TTL

300s (5 min) to 3600s (1 hr)

Crucial Rule / Limitation

Target MUST be an IPv4 address (e.g. 192.0.2.1), never a protocol scheme (https://), path, or another domain name.

AAAA

IPv6 Address Record

RFC 3596IPv6

Maps a hostname to a 128-bit IPv6 address for modern dual-stack internet routing.

Audit AAAA & IPv6
// Zone File Example:
example.com. 300 IN AAAA 2606:2800:220:1:248:1893:25c8:1946
Recommended TTL

300s (5 min) to 3600s (1 hr)

Crucial Rule / Limitation

Use standard colon-hexadecimal notation. Recommended alongside an A record for zero-downtime dual-stack resolution.

CNAME

Canonical Name

RFC 1034 / 2181Alias

Aliases one domain name to another canonical domain name.

Trace CNAME Chains
// Zone File Example:
www.example.com. 3600 IN CNAME example.com.
Recommended TTL

1800s to 86400s

Crucial Rule / Limitation

CRITICAL RFC RULE: A CNAME cannot coexist with any other record type for the same node. Therefore, standard CNAME cannot be set on the root zone apex (@). Use CNAME flattening / ALIAS at the apex.

MX

Mail Exchanger

RFC 5321Inbound Mail

Specifies the mail servers responsible for accepting incoming email on behalf of the domain, ordered by priority.

Lookup MX Priority
// Zone File Example:
example.com. 3600 IN MX 10 mail.example.com.
Recommended TTL

3600s (1 hr) to 14400s (4 hrs)

Crucial Rule / Limitation

Lower numbers have higher priority (e.g. 10 is tried before 20). The MX target MUST point directly to an A or AAAA hostname, never directly to an IP address or a CNAME.

TXT (SPF)

Sender Policy Framework

RFC 7208Anti-Spoofing

Lists authorized IP addresses and third-party mail providers allowed to send outgoing email for your domain.

Validate SPF (10-Lookup)
// Zone File Example:
example.com. 3600 IN TXT "v=spf1 include:_spf.google.com ~all"
Recommended TTL

3600s

Crucial Rule / Limitation

A domain MUST have only one SPF TXT record. SPF lookups (include, a, mx, ptr, exists, redirect) are strictly limited to 10 DNS queries by RFC; exceeding 10 causes a PermError.

TXT (DMARC)

Domain-based Message Authentication

RFC 7489Policy Enforcement

Instructs receiving mail servers what to do with unauthenticated emails (none, quarantine, or reject) and sets reporting inboxes.

Generate & Verify DMARC
// Zone File Example:
example.com. 3600 IN TXT "v=DMARC1; p=reject; rua=mailto:[email protected]"
Recommended TTL

3600s

Crucial Rule / Limitation

Must be published under the _dmarc subdomain (_dmarc.example.com). Requires either SPF or DKIM to pass in aligned mode.

TXT (DKIM)

DomainKeys Identified Mail

RFC 6376Cryptographic Signature

Publishes the public cryptographic RSA key used by receiving mail transfer agents (MTAs) to verify email header signatures.

Verify DKIM Keys
// Zone File Example:
selector1._domainkey.example.com. 3600 IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSI..."
Recommended TTL

86400s (1 day)

Crucial Rule / Limitation

Published on a selector subdomain: <selector>._domainkey.<domain>. 2048-bit RSA keys are required for compliance by Google & Yahoo since 2024.

NS

Authoritative Name Server

RFC 1035Delegation

Delegates a DNS zone to use the given authoritative name servers.

Audit Name Servers
// Zone File Example:
example.com. 86400 IN NS ns1.cloudflare.com.
Recommended TTL

86400s (24 hrs)

Crucial Rule / Limitation

Best practice requires at least two geographically and topologically independent name servers. Changes take 24–48 hours to fully propagate due to registrar TTL caching.

SOA

Start of Authority

RFC 1035 / 2308Zone Metadata

Contains core authoritative zone parameters: primary master NS, administrator contact email, serial version number, refresh, retry, expire, and negative caching minimum TTL.

Inspect SOA Serial
// Zone File Example:
example.com. 86400 IN SOA ns1.example.com. hostmaster.example.com. (2026102301 7200 3600 1209600 3600)
Recommended TTL

86400s

Crucial Rule / Limitation

Every DNS zone must have exactly one SOA record at the root. The email address uses a dot (.) instead of @ (e.g. hostmaster.example.com).

PTR

Pointer (Reverse DNS)

RFC 1035Reverse DNS

Maps an IP address back to its verified canonical hostname (in-addr.arpa for IPv4, ip6.arpa for IPv6).

Verify PTR / FCrDNS
// Zone File Example:
34.216.184.93.in-addr.arpa. 3600 IN PTR mail.example.com.
Recommended TTL

3600s to 86400s

Crucial Rule / Limitation

PTR records are configured with the ISP or Cloud IP host that owns the IP subnet, not in your domain registrar DNS. Required for sending deliverable SMTP email.

CAA

Certification Authority Authorization

RFC 8659SSL / TLS Security

Specifies which Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your domain.

Verify SSL & CAA
// Zone File Example:
example.com. 3600 IN CAA 0 issue "letsencrypt.org"
Recommended TTL

86400s

Crucial Rule / Limitation

CAs are required by CA/Browser Forum rules to check CAA records before issuing certificates. Prevents rogue or compromised CAs from issuing fraudulent certs.

DS / DNSKEY

DNSSEC Delegation & Zone Signing Keys

RFC 4034 / 4035DNSSEC

Establishes a cryptographic chain of trust from the parent TLD zone (DS hash) down to your zone's public signing keys (DNSKEY).

Validate DNSSEC Chain
// Zone File Example:
example.com. 86400 IN DS 2371 13 2 1F987C...
Recommended TTL

86400s

Crucial Rule / Limitation

A stale or mismatched DS record at the registrar after switching DNS hosts causes validating resolvers (1.1.1.1, 8.8.8.8) to fail resolution with SERVFAIL.

SRV

Service Record

RFC 2782Service Port Locator

Defines the hostname and port number for specific servers running specialized services (SIP, XMPP, LDAP, Minecraft, Active Directory).

Lookup SRV Records
// Zone File Example:
_sip._tcp.example.com. 86400 IN SRV 10 60 5060 bigbox.example.com.
Recommended TTL

3600s to 86400s

Crucial Rule / Limitation

Format: _service._proto.name TTL class SRV priority weight port target. Target cannot be an IP or a CNAME.

Recommended DNS TTL Decision Matrix

Time-To-Live (TTL) controls how many seconds recursive resolvers (ISP caches, 1.1.1.1, 8.8.8.8) keep your record in cache before re-querying your authoritative nameservers.

Deployment ScenarioRecommended TTLTechnical Rationale
Stable Production Web & Mail3600s (1 hr) – 14400s (4 hrs)Reduces DNS queries and latency while providing a reasonable 1–4 hour propagation buffer for unexpected IP changes.
Planned DNS / Server Migration300s (5 min)Lower the TTL 48 hours prior to migration so changes propagate to global resolvers within minutes once switched.
High-Availability / Fast Failover60s – 300sAllows automated health-check balancers to reroute traffic away from degraded server nodes rapidly.
Authoritative NS / SOA86400s (24 hrs)Nameserver infrastructure changes rarely; high TTL protects against lookup spikes and resolver exhaustion.
Security / Anti-Phishing (DMARC, CAA)3600s (1 hr) – 86400s (24 hrs)Balances policy enforcement caching with the flexibility to quickly adjust reporting addresses.
Engineering Playbooks & Deep Dives

Related Troubleshooting & DNS Guides

Apply these RFC rules in production with our step-by-step migration, propagation, email authentication, and DNSSEC validation tutorials.

Verify Any Live Domain Across 6 Global Resolvers

Test real-time DNS records, MX routing, DMARC policies, and SSL certificate chains with zero ads and sub-50ms edge resolution.