DNS Security
Cheat sheet · https://pcornel.dk/topic.php?topic=4791
Answer
DNS security protects name resolution from spoofing, cache poisoning, tunneling and abuse, using DNSSEC validation, encrypted DNS, DNS filtering, response policy zones, sinkholes and query logging.
Remember
- Plain DNS has no authentication.
- DNSSEC protects answers; DoT/DoH protect the transport.
- DNS logs reveal malware and exfiltration.
First checks
dig +dnssec <domain>— DNSSEC datadig @<resolver> <malicious-test-domain>— filtering test- DNS query logs — visibility
Verify in this order
client → resolver (filter, DNSSEC validation, logs) → authoritative
Where it usually breaks
First mismatch in endpoint/identity → path/reachability → policy selection → enforcement/session → protected flow → telemetry/detection; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4791