DNS Cache Poisoning
Cheat sheet · https://pcornel.dk/topic.php?topic=4794
Answer
DNS cache poisoning inserts forged records into a resolver's cache, so every client using it is sent to the attacker. Source port randomization, DNSSEC validation and patched resolvers defend against it.
Remember
- Poisoning affects every client of the resolver.
- Source port randomization and DNSSEC validation defend against it.
- Unpatched resolvers are the usual target.
First checks
- Resolver source port randomisation — enabled
- DNSSEC validation — enabled
unbound-control dump_cache | grep <domain>— inspect cache (Unbound)
Verify in this order
forged response → resolver cache (if accepted) → clients misdirected
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=4794