Lecture 5.5 - DNSSEC

Updated 14 Oct 2026

DNSSEC

[Image]

(DNS Data Flow – Points of Attack diagram: shows the full DNS resolution path from User Device → Recursive Resolver → Root Nameserver → TLD Nameserver → Authoritative Nameserver → Zone File, with 6 labeled attack points)

  • Legend

    • Blue solid arrow → Normal DNS flow
    • Green solid arrow → DNS response
    • Red dashed arrow → Possible attack point
  • Points of Attack (what the attacker can do)

    1. Man-in-the-Middle (On-path)
      • Intercepts DNS queries/responses to eavesdrop, modify, or inject data
      • Mitigation: Use DNS over TLS (DoT) or DNS over HTTPS (DoH)
    2. Cache Poisoning (DNS Spoofing)
      • Injects a forged DNS response to poison the resolver's cache
      • Mitigation: DNSSEC validation, source port randomization, rate limiting
    3. Root Server Compromise / Spoof
      • Forged or altered root server response
      • Mitigation: DNSSEC (chain of trust) and anycast + monitoring
    4. TLD Server Compromise / Spoof
      • Forged or altered TLD server response
      • Mitigation: DNSSEC (chain of trust) and monitoring
    5. Zone File Theft or Tampering
      • Steals or alters DNS zone file (records), leading to malicious responses
      • Mitigation: Secure access control, encryption, audit logs
    6. Authoritative Server Compromise / Spoof
      • Forged or altered authoritative responses
      • Mitigation: DNSSEC signing, server hardening, monitoring

Analogy Think of the DNS lookup path like a chain of couriers passing along a sealed envelope (root → TLD → authoritative server → back to you). At every handoff, someone could secretly swap the envelope's contents. DNSSEC is like each courier stamping a wax seal that only they could have made — if the seal is broken or wrong, you know not to trust what's inside.


Why DNSSEC

  • DNSSEC protects against data spoofing and corruption
  • DNSSEC provides mechanisms to authenticate servers and requests
  • DNSSEC provides mechanisms to establish authenticity and integrity

DNSSEC — How It Works

  • DNSSEC works by adding digital signatures to DNS records
  • When a DNS resolver (the client side) queries a domain, it not only receives the answer (e.g., the IP address) but also a cryptographic signature
  • The resolver then checks this signature against the domain's public key (stored in DNS as DNSKEY records)
  • If the signature is valid, the resolver knows the data is authentic and hasn't been modified

Analogy It's like receiving a signed letter and a copy of the sender's public "signature stamp." You compare the signature on the letter to the stamp — if they match, you know the letter really came from that sender and wasn't altered in transit.


Key Concepts

  • Resource Records with Signatures (RRSIG)
    • Each DNS record set is signed with the domain's private key, creating an RRSIG
  • Public Keys (DNSKEY)
    • The corresponding public key is published in DNS to let resolvers verify signatures
  • Chain of Trust
    • DNSSEC builds a hierarchy of trust, starting from the root zone (.) → top-level domains (e.g., .com) → second-level domains (e.g., example.com)
    • Each level signs the keys of the level below it
  • DS Records (Delegation Signer)
    • Used to link a parent domain's key to its child domain's key, extending the chain of trust

Analogy The Chain of Trust is like a chain of introductions: the government (root) vouches for a notary office (TLD), and that notary office vouches for a specific notary (your domain). You don't need to personally know your domain's notary — you just need to trust the chain of vouching all the way back to the government.


Verification Walkthrough (DS record → DNSKEY)

[Image]

(Diagram: 5-step flow of Resolver Queries → Authoritative Server Responds → Resolver Fetches Public Key → Verifying the Signature → Building Chain of Trust, with a side panel showing DS record hierarchy)

  1. Resolver Queries www.example.com
  2. Authoritative Server Responds
    • A record: 93.184.216.34
    • RRSIG record
  3. Resolver Fetches the Public Key
    • DNSKEY for example.com
  4. Verifying the Signature
    • Verify: A record ↔ RRSIG ↔ DNSKEY
  5. Building Chain of Trust
    • Result: 93.184.216.34 is trusted
  • A DS record contains a hash of the child's DNSKEY record (public key)
    • e.g., .com holds the DS record for example.com
  • Resolver checks example.com's DNSKEY against its DS record in .com
  • The DS record itself is signed (RRSIG) by .com's DNSKEY
  • This links the trust from .com → example.com

Analogy A DS record is like a parent office keeping a fingerprint (hash) of a child office's official seal on file. When you check the child office's seal against the fingerprint the parent office has on record, you confirm the child's seal is genuine — and the parent's own fingerprint record is itself notarized (signed) by a higher authority.


Verification Chain (Trust Anchor → Domain)

DNS Root (Trust Anchor)→DS→Parent Zone→DS→bank.example (DNSKEY + RRSIG)→Verify RRSIG→www.bank.example→192.0.2.10→✓ Authenticated\text{DNS Root (Trust Anchor)} \rightarrow DS \rightarrow \text{Parent Zone} \rightarrow DS \rightarrow \text{bank.example (DNSKEY + RRSIG)} \rightarrow \text{Verify RRSIG} \rightarrow \text{www.bank.example} \rightarrow 192.0.2.10 \rightarrow \checkmark \text{ Authenticated}

  • Hash(Parent Zone’s DNSKEY)\text{Hash(Parent Zone's DNSKEY)}
  • Hash(bank.example’s DNSKEY)\text{Hash(bank.example's DNSKEY)}

Zone-by-zone breakdown

ROOT ZONE
 |── DS for .example
 |── RRSIG(DS)              ← Root signs the DS RRset
      ↓
.example ZONE
 |── DNSKEY
 |── DS for bank.example
 └── RRSIG(DS)               ← .example signs the DS RRset
      ↓
bank.example ZONE
 |── DNSKEY
 |── www A = 192.0.2.10
 └── RRSIG(A)                ← bank.example signs the A RRset

Analogy This is a signed relay race baton pass: Root signs off on 

.example's credentials, .examplesigns off on bank.example's credentials, and finally bank.example signs off on the actual answer (the IP address). Break any one link, and the whole chain becomes untrustworthy.


Complete Flow (End-to-End Example)

User enters:
https://www.bank.example
        |
        ▼
Web Browser
        |
        | "What is the IP?"
        ▼
DNS Resolver
        |
        | DNSSEC validation
        |
        ├── Verify chain from Root
        ├── Verify DS ↔ DNSKEY
        └── Verify RRSIG on A record
        |
        ▼
www.bank.example
A = 192.0.2.10
✓ Authenticated
        |
        ▼
Browser connects to
192.0.2.10
        |
        ▼
Web Server

Analogy It's like checking a passport before letting someone through a border checkpoint: the resolver doesn't just take the IP address at face value — it verifies the entire signature chain first, and only "lets the browser through" to connect once everything checks out.


Benefits and Limitations

Benefits

  • Ensures data integrity: DNS responses can't be modified without detection
  • Provides data origin authentication: the resolver knows the data really comes from the domain's authoritative server
  • Reduces risk of redirection attacks (e.g., phishing, malware sites)

Limitations

  • DNSSEC does not encrypt DNS queries (so privacy isn't protected, unlike DoH/DoT)
  • It requires careful key management and is not yet universally deployed

Analogy DNSSEC is like a tamper-evident seal on a package — it proves the contents weren't swapped or altered, and proves who sent it. But it's not an opaque box: anyone watching the delivery truck can still see where the package came from and where it's going. That's the job of DoH/DoT (encryption), not DNSSEC.