The 9 DNS record types you'll actually use

DNS has dozens of record types in the wild โ€” most are obscure or deprecated. These nine cover ~99% of real-world setups.

TypeWhat it points toCommon use
AIPv4 addressexample.com โ†’ 192.0.2.1
AAAAIPv6 addressexample.com โ†’ 2001:db8::1
CNAMEAnother hostnamewww.example.com โ†’ example.com
MXMail serverWhere email for this domain goes
TXTArbitrary textSPF, DKIM, domain verification
NSName serverWhich servers are authoritative for this zone
SOAZone metadataOne per zone, contains serial and refresh timing
SRVService locationSIP, XMPP, Microsoft AD service discovery
CAACert authority authorizationLimits which CAs can issue certs for the domain

A vs. AAAA

"A" is for IPv4, "AAAA" (four As, "quad-A") is for IPv6. The names predate IPv6 โ€” the original record type was just A; quad-A reflects the four-times-larger address space. A domain can have both, and modern resolvers prefer AAAA when available.

CNAME โ€” what it is and what it isn't

A CNAME makes one hostname an alias for another. Your DNS server returns the target's records when asked.

Critical limitation: CNAMEs cannot coexist with other records at the same name. So you can't have a CNAME at the apex (example.com itself) if you also have MX records there โ€” and you usually do. That's why www.example.com can be a CNAME but example.com can't. Modern DNS providers offer "ALIAS" or "ANAME" records to work around this.

MX records and priority

MX records have a priority number. Lower = higher priority. A typical setup:

PriorityMail server
10mx1.example.com
20mx2.example.com
30backup.example.com

Senders try the lowest-priority server first. Multiple records at the same priority round-robin.

TXT records โ€” the workhorse

The most-used record type after A. TXT records hold:

SOA and NS โ€” the boring but important ones

Every DNS zone has exactly one SOA record. It contains:

NS records list the name servers authoritative for the zone. The parent zone (e.g., the .com servers) also publishes NS records pointing at the same hosts โ€” this is called "delegation."

CAA โ€” the one most people don't know about

CAA (Certification Authority Authorization) records tell certificate authorities whether they're allowed to issue TLS certs for your domain. If you only use Let's Encrypt, a record like:

example.com.  CAA  0 issue "letsencrypt.org"

...prevents any other CA from issuing a cert for your domain. Useful defense against certain attack vectors.

Which DNS records I actually deal with in real work

DNS has dozens of record types defined over the years, but a working network administrator interacts regularly with maybe a dozen. Knowing what each does and when to reach for it makes DNS management much less mysterious than it seems.

Every DNS record has the same basic shape: a name, a type, a TTL, and a value. The name is what you look up (example.com, mail.example.com). The type is what kind of information you want (A for IPv4, MX for mail, etc.). The TTL is how long resolvers can cache the answer. The value is the actual data โ€” an IP address for A records, a hostname for CNAME, a priority-plus-host for MX, and so on.

A and AAAA in real usage

A records map hostnames to IPv4 addresses. AAAA records do the same for IPv6. When your browser wants to reach example.com, it queries A (and probably AAAA) records to figure out which IP to connect to.

Multiple A records for the same name is "round-robin DNS" โ€” resolvers return them in varying orders, and clients typically try the first, falling back to others if the first fails. This is a poor-man's load balancer that works for simple cases but isn't intelligent (doesn't consider server health, geographic proximity, or actual load).

Modern deployments often use AAAA records to enable IPv6 connectivity. Missing AAAA on a site that supports IPv6 makes it unreachable to IPv6-only clients (a small but growing minority). If you're running services that should work everywhere, make sure both A and AAAA are published.

CNAME and its pitfalls

CNAME (Canonical Name) makes one hostname an alias for another. When a resolver looks up a CNAME, it follows the alias and returns the target's records instead.

Common use: pointing customer-facing subdomains at CDN endpoints. www.example.com might CNAME to example-com.cdnprovider.net, so the CDN can change its underlying IPs without the customer having to update DNS.

Two gotchas:

MX records and mail flow

MX records tell the world where to send email for a domain. Each MX record has a priority and a hostname. Lower priority means "try this one first." Common setup: a primary MX with priority 10 and a backup with priority 20.

The hostname pointed at by MX must resolve to actual IPs (A or AAAA records). CNAMEs are not allowed as MX targets per RFC 5321, though some tolerant senders accept them anyway.

Missing MX means the domain can't receive mail. Wrong MX means mail goes to the wrong destination. Every domain that receives mail should have MX records; every domain that doesn't receive mail should either publish "null MX" (a single MX record pointing to "." with priority 0) or an SPF record indicating no mail is sent.

TXT records: the free-form field

TXT records hold arbitrary text. Because they're flexible, they've become the mechanism for many purposes:

A typical medium-sized domain might have a dozen TXT records for various purposes. When auditing, sorting through which is which reveals what services are integrated with the domain.

SOA and NS

SOA (Start of Authority) is the "root" record of a DNS zone. It contains administrative info: the primary nameserver, the admin contact, serial number for zone tracking, and various timers. There's exactly one SOA per zone.

NS records identify the authoritative nameservers for the zone. Every domain must have NS records at the top level, and typically has at least two nameservers for redundancy.

These records rarely need touching manually. Your DNS provider sets them when you delegate the domain to them. If you're moving DNS providers, you update the NS records at your registrar to point at the new provider, and after propagation, everything else follows automatically.

CAA โ€” the underused security record

Certificate Authority Authorization records specify which CAs are allowed to issue certificates for the domain. If example.com has a CAA record saying "only Let's Encrypt can issue certificates for me," then when any other CA receives a certificate request for example.com, they're required by the CA/Browser Forum baseline requirements to reject it.

This is a real security improvement. Without CAA, any of the ~100 publicly-trusted CAs could theoretically issue a certificate for your domain (some CAs have been compromised historically and issued fraudulent certificates). With CAA, you constrain issuance to only the CAs you actually use.

Most domains don't have CAA records. Adding one is a small effort that reduces attack surface. If you use Let's Encrypt, the CAA record is example.com CAA 0 issue "letsencrypt.org".

PTR and reverse DNS

PTR records map IP addresses back to hostnames. They live in the special reverse zones (in-addr.arpa for IPv4, ip6.arpa for IPv6) delegated based on IP allocation. See the Reverse DNS tool for lookups.

PTR records matter most for mail. Mail servers with missing or generic PTR records have deliverability problems. Setting a proper PTR record for your mail server's IP (usually requires the IP owner's cooperation) meaningfully improves inbox placement.

SRV records

SRV records identify which host and port to contact for a specific service. Used heavily by Active Directory (_ldap._tcp.example.com points at domain controllers), Matrix, XMPP, and some VoIP configurations. Format is priority, weight, port, and target hostname.

Ordinary web services rarely use SRV. If you're setting up Kerberos, AD, or federated protocols, you'll see them.

Less-common types worth knowing about

DNSKEY, DS, RRSIG, NSEC, NSEC3

DNSSEC records. Add cryptographic verification to DNS responses. Deployment is common at the TLD level and increasingly at large services, but many domains still don't use it.

TLSA

DANE records that pin specific TLS certificates or public keys to DNS. Sees limited use in mail (MTA-STS is more common) and even less in general web.

HTTPS and SVCB

Newer record types (RFC 9460) that let clients discover HTTPS endpoints, ALPN support, and connection parameters before making a connection. Adopted by Cloudflare, Google, and other major CDN operators. Useful for optimizing initial connection latency.

Related tools

For querying a domain's DNS records across multiple resolvers, use the DNS Lookup tool. For checking DNS propagation of a change, use the DNS Propagation Checker. For a comprehensive view of a domain's infrastructure (DNS plus IP ownership), use the Domain Infrastructure tool. For email-specific DNS validation (MX, SPF, DKIM, DMARC), use the Email Health Check.