Networking

DNS Record Types

Common DNS resource record types — A, AAAA, CNAME, MX, TXT, and friends.

Common records

TypePurposeExample value
AIPv4 address192.0.2.1
AAAAIPv6 address2001:db8::1
CNAMEAlias to another namecdn.example.net.
MXMail server10 mail.example.com.
TXTFree-form text (SPF, DKIM, verification)"v=spf1 include:_spf.google.com ~all"
NSAuthoritative name serverns1.example.com.
SOAStart of authority (zone metadata)ns1 admin 2026041901 …
PTRReverse DNS (IP → name)host.example.com.
SRVService location (port + target)10 5 5060 sip.example.com.
CAACert-authority authorization0 issue "letsencrypt.org"
DNSKEYDNSSEC public key256 3 8 AwEAA…
DSDNSSEC delegation signer12345 8 2 ABCDEF…
TLSATLS certificate association (DANE)3 1 1 5a3b…
SVCB / HTTPSService binding (HTTP/3, ECH hints)1 . alpn=h3

Notes

  • CNAME cannot coexist with other records at the same name (including MX).
  • TXT is widely misused — prefer purpose-specific types when one exists.
Was this article helpful?