Lesson 2 of 9 · 24m
Record Types in Practice: What They Mean When Production Depends on Them
A, AAAA, CNAME, MX, TXT, SRV, CAA, PTR, NS, and SOA — including the edge cases that break mail, certificates, and apex domains.
DNS record types are easy to memorize and expensive to misunderstand. Production failures are rarely "what does TXT mean"; they are apex CNAMEs that invalidate a zone, missing CAA records that block issuance during an incident, or IPv6 records added by a wizard and forgotten for three years.
Address records are routing policy
$ dig +short A cloudflare.com
104.16.132.229
$ dig +short AAAA cloudflare.com
2606:4700::6810:84e5A is IPv4 and AAAA is IPv6. Multiple answers are normal. If you publish AAAA, some clients will prefer it even when the IPv6 path is broken; never publish IPv6 "for completeness" unless you monitor it as a first-class path.
CNAME: one alias, no siblings
A CNAME cannot coexist with other records at the same owner name. This is invalid:
sudosecurity.org. 300 IN CNAME cdn.provider.net.
sudosecurity.org. 300 IN MX 10 mail.sudosecurity.org.The apex must have SOA and NS, so it can never be a standards-compliant CNAME. Provider ALIAS/ANAME features synthesize answers; they are not ordinary CNAME behavior.
Mail is a small distributed system
sudosecurity.org. 300 IN MX 10 mail.sudosecurity.org.
sudosecurity.org. 300 IN TXT "v=spf1 mx -all"
_dmarc.sudosecurity.org. 300 IN TXT "v=DMARC1; p=reject; rua=mailto:dmarc@sudosecurity.org"MX points to hostnames, not IP addresses. SPF is TXT evaluated by receivers you do not control. DKIM keys live under selector names such as s1._domainkey; DMARC lives at _dmarc. Changing MX without aligning SPF, DKIM, reverse DNS, and TLS is only the visible quarter of the migration.
Service discovery and certificate control
_sip._tcp.sudosecurity.org. 300 IN SRV 10 60 5060 sip.sudosecurity.org.
sudosecurity.org. 300 IN CAA 0 issue "letsencrypt.org"
sudosecurity.org. 300 IN CAA 0 iodef "mailto:security@sudosecurity.org"SRV names protocol, priority, weight, port, and target. CAA restricts which certificate authorities may issue. If renewal suddenly fails with a CAA error, someone changed either the CA or DNS — look there before reinstalling certbot.
PTR, NS, and SOA
Reverse DNS lives under in-addr.arpa or ip6.arpa and is delegated by the address owner, often the hosting provider rather than your DNS provider. For mail, PTR should point to a hostname whose forward record points back. NS declares the authoritative servers; SOA carries serial, secondary timing, and negative-cache policy.
Field notes
- A trailing dot is part of a fully qualified name:
mailandmail.sudosecurity.org.are not interchangeable in zone data. - TXT is not a miscellaneous database; SPF, DKIM, DMARC, and verification tokens all have parsers that care about quoting.
- CAA is inherited downward unless overridden, so an apex restriction applies to subdomains too.
- Removing a record does not remove cached copies; TTLs decide how long the old truth survives.
Was this lesson helpful?