DNS record types, explained

A zone is a list of records, and each type answers one question about your domain: where the site is, where the mail goes, who is allowed to issue certificates. Here is every type our lookup queries, what it holds, and what breaks when it is wrong.

A DNS record is one instruction in your domain's zone, and its type says what kind of instruction it is. A and AAAA records point a name at an IPv4 or IPv6 address. CNAME aliases one name to another. MX says which servers accept mail. NS names the authoritative servers for the zone, and SOA carries the zone's administrative parameters. TXT holds free-form strings, which is how SPF, DKIM and DMARC are published. CAA restricts which certificate authorities may issue for the name, and SRV advertises the host and port of a specific service.

A record

A

Maps a hostname to an IPv4 address. It is the record that answers "where is this website".

What it means for you

If a site is unreachable and the domain is registered and delegated, the A record is the first thing to look at. Changing it is how a site moves hosts, and because resolvers cache the old answer for the length of its TTL, the move is not instant for everyone. Multiple A records on one name are normal and give a simple form of load spreading.

Related terms AAAA record CNAME record TTL

Monitor it DNS change detection

Tool Look up a domain's DNS records

AAAA record

AAAA

The IPv6 equivalent of an A record: it maps a hostname to an IPv6 address.

What it means for you

A name can carry both A and AAAA records, and clients on IPv6 networks will usually prefer the AAAA. That makes a stale or wrong AAAA a nasty failure mode: the site works for most people and is broken for everyone on IPv6, which looks like an intermittent fault rather than a DNS error.

Related terms A record DNS propagation TTL

Monitor it DNS change detection

Tool Look up a domain's DNS records

CNAME record

CNAME

Aliases one name to another, so the resolver looks the second name up instead. Used to point a subdomain at a provider's hostname.

What it means for you

CNAME is how you hand a name over to a service whose addresses you do not control, which is why CDN and SaaS setup instructions almost always ask for one. Two rules trip people up: a name with a CNAME may hold no other records, and that includes MX, so a root domain carrying mail cannot be a CNAME. Providers work around the second with proprietary flattening at the zone level.

Related terms A record TTL SOA record

Monitor it DNS change detection

Tool Look up a domain's DNS records

MX record

MX

Names the mail servers that accept email for the domain, each with a priority number. The lowest number is tried first.

What it means for you

No MX record means no inbound mail, and the bounce a sender gets will usually blame the recipient rather than the zone. MX records are also the first casualty of a hosting migration, because moving a site's A record at a provider that manages the whole zone can quietly take the mail with it. The priority numbers are preference only: they have no effect on delivery order beyond which host is attempted first.

Related terms SPF DMARC TXT record

Monitor it DNS change detection

Tool Check a domain's mail setup

NS record

NS

Names the authoritative nameservers for a zone. The registry publishes these for your domain, and they decide who answers every other question about it.

What it means for you

NS records are the one part of DNS that lives in two places: at the registry, set through your registrar, and inside the zone itself. When those two disagree, resolution becomes unpredictable in ways that look random. Changing nameservers is the single most disruptive DNS change you can make, because it hands the entire zone to a different provider at once. If the new provider does not already hold a copy of every record, the ones you forgot disappear the moment delegation changes.

Related terms SOA record Registry DNSSEC

Monitor it DNS change detection

Tool Look up a domain's nameservers

TXT record

TXT

Holds arbitrary text. It has no protocol meaning of its own, which is why so many systems use it to publish policy and verification strings.

What it means for you

SPF, DKIM and DMARC are all published as TXT records, as are most domain ownership verifications. Because anything can be stored there, a zone accumulates them, and old verification strings from services you no longer use are the commonest zone clutter. Two live SPF records or two DMARC records at the same name are worse than clutter: receivers apply neither, so the policy silently stops working.

Related terms SPF DKIM DMARC

Monitor it DNS change detection

Tool Look up a domain's DNS records

SOA record

SOA

The start of authority: one record per zone, carrying the primary nameserver, the administrative contact and the timers that govern zone transfers and negative caching.

What it means for you

You rarely edit an SOA, but it tells you things nothing else does. Its serial number changes whenever the zone is edited, so comparing serials across nameservers shows whether they are in sync. Its negative caching TTL decides how long a resolver remembers that a name does not exist, which is why a newly added record can appear to be ignored for longer than its own TTL would suggest.

Related terms NS record TTL DNS propagation

Monitor it DNS change detection

Tool Look up a domain's DNS records

CAA record

CAA

Lists the certificate authorities permitted to issue certificates for the domain. A CA is required to check it before issuing.

What it means for you

CAA is a cheap and underused control against mis-issuance: with one in place, a CA that is not named must refuse. The trade-off is operational. If you add a CAA for one provider and later move to another, issuance fails with an error that points at the CA rather than at your zone, and renewals break at the worst moment. Include every authority you actually use, including the one behind your hosting platform.

Related terms TXT record DNSSEC TTL

Monitor it DNS change detection

Tool Check a domain's certificate

SRV record

SRV

Advertises the hostname and port of a specific service for a domain, under a name that encodes the service and protocol.

What it means for you

SRV lets a client discover where a service runs without the port being hardcoded, which is how SIP, XMPP and various Microsoft services find their endpoints. Its name format is strict and easy to get wrong, and a typo in the service or protocol label produces a record that resolves to nothing rather than an error.

Related terms A record TXT record TTL

Tool Look up a domain's DNS records

DS record

The Delegation Signer record: a hash of your zone's signing key, published in the parent zone by the registry so a resolver can verify that the DNSSEC signatures in your zone are the right ones.

What it means for you

The DS record is the link in the chain of trust, and it is the only DNS record that does not live in your own zone: you hand it to your registrar, the registry publishes it above you. That split is why DNSSEC breaks the way it does. Move DNS provider and the new provider signs with a new key, but the old DS record is still pointing at the old one, so every validating resolver concludes the answers are forged and refuses them. The domain does not resolve slowly, it stops resolving, and only for the roughly a third of the internet behind a validating resolver, which makes it look intermittent. The safe order is to publish the new key, add the new DS record, wait for the old one to age out of caches, and only then retire the old key.

Related terms DNSSEC NS record Registrar

Tool Look up a domain's DNS records

DNS propagation

The period after a DNS change during which some resolvers still answer with the old value, because they cached it before the edit.

What it means for you

Nothing is actually propagating: authoritative servers have the new value immediately, and every other resolver keeps the old one until the TTL it was handed expires. That is why lowering a record's TTL a day before a planned change is the only thing that genuinely shortens the window, and why checking from one machine tells you almost nothing. Compare several independent resolvers instead.

Related terms TTL SOA record A record

Tool Check propagation across resolvers