Pcornel
Security · DNS Security

DNS Spoofing

Cheat sheet · https://pcornel.dk/topic.php?topic=4795

Back to the Topic

Answer

DNS spoofing in DNS security means answering a query with forged data before the real server replies or from a compromised resolver. DNSSEC signatures let validating resolvers reject the forged answers.

Remember

  • Spoofers race the real server or control the path.
  • DNSSEC lets validators reject forgeries.
  • Encrypted DNS protects client-to-resolver traffic.

First checks

  • dig <domain> @<resolver> vs @1.1.1.1 — compare answers
  • DHCP/router DNS settings — legitimate resolvers
  • DoH/DoT usage policy — encrypted DNS

Commands

dig @1.1.1.1 name

Verify in this order

client query → forged answer (detected by validation)

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=4795

Confirmation

Confirm action

Continue?