DS record at a glance

FieldValue
Type code43
Defined inRFC 4034, section 5
ValueKey tag, algorithm, digest type and digest
Where it livesIn the parent zone, at the delegation point; you submit it through your registrar
Needed whenYour zone is signed with DNSSEC

Here is how a DS record looks in a zone file:

example.com.  86400  IN  DS  2371 13 2 1F987CC6583E92DF0890718C42A2A2A8B2B2B4A8E3F0C9A1D0B5E6F7A8B9C0D1

Read left to right: key tag 2371, algorithm 13 (ECDSA P-256 with SHA-256), digest type 2 (SHA-256), then the digest of the matching DNSKEY. The digest here is illustrative.

How DS fits the chain of trust

A validating resolver trusts the root zone's key. The root signs a DS record for com, com signs a DS record for example.com, and that DS must match a DNSKEY in your zone, usually your key signing key (KSK). If it matches and the signatures check out, the resolver trusts every signed answer in your zone.

Because the DS sits in the parent, you cannot publish it in your own zone. Your DNS provider generates it when you enable DNSSEC, and you (or your registrar, if it is also your DNS provider) submit it to the registry. Some registries pick up changes automatically from CDS records in the child zone (RFC 8078).

The fields

FieldMeaning
Key tagA short number identifying which DNSKEY this DS refers to
AlgorithmThe signing algorithm of that key: 13 (ECDSA P-256) and 8 (RSA/SHA-256) are the most common
Digest typeThe hash used: 2 (SHA-256) is standard; 1 (SHA-1) should no longer be used for new DS records (RFC 8624)
DigestThe hash of the DNSKEY record

Changing or removing DS safely

A DS that matches no key in your zone breaks the chain, and validating resolvers return SERVFAIL for every name in the domain. That makes DS changes the riskiest part of DNSSEC:

  • Moving DNS providers: either carry the keys across or remove the DS, wait for its TTL to expire, then move.
  • Turning DNSSEC off: remove the DS first, wait out the parent's TTL (often one or two days), and only then stop signing.
  • Key rollovers: publish the new DS alongside the old one, then remove the old one after caches have caught up. DNSSEC key rollovers has the timings.

How to look up a DS record

Each tool below sends the query to your default resolver unless you name a server. Swap in your own domain for example.com, and add a public resolver such as 1.1.1.1 to compare answers with what your network sees. delv, which ships with dig, validates the chain and reports where it breaks.

dig (macOS, Linux, WSL)

CommandWhat it does
dig example.com DSThe DS set, as your resolver has it
dig +short example.com DSKey tag, algorithm, digest type and digest
dig example.com DS @a.gtld-servers.net +norecurseThe DS exactly as the .com registry publishes it
dig +dnssec example.com DSThe DS with the parent’s RRSIG signature
delv example.com AValidate the chain of trust; prints "fully validated" or the reason it failed

nslookup (Windows, macOS, Linux)

CommandWhat it does
nslookup -type=DS example.comThe DS set from your default DNS server
nslookup -type=DS example.com a.gtld-servers.netThe DS as the .com servers publish it

PowerShell (Windows)

CommandWhat it does
Resolve-DnsName -Name example.com -Type DSThe DS record with its fields as columns
Resolve-DnsName example.com -Type DS -DnssecOkAlso return the RRSIG that signs it
Resolve-DnsName example.com -Type DS -Server a.gtld-servers.net -NoRecursionThe DS straight from the .com servers
Quick DNSSEC failure test

If a signed domain suddenly fails everywhere, query it with dig +cd (checking disabled). An answer with +cd and SERVFAIL without it points at a DNSSEC problem, very often a DS that no longer matches.

Common mistakes

  • Leaving the old DS in place after moving providers. The new provider’s keys do not match, and the domain goes dark for validating resolvers.
  • Removing DNSSEC signing before the DS. Same result: a DS with nothing to match.
  • Submitting the ZSK instead of the KSK. The DS should match the key flagged 257 in your DNSKEY set.
  • Only a SHA-1 digest. Publish a SHA-256 (type 2) DS.

DS records in Domain Visualizer

Domain Visualizer looks up DS and DNSKEY at the apex on every scan. Together they show whether the domain is signed and linked to its parent; Security Posture reports a broken or missing chain as a finding.

FAQ

Where do I add a DS record?

At your registrar, not in your DNS zone. Your DNS provider gives you the DS values (or a DNSKEY to hash) when you enable DNSSEC, and the registrar passes them to the registry.

What happens if my DS record is wrong?

Validating resolvers, which serve a large share of internet users, return SERVFAIL for every name in your domain. Non-validating resolvers keep working, which can make the outage look partial.

Can I have more than one DS record?

Yes. Several DS records are normal during a key rollover or when a zone is signed by two providers. A resolver needs only one of them to match.

Sources and further reading