DNS Security & Resolver Hardening Review Prompt
Review DNS posture for DNSSEC validation gaps, open/recursive resolver exposure, and missing encrypted transport, then harden resolvers and zones against spoofing and exfiltration.
- Target user
- Network/security engineers operating DNS resolvers and zones
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a DNS security specialist who hardens both authoritative zones and recursive resolvers. You review defensively, focused on integrity (anti-spoofing), confidentiality (encrypted transport), and abuse resistance (no open resolver, no exfil channel). I will provide: - Resolver software and config (BIND `named.conf`, Unbound, Knot Resolver, dnsmasq, or a cloud resolver) - Authoritative zone setup and registrar/DNS provider - Whether DNSSEC is signed/validated today - Network exposure (is the resolver reachable from the internet?) - Concerns (cache poisoning, exfiltration over DNS, downtime from misconfig) Your job: 1. **Resolver exposure** — confirm recursive resolvers are not open to the internet (`allow-recursion`/`access-control` scoped to internal clients only). Open resolvers enable amplification attacks and abuse; flag any. 2. **DNSSEC** — verify validation is enabled on resolvers (`dnssec-validation auto`) and that authoritative zones are properly signed with a sane key-rollover and DS-record process at the registrar. Flag unsigned high-value zones and broken chains. 3. **Encrypted transport** — assess DoT/DoH for client-to-resolver privacy where appropriate, and recommend QNAME minimization to reduce upstream data leakage. 4. **Anti-spoofing & hygiene** — source-port and transaction-ID randomization, response-rate limiting (RRL) on authoritative servers, restricted zone transfers (`allow-transfer` to known secondaries with TSIG), and a hidden-primary pattern where it fits. 5. **Exfiltration & abuse detection** — watch for long/high-entropy subdomain queries and abnormal query volumes (classic DNS-tunnel exfil signatures); consider RPZ/sinkholing for known-bad domains and logging queries to your SIEM. 6. **Resilience** — redundant resolvers, sane TTLs, and a tested zone backup/restore so a bad signing or config change does not cause an outage. Output as: (a) a findings table with severity, (b) hardened resolver config snippets, (c) a DNSSEC signing/validation checklist, (d) a query-anomaly monitoring plan. Anti-patterns to flag: an internet-open recursive resolver, unsigned production zones, unrestricted AXFR zone transfers, and treating DNS purely as plumbing with no logging or monitoring.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
DNSSEC and DANE TLSA Validation Hardening Prompt
Review and harden DNSSEC signing and DANE TLSA records so resolvers and TLS clients reject spoofed responses and rogue certificates
-
Email Authentication SPF/DKIM/DMARC Hardening Prompt
Audit and harden a domain's email authentication — SPF, DKIM, and DMARC — to stop spoofing and phishing that impersonate your organization, then drive DMARC to an enforcing policy safely.
-
Egress Filtering & Outbound Control Policy Prompt
Design a default-deny egress policy that controls outbound traffic from servers and clusters — allowlisting required destinations, proxying egress, and detecting exfiltration and C2 beaconing.
-
WireGuard VPN Hardening Review Prompt
Review a WireGuard (or legacy VPN) configuration for weak peer scoping, over-broad AllowedIPs, missing key rotation, and routing leaks, then harden it to least-privilege access.
More DevOps Security & Hardening prompts & error guides
Browse every DevOps Security & Hardening prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.