DNS record types explained: A, AAAA, CNAME, MX, TXT, NS, SOA, CAA and more
A practical reference to the DNS record types you will meet when you manage a domain, with examples of what each one is used for.
A DNS zone is a collection of resource records. Each record has a name (for example www.example.com), a type, a TTL that says how long it may be cached, and a value. This guide walks through the record types you will meet most often – the same ones webstriker shows in the "DNS records" table of its report.
A and AAAA – the addresses
An A record maps a name to an IPv4 address, such as 203.0.113.10. An AAAA record ("quad-A") does the same for an IPv6 address, such as 2001:db8::10. A name can have several of each; clients then pick one, which gives simple load distribution and redundancy.
If a domain has A records but no AAAA records, it can only be reached over IPv4. Adding AAAA records (pointing to a server that actually listens on IPv6) makes it reachable for IPv6-only users and networks too – see the IPv6 guide.
CNAME – an alias
A CNAME says "this name is just another name for that one". www.example.com CNAME example.netlify.app means a resolver should look up example.netlify.app instead and use its addresses. CNAMEs are popular with hosting platforms and CDNs, because the provider can change its IP addresses without you touching your DNS.
Two rules trip people up. First, a name with a CNAME may not have any other records – so you cannot put a CNAME on the bare domain (example.com), which always needs SOA and NS records. Many DNS providers offer a workaround called ALIAS, ANAME or "CNAME flattening". Second, MX and NS records should never point at a CNAME.
MX – where email goes
An MX record names the mail servers that accept email for the domain, each with a priority number. Lower numbers are tried first:
example.com. MX 10 mx1.mailprovider.net. example.com. MX 20 mx2.mailprovider.net.
If there is no MX record at all, sending servers fall back to the domain's A/AAAA record. A special "null MX" (MX 0 .) states that the domain does not accept email. MX records are only half of an email setup – the SPF, DKIM and DMARC guide covers the other half.
TXT – free text with many uses
TXT records hold arbitrary text. In practice they are used for machine-readable policies and proofs of ownership: SPF policies (v=spf1 …), DKIM keys, DMARC policies, and verification strings from Google, Microsoft, Facebook and others. A single TXT record can consist of several strings of up to 255 characters each; they are joined together when read, which is how long DKIM keys fit.
NS and SOA – the zone's own administration
NS records list the authoritative name servers for the zone. The same list should be registered at the parent (the TLD) through your registrar; webstriker compares the two.
The SOA record (start of authority) holds administrative data: the primary name server, a contact address (with the @ written as a dot), a serial number that should increase every time the zone changes, and timers that tell secondary servers how often to check for updates. The last SOA field also controls how long a "this name does not exist" answer may be cached.
CAA – who may issue certificates
A CAA record lists the certificate authorities that are allowed to issue TLS certificates for the domain, for example 0 issue "letsencrypt.org". Certificate authorities must check it before issuing. If there is no CAA record, any authority may issue; adding one reduces the risk of a mis-issued certificate.
HTTPS and SVCB – connection hints
The newer HTTPS record (a form of SVCB) tells browsers how to connect before they even open a connection: which protocols are supported (for example alpn=h2,h3 for HTTP/2 and HTTP/3), alternative ports, address hints and Encrypted Client Hello keys. Large CDNs such as Cloudflare publish them automatically.
SRV – services on specific ports
An SRV record points a named service to a host and port, with priority and weight: _autodiscover._tcp.example.com SRV 0 0 443 autodiscover.outlook.com. Microsoft 365/Teams, SIP telephony, XMPP and some mail clients use them.
PTR – reverse DNS
A PTR record works the other way round: it maps an IP address back to a name, in the special zones in-addr.arpa (IPv4) and ip6.arpa (IPv6). They are controlled by whoever owns the IP address, not by the domain owner. See the reverse DNS guide.
DNSKEY, DS and RRSIG – DNSSEC
These three types implement DNSSEC: DNSKEY holds the zone's public keys, RRSIG contains signatures over the other records, and DS records at the parent link the chain of trust together. The DNSSEC guide explains how.
About TTL values
Every record has a TTL in seconds. 3600 means resolvers may keep the answer for an hour. Short TTLs make changes take effect quickly but cause more queries; long TTLs are efficient but slow to update. Before a planned change, lower the TTL a day in advance – the propagation guide shows how.