Bridge CDN
On this page

Quick facts

DS (Delegation Signer) DNSKEY
RR type number 43 48
Lives in The parent zone, e.g. .com Your zone, at the apex
Who publishes it Your registrar, through the registry Your DNS host (Bridge signs and publishes it)
What it holds Key tag, algorithm, digest type, digest Flags, protocol, algorithm, public key
Typical TTL 86,400 s in .com and .net Set by the zone

What a DS record holds

A DS line looks like this:

example.com.  86400  IN  DS  12345 13 2 49FD46E6C4B45C55D4AC69CBD3CD34AC1AFE51DE5C1E8E6E5B3E2F1A0B9C8D7E

Four fields, left to right:

  • Key tag (12345). A 16-bit number computed from the DNSKEY. It's a quick pointer, not a security check: two keys can share a tag.
  • Algorithm (13). The signing algorithm of the key it points to. 13 is ECDSA P-256 with SHA-256.
  • Digest type (2). The hash used for the digest. Type 2, SHA-256, is the one to use. Type 4, SHA-384, is optional. Type 1, SHA-1, must no longer be used for new DS records (RFC 8624).
  • Digest. The hash of your zone name plus the DNSKEY data. This is the part that actually binds parent and child.

Since the digest is built from the key, any change to the key changes the digest. That's the whole point: the parent vouches for one exact key.

What a DNSKEY record holds

example.com.  3600  IN  DNSKEY  257 3 13 mdsswUyr3DPW132mOi8V9xESWE8jTo0d...
  • Flags. 257 marks a key signing key (KSK): the key the DS points at. 256 marks a zone signing key (ZSK), which signs the ordinary record sets. Some setups use one combined key, flagged 257.
  • Protocol. Always 3. Nothing else is valid.
  • Algorithm. Must match the algorithm field in the DS.
  • Public key. The key material, in Base64.

The DNSKEY set is itself signed, so it carries an RRSIG like any other record set. The chain goes: the parent's DS matches your KSK, the KSK signs the DNSKEY set, and the ZSK signs everything else. The DNSSEC overview walks through the full chain of trust from the root.

Where each record lives, and why it matters

The split between the two zones explains most real problems. Your DNSKEY record is under your control, served by your DNS host. The DS record sits one level up, in the parent zone. You can't publish it yourself. Your registrar sends it to the registry, and the registry publishes it.

So there are always two places to update, often run by two different companies. Change DNS host without touching the registrar, and the parent keeps vouching for a key nobody publishes any more.

In Bridge DNS, signing is per zone and automatic. Once you turn it on, completing the chain of trust requires your registrar to support DNSSEC delegation. The steps are in how to enable DNSSEC in Bridge DNS.

How to read and match the two records with dig

Fetch the DS from the parent side and the keys from your zone:

dig example.com DS +short
dig @ns1.bb-ns.com example.com DNSKEY +multi

The first line returns something like 12345 13 2 49FD.... With +multi, dig prints a comment after each key, for example ; KSK; alg = ECDSAP256SHA256 ; key id = 12345. The key tag in the DS must equal the key id of a key flagged 257, and the algorithms must match.

Tags only prove you're looking at the right key. To check the digest itself, recompute it from the live key with dnssec-dsfromkey (BIND) or ldns-key2ds and compare. That comparison is covered step by step in DNSSEC validation.

CDS and CDNSKEY: letting the zone update its own DS

Copying DS values by hand is the weakest link in the setup. RFC 7344 defines CDS and CDNSKEY records: the child zone publishes the DS it wants, and a parent that supports scanning picks it up. RFC 8078 adds a way to request removal. Support depends on the registry and the registrar, and it's still far from universal.

Common mistakes with DS records

  1. Leaving the old provider's DS in place. After a move, the DS matches no key at the new host. Validating resolvers return SERVFAIL for every name in the zone. The DNS migration checklist removes the old DS before the nameserver change.
  2. Adding the DS before the zone is signed. The parent promises signatures that don't exist yet. Same result: SERVFAIL.
  3. Turning signing off while the DS is still published. Remove the DS first, wait for its TTL, then disable signing.
  4. Pasting the wrong format. Some registrars ask for the DS, others for the DNSKEY and compute the DS themselves. Check which one the form wants.
  5. Submitting only a SHA-1 digest. Use digest type 2.

DS and DNSKEY questions

What is a DS record in DNS?

A DS record (Delegation Signer, type 43) is a hash of a child zone's key signing key, published in the parent zone. It tells validating resolvers which DNSKEY to trust for that zone.

What is a DNSKEY record?

A DNSKEY record (type 48) publishes a zone's public signing key at its apex. Resolvers use it to verify the RRSIG signatures on the zone's records.

Where do I add a DS record?

At your domain registrar, not at your DNS host. The registrar passes it to the registry, which publishes it in the parent zone such as .com.

Can a domain have more than one DS record?

Yes. Multiple DS records are normal during a key rollover, or when the same key is published with two digest types. Resolvers accept the chain if any one of them matches a current key.

How long does a DS change take to apply?

Resolvers that cached the old DS keep it until its TTL expires. In .com and .net that TTL is 86,400 seconds, so plan for a day.