DNS spoofing causes users and systems to receive false name-resolution data, redirecting them to an attacker-controlled destination or disrupting access to legitimate services. DNS cache poisoning is a common form: forged data enters a recursive resolver’s cache and can affect many clients until the record expires or the cache is corrected.
How DNS spoofing happens
A resolver sends a query and must decide which response is authentic. An attacker may intercept the request and race the legitimate server, guess transaction identifiers and query details, compromise an authoritative server, change registrar or DNS-provider records, manipulate a local hosts file or resolver setting, or control a network path such as a rogue access point.
NIST identifies several cache-poisoning paths, including packet interception, transaction-ID guessing and query prediction, responses from compromised authoritative servers, incorrect wildcard processing, and removal or modification of resource records.
What an attacker gains
False DNS data can redirect web traffic, email, API calls, software updates, authentication flows, or management connections. TLS validation may stop some redirections, but users can still be exposed through look-alike certificates, downgraded services, applications with weak certificate validation, or protocols that do not authenticate the destination. An attack can also create denial of service by returning incorrect or nonexistent records.
Prevent cache poisoning
- Validate DNSSEC. DNSSEC provides origin authentication and integrity for signed DNS data. Recursive resolvers should validate signatures, and authoritative zones should be correctly signed and monitored.
- Use modern resolver protections. Keep resolver software updated; use strong source-port and transaction-ID randomization, bailiwick checking, and resistance to unsolicited responses.
- Separate roles. Avoid combining unrestricted recursion and public authoritative service on the same exposed instance.
- Restrict recursion. Permit recursive queries only from authorized clients and networks.
- Protect administration. Require MFA for registrar and DNS-provider accounts, use individual identities, and monitor changes to zones, delegation, name servers, and DNSSEC material.
- Control endpoints. Prevent unauthorized changes to resolver settings, hosts files, VPN profiles, and network configuration.
Encrypted DNS solves a different problem
DNS over HTTPS and DNS over TLS can protect confidentiality and integrity between a client and its chosen recursive resolver. They do not prove that the resolver’s answer came from the legitimate authoritative source. DNSSEC and encrypted DNS address different parts of the path and can be used together.
Enterprises should define which resolvers are approved. Unmanaged encrypted-DNS clients can bypass protective DNS, logging, or policy controls even while encrypting transport.
Detect suspicious DNS changes
Monitor authoritative zones, registrar settings, DNSSEC status, resolver health, and important answers from multiple independent locations. Useful indicators include:
- unexpected changes to A, AAAA, CNAME, MX, NS, TXT, or DS records;
- answers that differ between corporate and trusted external resolvers;
- sudden TTL changes or new name servers;
- DNSSEC validation failures;
- certificate warnings or TLS names inconsistent with the requested service;
- clients using unapproved resolvers or modified hosts files;
- unusual bursts of responses, cache misses, or repeated queries to newly observed domains.
Protective DNS can add detection and blocking for known-malicious destinations, but it does not replace secure authoritative DNS, DNSSEC validation, or registrar controls.
Respond to poisoning or unauthorized changes
- Preserve resolver logs, packet captures where available, zone history, provider audit logs, endpoint configuration, and the exact false answers with timestamps.
- Determine the affected layer: endpoint, local network, recursive resolver, authoritative service, registrar, or provider account.
- Remove unauthorized records or configuration and rotate compromised administrative credentials.
- Flush poisoned caches only after the authoritative source and control plane are trustworthy.
- Notify dependent service owners and monitor propagation from independent resolvers.
- Review certificates, authentication events, email delivery, and application logs for activity that occurred during the redirection window.
Practical checklist
- Maintain patched, hardened recursive and authoritative DNS services.
- Restrict recursion and separate recursive from public authoritative roles.
- Deploy and validate DNSSEC where supported.
- Protect registrar and DNS-provider accounts with MFA and change alerts.
- Monitor critical records from multiple networks and resolvers.
- Define approved encrypted-DNS and protective-DNS behavior.
- Preserve evidence and investigate activity during any redirection window.
NIST SP 800-81 Revision 3, the Secure Domain Name System Deployment Guide, provides current guidance for authoritative DNS, recursive resolvers, DNSSEC, encrypted DNS, logging, and protective DNS.

