DNSSEC validation

Forwarded DNSSEC validation is opt-in. Enable dnssec.enabled in the configuration file, Settings → Expert → DNSSEC, or with:

kudurru settings set dnssec.enabled=true

A forward zone's spec.forward.dnssecValidation overrides that default; omit it to inherit the global setting. Validation uses the same captured upstream route as the answer. Private forwarding routes do not send proof queries to a public resolver as a fallback. Core DNSSEC validation does not require a license key.

The validator checks DNSKEY/DS chains, signatures, aliases, wildcards and authenticated negative answers. Bogus or incomplete proofs return SERVFAIL with an extended DNS error. Authenticated unsigned delegations return normal answers with an insecure validation state. Queries setting CD bypass checking and use a separate cache context. An upstream's AD bit is never trusted. Client DO controls whether proof records are returned, not whether validation runs. AD is set only for an unmodified, locally secure answer with live proofs, CD clear, and client DO or AD interest. The query log records the local result even when the client's DO bit is clear.

Trust anchors and rollover

dnssec.useBuiltinAnchors: true trusts the IANA root DS anchors shipped with the binary. This version includes key tags 20326 and 38696, from IANA's signed root-anchor publication verified on October 14, 2026. Software upgrades and explicit operator changes maintain the anchors of forwarded validation: no RFC 5011 trust-anchor update worker runs for dnssec.*, and forwarded validation never promotes a fetched DNSKEY to a trust anchor. Recursive groups on SQLite can opt into automatic RFC 5011 root-key updates instead; see Managed root anchors (RFC 5011).

dnssec.trustAnchors adds complete DS or DNSKEY records in DNS presentation format. With useBuiltinAnchors: false, the supplied records replace the built-in set; an empty trust set is rejected even when global validation is off, because individual forward zones may enable it. Anchors are public key material and are visible in settings. At most 64 explicit anchors are allowed.

For a private-zone rollover:

  1. Obtain the new DS/DNSKEY through an authenticated channel independent of the resolver being validated. Confirm its zone, algorithm and digest.
  2. Save the existing settings. Add the new anchor alongside the old one before the signer starts relying on it, preserving the public root anchors if this node resolves public names.
  3. Query representative positive, negative and alias answers through every node. Inspect DNSSEC state and EDE in the query log, and AD with dig +dnssec.
  4. After the signer's rollover and its propagation interval, remove the retired anchor. Trust changes replace the validation/cache context immediately; outstanding queries keep their captured plan but cannot populate the replacement cache generation.

To roll back, restore the last authenticated trust set and repeat the checks. Do not restore a key known to be compromised. A newly required anchor must remain installed for domains that have already completed their rollover.

Temporary exceptions

Use a negative trust anchor only for a known broken signed domain while its owner repairs it. An exception covers a domain and its descendants; aliases leaving that scope still need validation. Every entry needs a reason and an absolute RFC3339 expiry no more than seven days away. At most 128 entries are allowed, with no duplicate canonical domains.

dnssec:
  enabled: true
  useBuiltinAnchors: true
  negativeTrustAnchors:
    - domain: broken.example.
      reason: "Signer rollover incident; repair tracked by the zone owner"
      expiresAt: "2026-10-15T12:00:00Z"

Choose an expiry appropriate to the current incident; the example date is not extended automatically. The dashboard displays and edits the instant in UTC. Expired entries can remain in configuration but no longer bypass validation. Cache hits, reload and restart respect the same absolute expiry. Exceptions never establish secure status or AD. Remove the exception after repair and verify the domain validates normally.

Recursive exceptions

Recursive groups use upstreams.recursion.dnssec (enabled by default), their own trust anchors, and their own exception list. The dnssec.* settings above apply to forwarding and do not bypass native recursive validation. For a recursive incident, configure the separate list:

upstreams:
  recursion:
    negativeTrustAnchors:
      - domain: broken.example.
        reason: "Signer repair tracked by the zone owner"
        expiresAt: "2026-10-31T12:00:00Z"

Replace the example date with the actual incident deadline, at most seven days away. The timestamp is absolute, not a duration. The same domain, reason and count limits apply as for forwarded exceptions. A recursive NTA covers descendants, including trust-chain failures, but an alias leaving that scope still needs normal validation. Responses are insecure and never set AD. DO controls returned proofs; CD retains its explicit validation bypass in a separate cache partition. Remove the exception after repair.

Expiry is enforced on native caches, raw response-cache hits and detached fills, including stale serving. Conservatively, all recursive response reuse is bounded by the next recursive NTA expiry, even for unrelated names. Reload, restart, settings restore and response-cache dump/load never renew the deadline. Expired entries may remain in settings, but are inactive. These exceptions do not implement aggressive NSEC caching or automatic trust-anchor rollover.

Cookies on recursive authority requests

Recursive groups automatically use DNS Cookies when asking authoritative servers. No configuration or shared secret is needed. Incoming client cookies are not forwarded. A server that does not implement cookies remains usable; the resolver waits five minutes before probing again with a fresh cookie. An established cookie peer must return the correct echo. Malformed, missing or incorrect cookies can cause that authority's answer to be refused and another eligible authority to be tried under the existing work limit.

BADCOOKIE recovery has one UDP retry followed by one TCP fallback. Ensure outbound UDP and TCP DNS are both allowed, as for other recursive traffic. Cookie negotiation neither bypasses DNSSEC/NTA checks nor sets AD. State stays in memory, is bounded and expires; restart starts fresh. See authority DNS Cookies for exact lifetime and transport rules. Cookie contents are not logged.

Cache and failures

The shared response cache stores raw answers with their route, validation context and proof deadlines. Client policy processing runs outside that cache. Stale serving and minimum TTL settings cannot extend authenticated data past its proof deadline. Validation bypasses, trust changes and NTA expiry cannot reuse a secure/bypass entry from an incompatible context.

If validation fails, inspect the EDE and the DNSSEC state, verify the node's clock, and check that its configured upstream can return DNSSEC material over UDP and TCP. Increasing a cache TTL or trusting upstream AD does not repair a bad signature. Proof queries, signature checks and NSEC3 work are bounded; responses exceeding those limits fail closed.

Source: docs/deploy/dnssec-validation.md