Back to Blog Directory
DNS SecurityApr 3, 202612 min read

DNS Water Torture Attacks Explained

Authoritative DNS servers are among the most critical assets in any enterprise network. If your authoritative nameservers go offline, your domains, web applications, email servers, and APIs immediately become unreachable globally. One of the most devastating and difficult-to-mitigate attacks against DNS infrastructure is the DNS Water Torture Attack (also known as a Pseudo-Random Subdomain / PRSD flood).

The Cache-Bypass Mechanism: Attackers do not query your nameserver directly. They query public recursive resolvers (Google 8.8.8.8, Cloudflare 1.1.1.1) for non-existent subdomains (`random123.yourdomain.com`). Because the subdomain does not exist in cache, the resolvers recursively forward millions of queries to your authoritative server, exhausting CPU and upstream transit.

DNS Water Torture Attack Progression

The danger of a PRSD attack lies in its weaponization of trusted open resolvers:

  1. Query Generation: The stresser generates hundreds of thousands of unique DNS queries per second: q9x7z1.targetdomain.com, m4k2p8.targetdomain.com.
  2. Recursive Cache Miss: Open resolvers (Google, Cloudflare, Quad9, ISP resolvers) look up their local cache. Because the subdomain was generated milliseconds ago, it results in a mandatory cache miss.
  3. Recursive Bombardment: Thousands of global recursive resolvers simultaneously forward iterative queries to the victim's authoritative DNS servers.
  4. Authoritative Exhaustion: The victim's BIND 9, PowerDNS, or Knot DNS server spends 100% of CPU time searching zone files and generating NXDOMAIN responses, dropping legitimate queries.

DNS Attack Vectors Comparison Matrix

VectorProtocolSource Traffic OriginPrimary Mitigation
DNS Water Torture (PRSD)UDP Port 53Legitimate Recursive Resolvers (8.8.8.8, etc.)Response Rate Limiting (RRL) + NXDOMAIN Caching
DNS AmplificationUDP Port 53 (ANY)Spoofed Open ReflectorsBGP Anycast + Dropping large ANY query payloads
DNS Query FloodUDP/TCP Port 53Direct Botnet IPsGeo-blocking & IP rate limiting

Authoritative DNS Anycast Topologies & Global Scrubbing

Enterprise DNS architectures protect against water torture attacks by advertising BGP routes across a global Anycast network of 50+ Points of Presence (PoPs):

  • Geographic Query Dilution: Inbound queries from Google (8.8.8.8) and Cloudflare (1.1.1.1) resolvers are routed to the nearest regional PoP rather than hitting a single centralized nameserver.
  • Stateless NXDOMAIN Dropping: Edge routers drop repeated random subdomain patterns using eBPF/XDP filters before the queries reach the DNS daemon.
  • Negative Caching Aggression: Increase SOA negative caching TTLs to encourage public resolvers to cache NXDOMAIN results longer.

Frequently Asked Questions (FAQ)

Why can't I just block 8.8.8.8 and 1.1.1.1 during an attack?

Because hundreds of millions of legitimate internet users rely on Google (8.8.8.8) and Cloudflare (1.1.1.1) to resolve your domain. Blocking them will take your website offline for legitimate visitors.

How does Anycast DNS protect against Water Torture attacks?

Anycast distributes incoming queries across 50+ global points of presence (PoPs), diluting the attack volume and preventing any single nameserver from suffering CPU exhaustion.