Use this to understand DNS threats and the controls against them.
DNS Security Fundamentals
DNS security fundamentals: DNS was built without authentication, so it can be spoofed, poisoned, tunneled and abused for DDoS. Protect it with DNSSEC, restricted recursion, encrypted transport, filtering and logging.
client → internal resolver → internet DNS
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
dig +dnssec example.com SOAVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
dig +dnssec example.com SOA # look for the ad flag via a validating resolver
dig @ns1.example.com example.com AXFR # should be refused
dig @<your-dns> example.org +short # from outside: open resolver?
Zone transfers should be limited to secondaries, and resolvers should only answer your own networks.
Step 2 Common mistakes Narrow the fault
- Treating DNS as only an availability service, not a security control.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
dig <domain> +short— resolution- Outbound port 53 firewall rules — only resolvers allowed
- Resolver logs — queries recorded
ReferenceWhy it matters1 section · depth on demand
Baseline
- Clients use only internal or approved resolvers; block outbound UDP/TCP 53 and known DoH endpoints elsewhere.
- Recursive resolvers validate DNSSEC and use filtering/RPZ.
- Authoritative servers do not recurse; zone transfers restricted to secondaries (TSIG).
- Log queries centrally for investigations.
- Registrar account protected with MFA and registry lock for key domains.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
DNS security fundamentals: DNS was designed without authentication or encryption, so answers can be forged, queries observed, and the protocol abused for tunnelling and amplification attacks. At the same time, DNS is a powerful defensive control point because almost every connection begins with a lookup.
| Threat | Control |
|---|---|
| Forged answers / cache poisoning | DNSSEC validation, randomisation |
| Eavesdropping | DoT/DoH to trusted resolvers |
| Malware C2 and phishing domains | Protective DNS, RPZ |
| DNS tunnelling / exfiltration | Monitoring, forced internal resolvers |
| Domain hijacking | Registrar lock, MFA on registrar/DNS accounts |
| Amplification DDoS | No open resolvers, response rate limiting |
| Zone data leakage | Restrict zone transfers |
Record hygiene
- Remove records for retired services, especially CNAMEs to cloud hosts.
- Use CAA records to limit which CAs may issue certificates (
example.com CAA 0 issue "letsencrypt.org"). - Keep TTLs sensible: short before planned changes, longer otherwise.
- Separate internal and external zones (split DNS) without leaking internal names.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in DNS Security → DNS Security Fundamentals. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc4033 · confidence 94%