DNS Attacks and Threats
Learn about common DNS attacks including DDoS, cache poisoning, DNS tunneling, and amplification attacks, and how to protect your infrastructure.
Answer snapshot
DNS sits between every internet user and every service, which makes it both a target and a weapon. The major attack categories: volumetric DDoS aimed at authoritative servers, amplification using DNS to attack third parties, cache poisoning to corrupt resolvers' answers, hijacking via compromised registrar accounts, tunneling for data exfiltration, and NXDOMAIN floods designed to exhaust authoritative capacity. Defence is layered: DNSSEC, anycast scaling, rate limiting, registrar locks, and monitoring.
What you'll learn
- Identify the most common DNS attack types and understand how each one exploits DNS infrastructure
- Implement defense strategies including DNSSEC, anycast, rate limiting, and registry locks
- Recognize the signs of DNS tunneling, NXDOMAIN floods, and cache poisoning in your environment
- Design a multi-layered DNS security posture that protects against both volumetric and protocol-level attacks
DNS is a critical part of internet infrastructure, making it a frequent target for attackers. Understanding common DNS attacks helps you protect your domains and choose a DNS provider with the right defenses. Every DNS query your domain receives is a potential attack surface, from the authoritative nameservers to the resolvers your users depend on.
DNS DDoS Attacks
A Distributed Denial of Service (DDoS) attack overwhelms your DNS servers with a flood of queries, making your domain unreachable for legitimate users.
How It Works
- Attacker controls a botnet of thousands or millions of compromised devices
- All devices simultaneously send DNS queries for your domain
- Your DNS servers become overwhelmed and stop responding
- Legitimate users can't resolve your domain — your website, email, and APIs go down
Impact
Even a moderate DNS DDoS can take a website offline. Unlike web server DDoS attacks, DNS attacks affect everything tied to your domain — website, email, API endpoints, and any service using DNS. A single A record or AAAA record becoming unreachable means total service disruption.
Real-World Examples
The 2016 Dyn attack is the most well-known DNS DDoS event. The Mirai botnet directed massive traffic at Dyn's DNS infrastructure, taking down major services including Twitter, Reddit, Netflix, and GitHub for hours. The attack peaked at over 1.2 Tbps and demonstrated how DNS is a single point of failure for the modern internet.
Protection
- Anycast DNS networks absorb attacks across multiple global points of presence — no single server takes the full load
- Rate limiting at the DNS server level drops excessive queries from suspicious sources
- Overprovisioned capacity ensures headroom to handle traffic spikes
- Multi-provider DNS can let another provider keep answering if one provider is overwhelmed, provided both serve the same zone data and DNSSEC is handled correctly
DNScale's anycast network distributes DNS traffic across multiple edge nodes, making it inherently resilient against volumetric DDoS attacks.
DNS Cache Poisoning
Cache poisoning (also called DNS spoofing) tricks a recursive resolver into caching a false DNS record, redirecting users to an attacker-controlled server.
How It Works
- Attacker sends forged DNS responses to a recursive resolver
- If the forged response arrives before the legitimate one and matches the query ID, the resolver caches it
- All users of that resolver are now directed to the attacker's IP
- Users see a convincing fake website or their traffic is silently intercepted
Impact
Cache poisoning can redirect users to phishing sites, intercept email by pointing MX records to malicious servers, or enable man-in-the-middle attacks on TLS connections. It's particularly dangerous because users have no visible indication that anything is wrong.
The Kaminsky Attack
In 2008, Dan Kaminsky discovered a fundamental flaw in DNS that made cache poisoning far easier than previously thought. By targeting random non-existent subdomains, an attacker could inject a forged authority record for the entire parent domain. This vulnerability led to emergency coordinated patching across all major DNS implementations and accelerated the push for DNSSEC deployment.
Protection
- DNSSEC cryptographically signs DNS responses, allowing resolvers to verify authenticity
- Randomized source ports make it harder for attackers to guess query parameters
- DNS over HTTPS (DoH) / DNS over TLS (DoT) encrypt queries between clients and resolvers
DNS Amplification Attacks
An amplification attack exploits DNS servers to amplify a small query into a massive response directed at a victim.
How It Works
- Attacker sends DNS queries with a spoofed source IP (the victim's IP) to open DNS resolvers
- The queries request records that generate large responses (e.g., ANY queries, large TXT records)
- DNS servers send their large responses to the victim's IP
- The victim is flooded with traffic they never requested
Amplification Factor
DNS amplification can achieve amplification factors of 28-54x, meaning a 1 Mbps attack stream becomes a 28-54 Mbps flood hitting the victim. Some specially crafted queries using DNSSEC-signed responses or large zone transfers can achieve even higher ratios.
Protection
- Disable open recursion — don't run a public recursive DNS resolver unless you specifically need one
- Response Rate Limiting (RRL) on authoritative servers limits identical responses to the same IP
- BCP38/BCP84 — network-level source address validation prevents IP spoofing
DNS Tunneling
DNS tunneling encodes data inside DNS queries and responses to bypass firewalls and exfiltrate data.
How It Works
- Attacker sets up a DNS server for a domain they control (e.g.,
evil.com) - Malware on the victim's network encodes stolen data into DNS queries:
encoded-data.evil.com - These queries pass through firewalls because DNS traffic (port 53) is almost always allowed
- The attacker's DNS server decodes the data from the subdomain labels
Detection
- Unusually long domain names in queries (often base32 or base64 encoded subdomain labels)
- High volume of DNS queries to a single domain
- Queries with high entropy in subdomain labels
- DNS query patterns that don't match normal browsing behavior
- Unusual record type distribution — tunneling often uses TXT records or NULL records for larger payloads
Protection
- DNS monitoring and analytics to detect anomalous query patterns — query usage dashboards can reveal unusual spikes
- DNS firewalls that block known malicious domains
- Restricting DNS to only approved recursive resolvers on your network
DNS Hijacking
DNS hijacking changes DNS settings to redirect traffic. It can happen at multiple levels:
| Level | Method | Example |
|---|---|---|
| Router | Attacker changes the DNS server setting on your router | Local network attack |
| Registrar | Attacker gains access to your domain registrar account | Social engineering |
| ISP | ISP intercepts and modifies DNS responses | ISP-level redirection |
| Server | Attacker modifies zone data on the authoritative server | Server compromise |
Real-World Examples
In 2019, the Sea Turtle campaign targeted registrars and DNS providers across the Middle East and North Africa, redirecting traffic from government and military domains. The attackers compromised registrar accounts to change NS records and issued fraudulent SSL certificates for the hijacked domains, intercepting email and VPN credentials at scale.
Protection
- Registry lock on your domain to prevent unauthorized transfers
- Two-factor authentication on registrar and DNS provider accounts
- DNSSEC to detect tampered responses
- Monitor DNS records for unexpected changes — system records like SOA and NS should never change unexpectedly
- CAA records to restrict which certificate authorities can issue certificates, limiting an attacker's ability to obtain fraudulent certs
NXDOMAIN Attack
An NXDOMAIN attack (also called a pseudo-random subdomain attack or Water Torture attack) floods a DNS server with queries for non-existent subdomains, designed to:
- Exhaust the server's resources generating NXDOMAIN responses
- Fill resolver caches with negative entries, pushing out legitimate cached records
- Cause the authoritative server to process each query (no cache hit possible)
These attacks are particularly effective because every query for a random subdomain must be forwarded to the authoritative server — resolvers cannot cache something they have never seen.
Protection
- Aggressive NSEC caching allows resolvers to synthesize NXDOMAIN responses without querying the authoritative server
- Rate limiting on the authoritative server
- DNSSEC with NSEC/NSEC3 enables resolvers to prove non-existence cryptographically
- Anycast distribution spreads the load across multiple nodes
DNS Rebinding
DNS rebinding is a subtle attack that exploits the same-origin policy in web browsers. The attacker controls a domain and initially returns a legitimate IP in the A record. After the TTL expires, subsequent queries return an internal IP address (e.g., 192.168.1.1), allowing the attacker's JavaScript to access internal network resources through the user's browser.
Protection
- DNS pinning in browsers and applications
- Internal DNS firewalls that block external domains from resolving to private IP ranges
- Short minimum TTLs with DNS rebinding protection at the resolver level
Protecting Your DNS with DNScale
DNScale incorporates several layers of protection:
- Anycast network — distributes query load across multiple edge nodes globally, helping dilute volumetric DDoS traffic when paired with capacity and filtering
- DNSSEC support — sign your zones to protect against cache poisoning and response tampering
- Rate limiting — built-in protections against query floods
- Activity logging — monitor DNS changes and detect unauthorized modifications
- Two-factor authentication — secure your account against hijacking
- System record protection — critical SOA and apex NS records cannot be accidentally modified
Best Practices
- Enable DNSSEC for your zones to protect response integrity
- Use a DNS provider with anycast — single-location DNS is vulnerable to DDoS
- Secure your registrar account with 2FA and registry lock
- Monitor your DNS for unexpected record changes — check WHOIS/RDAP data regularly
- Keep TTLs reasonable — very long TTLs mean you can't quickly redirect traffic during an attack
- Consider multi-provider DNS for critical domains — if one provider goes down, the other continues serving
- Deploy CAA records to limit certificate issuance and reduce hijacking impact
- Use TLSA records for DANE to protect mail transport and web TLS
Related Topics
- Anycast DNS Network — how anycast provides DDoS resilience
- DNSSEC Key Management — cryptographic protection for DNS responses
- Global DNS Resolution Balancing — DNScale's distributed architecture
- Multi-Provider DNS Deployment — redundancy across providers
- SSL/TLS Certificates — the certificate system that DNS attacks often target
- Email Security (SPF, DKIM, DMARC) — protecting email from DNS-based attacks
Conclusion
DNS attacks target the foundation of internet connectivity. From volumetric DDoS floods to subtle cache poisoning, these threats can disrupt any online service. Choosing a DNS provider like DNScale with anycast distribution, DNSSEC support, rate limiting, monitoring, and account protections reduces exposure to the most common DNS attack paths.
Frequently asked questions
- Which DNS attacks are most common in 2026?
- Volumetric DDoS against authoritative servers (well-funded, increasingly automated), DNS amplification (still a top reflective DDoS vector despite mitigations), and registrar-account compromise leading to nameserver hijacking. Cache poisoning is rarer at scale thanks to source-port randomisation and DNSSEC adoption, but still happens against unpatched recursive resolvers.
- How does anycast help against DDoS?
- Anycast advertises the same service IP from many physical locations. Volumetric attack traffic is usually spread by internet routing across multiple PoPs rather than forced through one ingress, which raises the operational floor. The distribution is not guaranteed to be equal, so capacity, rate limiting, and upstream scrubbing still matter. See the Anycast DNS guide for the architectural details.
- What's a registrar lock and why does it matter?
- A registrar or registry lock can prevent many unauthorized delegation or transfer changes without additional confirmation through the registrar or registry. Some damaging DNS incidents come from compromised registrar accounts where attackers repoint NS records. A lock raises the bar significantly, but availability, cost, and workflow vary by registrar and TLD.
- Are DNSSEC-signed zones immune to cache poisoning?
- For correctly signed zones queried through validating resolvers, spoofed-response poisoning should fail because the attacker cannot produce valid signatures for the forged data. The protection depends on resolver validation, a complete DS chain, and secure zone keys; it does not protect unsigned zones, broken chains, or compromised authoritative data.
- How do I monitor for DNS attacks against my zones?
- Watch query volume per zone (sudden spikes, especially of unusual record types like ANY); per-source distribution (concentrated traffic from a small set of resolvers can indicate an amplification setup); NXDOMAIN ratios (high NXDOMAIN rates often signal an NXDOMAIN flood). DNScale surfaces these in per-zone analytics. For external monitoring, third-party tools like Datadog, Catchpoint, or DNS-specific platforms add cross-resolver visibility.
Related guides
Security
What Is a DDoS Attack? Types, Impact, and DNS Protection
Learn what DDoS attacks are, how volumetric, protocol, and application-layer attacks work, and how anycast DNS networks protect your infrastructure.
Security
What is DNSSEC? A Plain-Language Guide to DNS Security
DNSSEC explained from first principles — what it is, why it exists, how it works at a high level, and when you should turn it on for your domain.
Security
DNS Amplification Attacks Explained — How They Work and How to Prevent Them
Understand how DNS amplification attacks exploit open resolvers and spoofed IPs to generate massive traffic floods, and learn the prevention techniques that stop them.
Security
How DNSSEC Works — KSK, ZSK, DS, DNSKEY, RRSIG, NSEC Explained
A walkthrough of the DNSSEC chain of trust: how KSK and ZSK signing keys, DS records, DNSKEY records, RRSIG signatures, and NSEC/NSEC3 work together to authenticate DNS answers.
Ready to manage your DNS with confidence?
DNScale provides anycast DNS hosting with a global network, real-time analytics, and an easy-to-use API.
Start free