Pcornel
Networking · Network & Protocols › DNS Protocol Reference

DNSSEC Packet Evidence

Cheat sheet · https://pcornel.dk/topic.php?topic=308

Back to the Topic

Answer

DNSSEC adds digital signatures to DNS data so a validating resolver can check that an answer comes from the domain's owner and was not altered. It appears as extra record types — RRSIG, DNSKEY, DS — and two header flags.

Remember

A validation failure looks exactly like the domain being down: SERVFAIL. If the same query with +cd returns the answer, validation is the problem. Usual causes: expired signatures, a DS record at the parent that matches no key, or a leftover DS for an unsigned zone.

First checks

  • dig <name> A +dnssec — RRSIG records, and the ad flag if validated.
  • dig <name> A +cd — the answer with validation switched off.
  • dig <domain> DNSKEY +multiline — the zone's keys and key tags.
  • dig <domain> DS +short — what the parent expects.
  • delv <name> A — validates and prints the reason for a failure.

Verify in this order

parent holds a DS record → DS matches a key in the zone's DNSKEY set → that key signs the zone's keys → records carry valid, unexpired RRSIGs → resolver validates → answer with the ad flag

Where it usually breaks

local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=308

Confirmation

Confirm action

Continue?