What are DNSKEY and DS records?

Where DNSKEY and DS records fit

DNSSEC adds cryptographic validation to DNS. Instead of accepting an answer only because it came from a resolver or authoritative name server, a validating resolver can check that the answer was signed by a key that belongs to the zone. DNSKEY and DS records are two of the records that make that trust decision possible.

A DNSKEY record publishes a public key inside the DNS zone. That public key is used by validators to check signatures over the zone's records. The corresponding private key is kept by the zone operator and is used to create signatures. A DS record, short for Delegation Signer, sits in the parent zone. It contains a digest derived from the child zone’s DNSKEY record and its name and tells validators which child-zone key should be trusted.

For a normal second-level domain, the practical split is simple: the DNS hosting provider publishes DNSKEY records in the domain's authoritative zone, while the registrar or registry path publishes the DS record in the parent. If those two sides do not match, DNSSEC validation can fail even when every ordinary A, AAAA, CNAME, MX, or TXT record looks correct.

The chain of trust

DNSSEC validation depends on a chain. The root zone is signed. Top-level domains such as .com, .org, or country-code zones can be signed. A registered domain can then publish signed DNS records and place a DS record in the parent zone. A validator follows that chain from a known trust anchor down to the specific answer it is checking.

The DNSKEY record is part of the child zone. It contains fields such as flags, protocol, algorithm, and the public key data. In many DNSSEC deployments, one key-signing key is used to sign the DNSKEY set, while one or more zone-signing keys sign other records. The exact operational model varies by provider, but the validator's job is the same: find the right DNSKEY and use it to validate the corresponding RRSIG signatures.

The DS record is a compact reference to a DNSKEY. It includes the key tag, algorithm, digest type, and digest. Because it is stored at the parent, it binds the parent delegation to the child zone's signing key. Without a DS record, a signed child zone may still publish signatures, but validating resolvers do not have a complete chain of trust from the parent.

What operators actually configure

Many managed DNS providers hide most DNSKEY handling. The operator enables DNSSEC, the provider generates keys, publishes DNSKEY records, signs the zone, and displays DS values to add at the registrar. Some registrars integrate directly with DNS providers and can add the DS record automatically. Others require copying the DS values manually.

The important operational point is ownership. Someone must know who manages the signing keys, who can update the DS record, and what the rollover procedure is. If DNS hosting and registration are handled by different teams, DNSSEC becomes a cross-boundary change. A DNS provider migration, registrar transfer, or emergency restore can break validation if the DNSKEY and DS records are not moved in the right order.

When reviewing a DNSSEC setup, confirm the domain's authoritative name servers, the DNSKEY records returned by those servers, and the DS records visible from the parent. Also check whether the provider uses automatic key rollovers and whether the registrar supports the algorithm and digest types being published.

Common failure modes

The most common DNSKEY and DS problem is a mismatch. The parent zone points validators to a key digest, but the child zone no longer publishes the matching DNSKEY. Validating resolvers then return validation failures, often seen by users as SERVFAIL. Non-validating resolvers may still return the ordinary DNS answer, which makes the incident confusing.

Another common issue is leaving a DS record behind after moving DNS to a provider that is not signing the zone. The domain appears delegated correctly, and the new provider may serve normal records, but validating resolvers reject the responses because the parent still expects DNSSEC signatures.

Key rollovers can also fail. A rollover changes signing material while preserving validation. If the new DNSKEY is introduced, signatures are changed, or the DS record is updated too early or too late, some validators may not be able to build a valid chain. TTLs and resolver caches matter, so a rollover should be treated as a planned change rather than a quick edit.

Algorithm support is another practical concern. A provider may support a modern algorithm while an older registrar interface, monitoring tool, or internal runbook assumes a smaller set. This is less common than DS mismatch, but it is worth checking before provider changes.

Diagnosing validation failures

Start by determining whether the failure is specific to validating DNSSEC. Compare results from a validating resolver and a non-validating path, then query authoritative name servers directly. If authoritative DNS returns the expected records but validating resolvers return SERVFAIL, focus on DNSSEC.

Useful evidence includes the domain, record type, resolver, response code, returned DS records, returned DNSKEY records, RRSIG presence, TTLs, and timing of recent DNS or registrar changes. Do not rely only on a web browser symptom such as "the site is down." DNSSEC failures happen before HTTP, TLS, CDN routing, or application logic can help.

For provider migrations, check the old and new authoritative name servers. If the parent still delegates to old name servers, changing records in the new provider will not fix users. If the parent delegates correctly but still has a DS record for the old provider's key, either the new zone must be signed with matching trust material or the DS record must be updated according to the migration plan.

Rollout checks before enabling DNSSEC

Before enabling DNSSEC for a production domain, list critical hostnames and record types, identify the registrar account, confirm who can change DS records, and document the current authoritative name servers. Enable DNSSEC first in an environment where failure is acceptable if possible. For important domains, schedule the change when DNS, registrar, application, and support owners can respond.

After enabling, validate from several resolvers and regions. Check the apex, www, API names, mail records, and any ownership-verification records that matter to certificates or third-party services. Monitor for SERVFAIL, sudden drops in web traffic, mail delivery issues, and certificate automation failures.

Keep the rollback plan specific. "Disable DNSSEC" may mean removing DS records at the registrar, disabling signing at the DNS provider, or both, and the safe order depends on the current failure. DNSKEY and DS records are small pieces of data, but they sit on a critical trust boundary. Treat them as production configuration, not as decorative DNS metadata.

Related learning

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