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
- Endpoints use enterprise resolver only.
- Enterprise resolver upstream-resolves via known-good providers.
- RPZ blocks known-bad domains; threat-intel feed updates RPZ.
- DNS logs forwarded to SIEM.
- 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.
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.