DS Record: What a DNSSEC Delegation Signer Record Is, Fields, and Setup
A Delegation Signer (DS) record is a DNSSEC resource record published in the parent zone storing a cryptographic hash of your Key Signing Key. Validating recursive resolvers compare this parent digest against your child DNSKEY record. The 4 fields of a DS record establish an unbroken chain of trust.
What Is a DS Record and What Do Its 4 Fields Mean? (Syntax and Anatomy)
A Delegation Signer (DS) record (IANA Type 43) differs from standard DNS records because it is published one level up in the parent Top-Level Domain (TLD) registry zone (such as .com or .org) through your domain registrar rather than inside your own zone file. Unlike a DNSKEY record (which holds the full public key in your child zone), a DS record holds a compact 4-field cryptographic fingerprint (Key Tag, Algorithm, Digest Type, and Digest) of your child zone's Key Signing Key (DNSKEY Flag 257). The table below defines all 4 data fields of a standard DS record. Where you host DNS also decides DNSSEC support: the registrar vs DNS hosting split explains which provider has to enable signing.
The following production DS record example illustrates parent zone syntax holding a 64-character SHA-256 digest:
; Child Domain TTL Class Type Key Tag Algorithm Digest Type SHA-256 Digest (64 Hex Characters)
example.com. 86400 IN DS 2371 13 2 1F987CC6583B6E1FD8C7F2D6BCB6A9C4C6B6A9C4C6B6A9C4C6B6A9C412345678 | DS Field | Example Value | Format / Bit Size | Function in DNSSEC Validation |
|---|---|---|---|
| 1. Key Tag | 2371 | 16-bit integer (0 to 65535) | Short numerical identifier calculated from DNSKEY RDATA to locate which key to test quickly. |
| 2. Algorithm | 13 | 8-bit integer (8, 13, 15) | Identifies the signing algorithm of the referenced child DNSKEY Record (13 = ECDSA P-256). |
| 3. Digest Type | 2 | 8-bit integer (1, 2, 4) | Specifies the hash function used to compute the Digest (2 = SHA-256 standard, 4 = SHA-384). |
| 4. Digest | 1F987CC6... | Hex string (64 chars for SHA-256) | One-way hash calculated over the concatenated child domain owner name and DNSKEY RDATA. |
The Key Tag and Digest operate as a cooperative pair: when a domain publishes multiple public keys during a scheduled key rollover, the 16-bit Key Tag lets resolving validators identify the candidate key instantly, and the 64-character SHA-256 digest supplies the unforgeable cryptographic proof. Inspect any domain's live parent delegation hash in the DS Record Lookup (DNSSEC).
Which DS Digest Type and Algorithm Numbers Are Recommended? (Reference Matrix)
Modern DNSSEC deployments pair Digest Type 2 (SHA-256, 64 hexadecimal characters) or Digest Type 4 (SHA-384, 96 hexadecimal characters) with Algorithm 13 (ECDSAP256SHA256) or Algorithm 15 (Ed25519), while retiring legacy SHA-1 digests. The table below lists official IANA Digest Types and Algorithm numbers with their exact character lengths and current security status.
| Field Category | Number Code | Cryptographic Standard | Exact Digest Hex Length | Current IETF Status |
|---|---|---|---|---|
| Digest Type | 2 | SHA-256 (RFC 4509) | 64 hex characters (32 bytes) | Recommended Default; supported universally across all registrars and TLD registries. |
| Digest Type | 4 | SHA-384 (RFC 6605) | 96 hex characters (48 bytes) | Supported high-security standard; typically paired with P-384 elliptic curves. |
| Digest Type | 1 | SHA-1 (RFC 4034) | 40 hex characters (20 bytes) | Deprecated per RFC 8624; vulnerable to hash collision attacks. |
| Algorithm | 13 | ECDSAP256SHA256 (ECDSA P-256) | Matches Digest Type (64 chars) | Recommended Default; deployed by Cloudflare, AWS Route 53, and Google Cloud DNS. |
| Algorithm | 15 | Ed25519 (RFC 8080) | Matches Digest Type (64 chars) | Recommended Modern Curve; delivers compact signatures with fast validation. |
| Algorithm | 8 | RSASHA256 (2048-bit RSA) | Matches Digest Type (64 chars) | Supported Legacy Standard; generates larger cryptographic packets than Algorithm 13. |
The hexadecimal string always contains exactly 64 characters without spaces when your DNS host generates a Digest Type 2 (SHA-256) hash for your registrar. Truncating characters or pasting a 40-character SHA-1 string under Digest Type 2 causes immediate validation failure across resolvers.
How Do Validating Resolvers Use a DS Record in the Chain of Trust? (5 Steps)
A DNSSEC-validating recursive resolver (such as Cloudflare 1.1.1.1 or Google 8.8.8.8) uses the parent DS record to verify the authenticity of child signing keys across 5 cryptographic steps:
- Query the parent TLD nameserver (such as
.com) for the target domain's NS Record delegation and its DS record, which is signed by the parent TLD's private key. - Fetch the child domain's DNSKEY resource record set (via DNSKEY Record Lookup) from authoritative nameservers, locating the Key Signing Key (KSK, DNSKEY Flag 257) matching the DS record's Key Tag (2371) and Algorithm (13).
- Calculate a fresh local cryptographic hash of the child domain's owner name and DNSKEY 257 public key using the hash function specified in Digest Type (2 = SHA-256).
- Compare the locally calculated 64-character SHA-256 hash against the Digest string published in the parent DS record byte-for-byte.
- Trust the child zone's DNSKEY records and set the Authenticated Data (AD=1) header flag if the digests match, or abort resolution and return SERVFAIL (RCODE 2) to protect the visitor if the digests mismatch.
Publishing DNSKEY records in a child zone without a corresponding DS record in the parent TLD leaves the domain in an insecure, unsigned state. The website resolves normally without error, but lacks cryptographic tamper resistance. Review complete validation fundamentals in What Is DNSSEC and test your domain with our DNSSEC Checker.
Where Do You Add a DS Record? (Domain Registrar vs Your Own DNS Zone Panel)
Where you publish a DS record depends on which zone you are securing across 3 distinct delegation scenarios:
- Securing Your Root Domain (Publish at Your Domain Registrar): Administrators never add a root domain's DS record inside their own DNS zone table. The parent of
example.comis the.comTLD registry, meaning you copy the 4 DS values from your DNS host and paste them into the DNSSEC management screen at your domain registrar, as demonstrated in How to Enable DNSSEC in Cloudflare. - Securing a Delegated Subdomain (Publish in Your Own Zone Panel): Selecting Type: DS inside your own DNS dashboard is reserved exclusively for delegating a child subdomain (like
sub.example.com) to separate nameservers. In that architecture,example.comacts as the parent zone, hosting both NS and DS records for the child subdomain. - Automated Parent Updates via CDS and CDNSKEY: Several TLD registries scan child zones for CDS (Child DS, Type 59) and CDNSKEY (Type 60) records, enabling authoritative DNS providers to publish and roll parent DS records automatically without manual intervention.
Verifying parent-child delegation synchronization ensures that parent registries and authoritative nameservers agree on signing states, verifiable in our DNS Delegation Checker.
How to Add, Rotate, or Remove a DS Record Safely Without Causing a SERVFAIL Outage
A domain-wide SERVFAIL outage occurs if a parent registry DS hash points to a missing or retired child key. Adding, rotating, or removing a DS record at your registrar safely requires following 3 strict operational timing sequences:
- Enabling DNSSEC (Sign Child Zone First, Add Parent DS Second): Turn on DNSSEC signing at your authoritative DNS host first and wait 15 minutes for DNSKEY and RRSIG records to propagate before submitting the DS record at your domain registrar.
- Rotating a Key Signing Key (Publish Both DS Records in Parallel): During a KSK rollover, maintain both old and new KSKs in the child zone, add the new DS record alongside the old DS record at your registrar, wait 24 to 48 hours for the parent TTL (DNS TTL Explained) to expire, and then delete the old DS record.
- Switching DNS Providers (Delete Parent DS First, Wait TTL, Change Nameservers Second): Before updating nameservers to a new provider, delete the DS record at your domain registrar first and wait 24 hours for parent TLD caches to clear before altering NS records.
Failing to delete an old DS record before migrating nameservers causes resolvers to return SERVFAIL when the new host lacks matching keys. Immediate deletion of the DS record at the registrar restores resolution, as explained in Site Down After a DNS Change?.
How to Check Your Domain's DS Record (dig, nslookup, and Browser DoH)
Inspecting the live DS record published in your parent TLD zone confirms that public resolvers receive the correct trust anchor across 3 diagnostic terminal checks:
# 1. Query the parent zone DS record on Linux / macOS:
dig example.com DS +short
# Output: 2371 13 2 1F987CC6583B6E1FD8C7F2D6BCB6A9C4...
# 2. Query the child zone DNSKEYs (with computed Key Tags in comments):
dig example.com DNSKEY +multiline
# 3. Query DS record on Windows Command Prompt:
nslookup -type=ds example.com 1.1.1.1 Running these diagnostic commands confirms that parent delegation records and child public keys align perfectly. Confirm global propagation using our DNS Propagation Checker, and explore the complete standard specifications across all DNS record types in our directory of DNS Record Types.
Frequently asked questions
What is the difference between a DS record and a DNSKEY record?+
A DNSKEY record is published in your own child DNS zone and holds the full public cryptographic signing key (ZSK Flag 256 and KSK Flag 257). A DS record is published one level up in the parent TLD zone (via your registrar) and holds a short SHA-256 hash of your KSK so resolvers trust your DNSKEY.
Why can't I add my domain's DS record inside my own DNS zone table?+
Because the purpose of a DS record is for the parent zone (.com) to vouch for your child zone (example.com), a DS record placed inside your own zone cannot vouch for itself. You always submit your root domain's DS record in your domain registrar's DNSSEC settings (only adding a DS record in your own DNS table when delegating a signed subdomain).
Which Digest Type should I select when my registrar asks for a DS record: 1 (SHA-1), 2 (SHA-256), or 4 (SHA-384)?+
In practice, always select Digest Type 2 (SHA-256), which produces a 64-character hexadecimal hash and is universally supported by every registrar and TLD registry. Never use Digest Type 1 (SHA-1), which is deprecated and rejected by modern registries.
Why does my website fail on Google DNS (8.8.8.8) and Cloudflare (1.1.1.1) after I changed my nameservers?+
In real-world migrations, this happens when your previous DNS provider had DNSSEC enabled and you switched nameservers without deleting the old DS record at your registrar first. Validating resolvers like 1.1.1.1 and 8.8.8.8 see the stale DS record, detect missing child signatures, and return SERVFAIL; delete the old DS record at your registrar to restore access.
Last verified: 2026-11-08