What are DNS records?

What are DNS records?

DNS records are the individual instructions inside the Domain Name System that tell resolvers how to answer questions about a domain. They are the reason a browser can turn www.example.com into an IP address, a mail server can find where to deliver email, and a security team can publish policy for sender authentication or DNSSEC validation.

A domain zone is made up of record sets. Each record has a name, a type, a value, and a TTL. The name is the label being queried, such as example.com or api.example.com. The type defines the kind of answer, such as A, AAAA, CNAME, MX, TXT, NS, SOA, or HTTPS. The value is the data returned. The TTL, or time to live, tells recursive resolvers how long they may cache the answer.

The important point is that DNS is not one setting. It is a set of typed answers with different operational effects. Changing a web address, moving mail, proving domain ownership, and delegating a subdomain all use DNS, but they do not use it in the same way.

The records most teams meet first

A and AAAA records map names to IPv4 and IPv6 addresses. They are commonly used for websites, APIs, origin hosts, and service endpoints. If these records are wrong, users may reach the wrong server or no server at all.

CNAME records make one name an alias of another name. They are useful when delegating a hostname such as www or status to a platform that manages the final address. A CNAME cannot normally coexist with other record types at the same name, which is why apex domain aliasing needs special handling from some DNS providers or newer record types.

MX records tell other mail systems where to deliver mail for a domain. TXT records hold arbitrary text and are widely used for SPF, DKIM public keys, DMARC policy, domain verification, and service ownership checks. NS records identify authoritative name servers for a zone or delegated subdomain. SOA records describe zone authority and timing. PTR records support reverse DNS by mapping IP addresses back to names.

Newer record types such as HTTPS and SVCB can publish service binding information, including protocol hints and alternative endpoints. Adoption varies by client and provider, so they should be treated as an addition to core records rather than a replacement for basic A, AAAA, and CNAME planning.

Authoritative DNS and recursive DNS

Two parts of DNS often get mixed together. Authoritative DNS is where the zone owner publishes records. Recursive DNS is what users, browsers, servers, and networks query to find answers. A public resolver may cache an answer long after the authoritative zone has changed, until the TTL expires.

This separation explains why "DNS propagation" can feel inconsistent. A change may be correct at the authoritative name server immediately, while some recursive resolvers continue returning the old answer. Low TTLs before a migration can reduce the waiting period, but they do not erase every cache instantly. Some clients, operating systems, and applications also maintain their own caches.

When troubleshooting, test both sides. Query the authoritative name servers directly to confirm what has been published, then query several recursive resolvers to understand what users may see.

Configuration details that matter

Record names should be explicit. @ often means the zone apex in DNS control panels, but that is a provider convention, not the literal DNS name. A trailing dot in a fully qualified domain name can also matter in zone files. Without it, some systems append the current zone name.

TTL choices should match the expected change rate. A very low TTL can help during a planned migration, but it increases query volume and does not guarantee instant cutover. A very high TTL can reduce lookup traffic but makes mistakes slower to recover from. Many teams use moderate TTLs for stable records and temporarily lower them before high-risk changes.

Record ownership should be documented. Marketing tools, email providers, cloud platforms, certificate authorities, and security services may all ask for DNS records. Without a record inventory, it becomes difficult to know whether an old TXT record is still required or whether a CNAME is safe to remove.

Common mistakes

One frequent mistake is changing the wrong name. Updating example.com does not automatically update www.example.com, and updating www does not move the apex. Another is leaving IPv6 behind: a site may move its A record while an old AAAA record still sends some users to the previous service.

Email records are often mixed together. SPF is published as a TXT record, but it is not the same as DKIM or DMARC. Multiple SPF TXT records at the same name can cause SPF evaluation failures. MX changes affect inbound mail, while SPF and DKIM affect how outbound mail is evaluated.

CNAME chains can create fragile behavior. A short alias chain is normal, but long chains increase lookup work and make outages harder to trace. A CNAME pointing at a name that no longer exists can break only one subdomain while the rest of the zone appears healthy.

Security problems also appear through abandoned records. If a CNAME points to a third-party service that is no longer claimed, an attacker may be able to claim the destination and serve content under the old hostname. Unused verification TXT records can leak information about vendors and internal processes.

A practical change process

Treat DNS changes like production changes. Record the current state, the intended state, the reason for the change, and the rollback path. Lower TTLs before the cutover if the record is high impact. Validate syntax in a staging or secondary zone when possible.

After publishing, query the authoritative name servers first. Then query a small set of recursive resolvers and test the application path that depends on the record. For web traffic, check both IPv4 and IPv6, TLS certificate names, redirects, and cache behavior. For mail, test inbound delivery and outbound authentication.

Finally, keep an inventory of externally requested DNS records. DNS is often changed by many teams over many years. The operational risk comes less from the record format itself and more from forgotten dependencies, stale aliases, and unclear ownership.

Related learning

© PEAKHOUR.IO PTY LTD 2026   ABN 76 619 930 826    All rights reserved.