DNS record types quick reference
Each record type has a specific purpose. Using the wrong type is a common source of mail delivery failures, certificate issuance errors, and broken services.
| Type | Purpose | Typical TTL | Value format | Notes |
|---|---|---|---|---|
| A | Maps a hostname to an IPv4 address | 300 – 3 600 s | 192.0.2.1 | Most common record. Use low TTL if the IP may change. |
| AAAA | Maps a hostname to an IPv6 address | 300 – 3 600 s | 2001:db8::1 | Required for dual-stack deployments. |
| MX | Mail server for the domain | 3 600 – 86 400 s | 10 mail.example.com. | Priority value (lower = preferred). Needs matching A/AAAA. |
| TXT | Free-text data — SPF, DKIM, DMARC, domain verification | 300 – 3 600 s | "v=spf1 include:… ~all" | Multiple TXT records allowed. SPF must be only one. |
| CNAME | Alias — points hostname to another hostname | 300 – 3 600 s | target.example.com. | Cannot be used at the zone apex (root domain). |
| NS | Authoritative nameservers for the zone | 86 400 s | ns1.example.com. | Changed at the registrar. Propagation can take up to 48 h. |
| SOA | Zone metadata — serial, refresh, retry, expire, minimum TTL | 86 400 s | ns1.example.com. admin.example.com. … | One SOA per zone. Serial must increment on every zone change. |
| SRV | Service location — protocol, port, priority, weight | 300 – 3 600 s | 10 20 443 target.example.com. | Used by SIP, XMPP, Minecraft, and others. |
| PTR | Reverse lookup — IP address to hostname | 3 600 s | host.example.com. | Managed by the IP block owner, not the domain registrar. |
| CAA | Specifies which CAs may issue TLS certificates for the domain | 3 600 s | 0 issue "letsencrypt.org" | Checked by CAs before issuance. Recommended for all domains. |