Networking
Azure DNSSEC: validate the chain of trust before publishing the DS record
A production runbook to sign an Azure Public DNS zone, publish the parent DS record, detect validation SERVFAIL and roll back without breaking resolution.
An Azure Public DNS zone answers correctly from its authoritative name servers. The team enables DNSSEC, sends the DS record to the registrar, and can still retrieve the expected records with a direct query. Minutes later, some clients receive SERVFAIL while others keep resolving the domain from cache.
The zone data is not necessarily wrong. With DNSSEC, a validating resolver must connect the DS record in the parent zone to a DNSKEY in the child, then validate the signed response. A missing DS leaves the zone signed but not delegated. A published DS that does not match breaks the chain of trust. A correct authoritative answer is therefore no longer enough to prove that the domain is usable.
The running case is a production domain hosted in Azure Public DNS. The runbook ends with one explicit decision: publish the DS, hold the zone signed without delegation, remove the parent DS, or disable signing after the parent TTL has expired. Azure Private DNS zones are outside this chain, and Private Endpoint has no role in the public DNSSEC delegation.
Freeze the cutover contract
Identify both control planes before enabling signing. Azure signs the child zone and exposes delegation information. The registrar or parent-zone owner publishes the DS record. These operations have different owners, lead times and rollback paths.
zone: api.example.com
azure:
subscription: production
resource_group: rg-public-dns
zone_owner: platform-network
parent:
zone: example.com
ds_owner: domain-operations
change_reference: CHG-DNS-1842
gates:
authoritative_baseline_valid: true
parent_supports_dnssec: true
external_validators_ready: true
ds_values_reviewed_by_two_people: true
rollback:
remove_ds_first: true
wait_parent_ds_ttl: true
unsign_only_after_ds_expiry: true Record the current parent DS TTL when one exists, delegated name servers, SOA, critical records and the team able to change the parent throughout the window. Without guaranteed parent access, you can prepare or sign the zone, but you should not publish the DS record.
Establish evidence before signing
Capture a baseline through multiple public resolvers and query at least one Azure authoritative server directly. Check the apex, application names, important MX and TXT records, and external CNAME chains. This separates a pre-existing DNS defect from a validation failure introduced by DNSSEC.
ZONE="api.example.com"
NAME="www.api.example.com"
dig "$ZONE" SOA +noall +answer
dig "$ZONE" NS +noall +answer
dig "$NAME" A +noall +answer
dig @1.1.1.1 "$NAME" A +noall +answer
dig @8.8.8.8 "$NAME" A +noall +answer
dig +trace "$NAME" A
az network dns zone show \
--resource-group rg-public-dns \
--name "$ZONE" \
--query '{id:id,nameServers:nameServers,recordSets:numberOfRecordSets}' \
--output json An Azure VM using VNet-provided name resolution is not, by itself, a DNSSEC validator. Azure virtual network recursive resolution does not validate DNSSEC. Keep that check for application availability, but also use external validating resolvers and a tool that explains the chain.
Sign without announcing too early
Enable DNSSEC on the child zone, then wait for signing to complete. Azure should now expose DNSKEY, RRSIG and delegation information, while the parent still has no DS. Signed but not delegated is a valid preparation state: resolvers still treat the delegation as insecure.
RG="rg-public-dns"
ZONE="api.example.com"
az network dns dnssec-config create \
--resource-group "$RG" \
--zone-name "$ZONE"
az network dns dnssec-config show \
--resource-group "$RG" \
--zone-name "$ZONE" \
--output json
az network dns zone show \
--resource-group "$RG" \
--name "$ZONE" \
--output json \
| jq '.signingKeys[] | select(.delegationSignerInfo != null) | .delegationSignerInfo' Copy the complete tuple returned by Azure: key tag, algorithm, digest type and digest. Do not reconstruct the DS from an old capture or manually edit its content. Attach the raw output to the change record with the zone ID and UTC timestamp.
Before changing the parent, confirm that authoritative responses contain DNSKEY and RRSIG. This proves that the child is signed, not that a chain of trust exists yet.
Publish the DS as a two-system operation
Review the Azure values against the registrar entry. The change is complete only when the DS observed publicly in the parent matches the current DS exposed by Azure. A registrar form or confirmation email does not prove publication.
ZONE="api.example.com"
dig "$ZONE" DS +dnssec +multi
dig "$ZONE" DNSKEY +dnssec +multi
dig "$ZONE" SOA +dnssec +multi
dig +trace "$ZONE" SOA
delv "$ZONE" SOA
delv "www.$ZONE" A Read each result separately:
DNSKEYandRRSIGwithout a parent DS mean that the zone is signed but not delegated.- A parent DS that matches no DNSKEY creates a broken delegation; validating resolvers should reject the answer.
- An
adflag from a validating resolver confirms an authenticated answer, but repeat the test across names and resolvers. - A direct authoritative answer can remain correct while recursive validation fails.
Do not infer global success from one cache. Test from at least two external networks, a reference validating resolver and the real path of a critical application. Preserve timestamps, resolver addresses, response codes, DS, DNSKEY and RRSIG values.
Canary the mechanism before the critical apex
When the registrar workflow is new, exercise it first on a delegated child zone such as dnssec-canary.example.com. It should use the same parent owner, approval path and probes as the target. A lab zone with no parent delegation skips the highest-risk step.
The canary must cover four states: unsigned, signed without DS, signed with a valid DS, then DS removal and controlled unsigning. Verify that operators can distinguish NXDOMAIN, timeout and SERVFAIL. The last one commonly indicates failed validation when the authoritative data still exists.
Monitor the cutover as an availability change
Azure Activity Log records control-plane changes to the DNS resource, but it does not represent every Internet resolver. Add external probes that request DNSSEC data and record DNS response code, authentication flag, latency and chain elements. Correlate them with application errors, TLS failures and HTTP availability: a name that cannot resolve might produce no request at the application layer.
Every 60 seconds from at least two external networks
Query apex SOA with DNSSEC requested
Query one critical A or AAAA record
Query parent DS and child DNSKEY
Record resolver, rcode, AD flag, latency and observed key tag
Stop the rollout when
Any validating resolver returns SERVFAIL twice
Parent DS differs from the current Azure delegation information
Authoritative answers are healthy but recursive validation fails
The team cannot remove the parent DS inside the incident window Avoid changing name servers, registrar, application records and DNSSEC in one window. Four possible causes make rollback ambiguous and extend cache-related impact.
Roll back in the correct order
DNSSEC rollback is not an immediate Azure unsign operation. While the parent publishes a DS, validating resolvers expect a signed child. Unsigning first turns a healthy or repairable chain into a bogus delegation.
Remove the DS from the parent first. Confirm its disappearance through multiple resolvers and wait at least for the observed DS TTL to expire. Keep the zone signed during that period so caches that still hold the DS can validate responses. Only then disable DNSSEC in Azure and confirm that unsigned resolution works.
PROMOTE
Azure reports signed and delegation established
Parent DS exactly matches current Azure signing information
External validators return authenticated answers
Critical names resolve and application probes recover
HOLD SIGNED WITHOUT DELEGATION
Child signatures are healthy
Parent change is not yet approved or observable
No DS has been published
ROLL BACK DELEGATION
Validating resolvers return SERVFAIL
Parent DS is wrong, stale or cannot be reconciled
Remove parent DS, wait its TTL, then unsign only if required
BLOCK THE CHANGE
Parent owner is unavailable
Baseline already contains delegation or content errors
External DNSSEC validation cannot be observed If the published DS is wrong but can be corrected quickly, compare recovery time and cache behavior before replacing it in place. During broad impact, removing the DS restores an insecure delegation after caches expire and offers a simpler recovery path. Restore the intended security in a new window after the cause is understood.
Conclusion
Enabling DNSSEC on Azure Public DNS is not a local zone edit. It is a coordinated cutover across Azure signing, parent delegation, recursive caches and clients that validate the chain.
The production decision depends on external evidence: the parent DS matches the current DNSKEY, multiple resolvers return authenticated answers, critical names remain available, and rollback starts at the parent. When that evidence is missing, keep the zone signed without delegation or remove the DS. Never unsign while the parent still requires validation.