Module 21 · DNS Security — DoH, DoT, DNSSEC, Sinkholing

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
May 14, 2026
2 min read
Read as
100% Free

No signup. No paywall. No catch. One of our 10 most-requested practitioner modules — published in full so anyone can learn for free. We earn through consulting, not by gating knowledge.

See all 10 free modules →

Why this module exists. DNS is the most-exploited and most-overlooked protocol layer. DoH, DoT, DNSSEC, and DNS sinkholing each address specific threats. This module covers the modern DNS security stack and operational patterns.

The classic DNS problems

  • Plaintext queries visible to network observers.
  • Response forgery / cache poisoning.
  • No cryptographic authenticity.
  • DNS used for data exfiltration.
  • DGA and fast-flux evading blocklists.

DoH and DoT

Protocol Port Defender visibility
DoT 853/TCP Recognisable at the network layer
DoH 443/TCP mixed with HTTPS Hidden in HTTPS; hard to distinguish
DoQ 443/UDP Newer; similar visibility issues

Enterprise approach: own DoH resolver; force endpoints to use it; block public DoH resolvers like 1.1.1.1, 8.8.8.8 over 443.

DNSSEC

Cryptographic signatures on DNS responses; resolver validates authenticity. Root zone and most TLDs signed; ~30% of authoritative zones signed; .in TLD signed.

DNS sinkholing

Direct queries for malicious domains to a defender-controlled IP. Catches malware C2 callouts, phishing site visits, beacon attempts. Implementations: Pi-hole, BIND with RPZ, Cisco Umbrella, Cloudflare Gateway, Quad9.

DNS exfiltration detection

Attackers tunnel data via DNS subdomains. Signals: long subdomains, high entropy, many unique subdomains per parent domain, TXT queries from unusual endpoints.

DGA detection

Domain Generation Algorithms produce many random names; signal is bursts of NXDOMAIN from one endpoint, statistical / ML analysis of name patterns.

Enterprise DNS architecture

  1. Endpoints use enterprise resolver only.
  2. Enterprise resolver upstream-resolves via known-good providers.
  3. RPZ blocks known-bad domains; threat-intel feed updates RPZ.
  4. DNS logs forwarded to SIEM.
  5. DoH from endpoints blocked except to enterprise resolver.

Common failure modes

  • DoH unblocked from endpoints; visibility gap.
  • DNS logs not in SIEM; high-signal data wasted.
  • RPZ feeds stale.
  • Endpoints use multiple resolvers, some hardcoded.

Key takeaways

  • DNS is high-signal for detection and prevention.
  • Enterprise resolver + block public DoH.
  • DNSSEC for authenticity; DNS sinkholing via RPZ.
  • Detect exfiltration via length/entropy; DGA via NXDOMAIN bursts.
  • Forward DNS logs to SIEM.
Want this for your team?

Custom team training + practitioner advisory

Beyond the free academy — we run private workshops, vCISO advisory, and red-team exercises tailored to your stack. For Indian SMBs scaling past their first hire.

Book team training call Replies in 4 working hrs · India-only · Senior consultants