0Pricing
Cyber Security Academy · Lesson

DNSSEC and DNS Filtering

Defending the name system.

DNSSEC and DNS Filtering is a free Cyber Security Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Defending the Name System

Plain DNS offers no authenticity. Two complementary defenses address this: DNSSEC proves that answers are genuine and untampered, while DNS filtering blocks resolution of known-bad names. Together they protect integrity and reduce attack surface.

This lesson covers how each works and where they fit in a layered DNS security strategy.

What DNSSEC Provides

DNSSEC (DNS Security Extensions) adds cryptographic signatures to DNS data. It guarantees:

  • Origin authenticity — the answer came from the real zone owner.
  • Data integrity — the answer was not modified in transit.

Importantly, DNSSEC does not provide confidentiality. Queries and answers remain in cleartext; for privacy you still need DoT/DoH.

Signing Records: RRSIG

Each record set in a signed zone gets an RRSIG record: a digital signature over that data. The matching public key is published as a DNSKEY record.

A validating resolver fetches the RRSIG and DNSKEY, then verifies the signature. If it fails, the answer is rejected as bogus rather than served to the client.

dig +dnssec example.com A
# Look for the RRSIG record alongside the A record

Chain of Trust and DS Records

Trust flows down the hierarchy. A parent zone publishes a DS (Delegation Signer) record that hashes the child zone DNSKEY. The chain runs: root → TLD → your domain.

A validating resolver starts from the hardcoded root trust anchor and follows DS records down. If any link is missing or wrong, validation fails. Publishing the DS at your registrar is what activates DNSSEC for your domain.

ZSK and KSK

Zones use two key roles:

  • ZSK (Zone Signing Key) — signs the actual records; rotated frequently.
  • KSK (Key Signing Key) — signs the DNSKEY set; longer-lived and referenced by the parent DS.

Splitting roles lets you rotate the ZSK without touching the parent delegation, simplifying key management.

Authenticated Denial: NSEC and NSEC3

DNSSEC must also prove that a name does not exist. NSEC records sign the gaps between existing names, but they let attackers walk and enumerate the entire zone.

NSEC3 fixes this by signing hashed names instead of plaintext, hindering zone enumeration. Prefer NSEC3 (or NSEC3 opt-out) for zones you do not want fully crawlable.

DNSSEC Limitations

Be realistic about scope:

  • No confidentiality, only integrity and authenticity.
  • Validation must happen at a trusted resolver; the last mile to the stub is still unprotected without DoT/DoH.
  • Misconfigured or expired signatures cause outages, so monitor signature validity.
  • Larger responses increase amplification potential if open recursion is left on.

DNS Filtering Basics

DNS filtering uses the resolver as a policy enforcement point. When a client looks up a malicious or unwanted domain, the resolver refuses or rewrites the answer (often to a sinkhole or block page).

It is cheap, fast, and protocol-agnostic: blocking the lookup stops malware C2, phishing, and unwanted categories before a connection is even attempted.

Response Policy Zones (RPZ)

RPZ is a standard way to apply DNS firewall policy. The resolver loads policy zones (local or from threat-intel feeds) and can:

  • Return NXDOMAIN (name does not exist).
  • Return NODATA.
  • Redirect to a sinkhole or walled-garden IP.
  • Pass through with logging.

Sinkholing is powerful for incident response: redirect known C2 domains and watch which hosts try to reach them.

; Example RPZ entry redirecting a malicious domain to a sinkhole
malware-c2.example.   CNAME   sinkhole.security.local.

Threat Intelligence and Categories

Filtering value depends on data quality. Feed the resolver with:

  • Curated malware/phishing/C2 indicator lists.
  • Newly-registered and low-reputation domain feeds (often malicious).
  • Category policies (e.g. block known anonymizers on corporate devices).

Pair filtering with logging so blocked lookups become detection signals, not just silent denials.

Combining DNSSEC and Filtering

The two defenses are complementary, not competing:

  • DNSSEC ensures the answers you do get are authentic and untampered.
  • Filtering/RPZ ensures you never resolve known-bad names in the first place.

Deploy both on validating internal resolvers, add DoT/DoH for last-mile privacy, enforce egress controls, and you have a strong, layered DNS security posture.

Quick Check

Confirm what DNSSEC actually guarantees.

Recap

DNSSEC authenticates DNS answers using RRSIG signatures, DNSKEY/DS chain of trust from the root anchor, and NSEC/NSEC3 for authenticated denial, but provides no confidentiality. DNS filtering (RPZ, sinkholing, threat feeds) prevents resolution of known-bad names and turns blocks into detections.

Used together on validating internal resolvers, with DoT/DoH and egress controls, they form a layered defense against the DNS attacks covered in this course.

Frequently asked questions

Is the “DNSSEC and DNS Filtering” lesson free?

Yes — the full text of “DNSSEC and DNS Filtering” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “DNSSEC and DNS Filtering”?

Defending the name system. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cyber Security Academy?

No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “DNSSEC and DNS Filtering” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cyber Security Academy lesson?

Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. How DNS Works and Its Risks
  2. DNS Spoofing and Cache Poisoning
  3. DNS Tunneling and Exfiltration
  4. DNSSEC and DNS Filtering
← Back to Cyber Security Academy