A misconfigured DNS server on your network can be turned into a weapon against someone else, and a spoofed flood of DNS answers can take your own links offline. DNS amplification is a reflection attack: small queries with a forged source address go to DNS servers, which send much larger answers to the victim. This guide explains the mechanism at concept level, then concentrates on what network and DNS operators control: closing open resolvers, response rate limiting (RRL) on authoritative servers, source address validation under BCP 38 and BCP 84, and testing your own exposure. It is written for network operators, DNS administrators and the security teams that support them. For the wider DNS picture, see the DNS Security Guide.
Key takeaways
- Two conditions make the attack possible: networks that let packets leave with forged source addresses, and DNS servers that answer anyone with large responses. Remove either and the attack loses its power.
- Open recursive resolvers are the main problem: CISA identifies resolvers that allow recursion for any Internet client as the most commonly abused reflectors, and BCP 140 says recursive service should not be offered to external networks by default.
- RRL belongs on authoritative servers: ISC recommends response rate limiting for authoritative servers; for recursive servers the fix is restricting who may query them.
- Source address validation is the root fix: ingress filtering under BCP 38 (RFC 2827) and BCP 84 (RFC 3704) stops spoofed packets at the edge, which protects everyone downstream.
- Test from the outside: check your own address ranges for open resolvers and run a spoofing test from inside your network, then repeat after every DNS or edge change.
How amplification works
DNS runs mostly over UDP port 53, and UDP has no handshake, so a server cannot confirm that a query really came from the address in the packet header. An attacker who controls hosts on a network that does not filter forged source addresses sends DNS queries with the victim's address as the source. Every DNS server that answers sends its response to the victim, not to the attacker.
Two properties turn reflection into amplification:
- Size asymmetry: a query is small, but an answer can be many times larger, especially for record types that return lots of data, DNSSEC-signed answers and, historically, queries of type ANY. CISA's guidance notes attackers usually ask for ANY to pull as much zone data as possible. RFC 5358 states that with EDNS0 the amplification factor can reach about 80.
- Distribution: the answers come from thousands of legitimate DNS servers, so the victim sees traffic from real infrastructure rather than a single attacking address, which makes simple source blocking ineffective.
ATT&CK tracks this as T1498.002 Reflection Amplification, a sub-technique of T1498 Network Denial of Service. The attack exhausts bandwidth; it does not exploit a bug in the DNS software, which is why the defences are configuration and network hygiene rather than patches.
| Role | Who it is | What it controls |
|---|---|---|
| Spoofing source | A network that forwards packets with forged source addresses | BCP 38 and BCP 84 ingress filtering at its edge |
| Reflector or amplifier | Open recursive resolver, or an authoritative server answering large responses at high rates | Recursion access control, RRL, minimal ANY responses |
| Victim | The host or network whose address was forged | Upstream scrubbing, provider filtering, capacity, response plan |
Being a victim
When you are the target, the traffic arrives as a wave of UDP packets with source port 53 from many DNS servers. CISA highlights a key indicator: DNS responses that have no matching request from your network. Because the flood usually saturates the link before it reaches your firewall, on-premises filtering alone rarely helps.
- Detect: watch flow telemetry (NetFlow, IPFIX or sFlow) at the edge for sudden spikes of inbound UDP from source port 53 to hosts that do not run resolvers, and for large fragmented UDP responses.
- Mitigate upstream: agree in advance with your transit providers or a scrubbing service how to filter or divert traffic. Remotely triggered black hole routing and BGP Flowspec are the common operator tools; see the RTBH and BGP Flowspec DDoS Mitigation Guide.
- Keep legitimate DNS working: your own resolvers still need to receive answers to queries they sent, so filters should target unsolicited responses rather than all port 53 traffic.
- Follow a plan: contacts, thresholds and decision points belong in a written runbook. The DDoS Response Playbook and the DDoS Protection Guide cover this in depth.
Being a reflector
Most organisations are more likely to be an unwitting reflector than a direct target. Being a reflector costs you bandwidth, can get your address ranges blocked by others and, where the server is exposed by mistake, reveals a gap in configuration control. Common sources of reflection inside an estate:
| Exposure | How it happens | Fix |
|---|---|---|
| Open recursive resolver on a server | Resolver listens on a public interface with recursion allowed for any client | Restrict recursion to internal ranges; bind to internal interfaces only |
| Authoritative server also doing recursion | One server performs both roles, so public clients can recurse | Turn recursion off on authoritative servers; separate the roles |
| Home and branch routers or CPE | Embedded resolver answers on the WAN interface | Restrict to LAN interface (BCP 140 incoming interface selection); firmware configuration standards |
| Cloud instances | Test resolver deployed with a permissive security group allowing UDP 53 from anywhere | Security group and network ACL review; deny inbound UDP 53 unless the host is a published name server |
| Public authoritative servers | Must answer everyone, so can be abused with large answers at high rates | RRL, minimal ANY responses, capacity and monitoring |
RFC 5358 (BCP 140) is the reference for recursive servers. It recommends limiting recursion to intended clients through IP address access lists, incoming interface selection, or TSIG and SIG(0) signed queries for roaming clients, and advises that mobile users run a local caching resolver or use a VPN to a trusted one.
Open resolver hardening
The practical goal is simple: no resolver in your estate should answer recursive queries from the Internet unless you deliberately run a public resolver service, in which case it needs its own abuse controls.
BIND 9
- Authoritative-only servers: CISA's guidance gives
recursion no;andallow-query-cache { none; };in the global options. - Recursive servers: define an ACL of internal ranges and set
allow-recursion(andallow-query-cache) to that ACL. BIND address match lists deny access when no element matches. - Interfaces: use
listen-onto bind the resolver to internal addresses only. The BIND DNS Server Hardening guide covers the wider configuration.
Windows DNS Server
- Authoritative-only: disable recursion on the server's Advanced properties, as CISA describes.
- Internal resolvers: CISA notes that Windows DNS cannot limit recursion to selected clients in the classic configuration, and suggests a separate internal caching-only server behind a firewall that blocks outside access. Do not expose domain controller DNS to the Internet.
Network controls
- Perimeter policy: permit inbound UDP and TCP 53 only to hosts listed as published authoritative name servers, and outbound only from approved resolvers.
- Inventory: keep a register of every system that answers DNS, its role (authoritative, recursive, forwarder) and its owner, and compare it with scan results.
Response rate limiting
An authoritative server has to answer the whole Internet, so access control cannot help. Response rate limiting reduces how often the server sends identical or near-identical answers to the same client network, which caps how useful it is as an amplifier while leaving normal resolvers largely unaffected. ISC recommends RRL only for authoritative servers: it can run on recursive servers but is more likely to cause false positives there.
| Concept | BIND 9 option (inside rate-limit) | Windows DNS Server parameter |
|---|---|---|
| Identical responses allowed per second | responses-per-second | -ResponsesPerSec |
| Error responses allowed per second | errors-per-second, nxdomains-per-second | -ErrorsPerSec |
| Measurement window | window (ISC: default 15 seconds, range 1 to 3600) | -WindowInSec (default 5) |
| Client grouping | ipv4-prefix-length, ipv6-prefix-length | -IPv4PrefixLength (default 24), -IPv6PrefixLength (default 56) |
| Let legitimate clients through | slip (send a truncated answer instead of dropping, so a real client retries over TCP) | -TruncateRate (default 2), -LeakRate (default 3) |
| Trial without enforcement | log-only yes | -Mode LogOnly |
Truncation matters: a forged victim never retries over TCP, but a real resolver does, so a truncated answer keeps service working for genuine clients while denying the attacker the large UDP payload. Microsoft documents that with a TruncateRate of 2, one in every two rate-limited queries receives a truncated response, and with a LeakRate of 3, one in three still gets a normal answer.
Trade-offs: CISA warns that RRL can stop legitimate hosts from getting answers. Large resolvers behind carrier-grade NAT or busy enterprise egress addresses share one source, so start in log-only mode, use BIND exempt-clients for known trusted sources, review what would have been limited, then enforce.
Minimal ANY responses: RFC 8482 (January 2019) lets authoritative operators answer QTYPE=ANY with a single RRset or a small synthesised HINFO record rather than every record at the name, specifically to make the server a less useful amplifier. Check whether your DNS software and DNS provider apply this behaviour.
BCP 38 and source validation
Every reflection attack starts with a spoofed packet. BCP 38 (RFC 2827, May 2000) asks connectivity providers to filter traffic from customers so that packets carry only source addresses from prefixes the customer may legitimately use, dropping and logging the rest. It also asks corporate network administrators to apply the same filtering so their own networks cannot be the source of spoofed attacks. BCP 84 (RFC 3704, March 2004) updates it for multihomed networks.
| Method (RFC 3704) | How it works | Use when |
|---|---|---|
| Ingress access lists | Manually maintained list of permitted source prefixes | Stable edges with few prefixes; most deterministic, but must be updated when addressing changes |
| Strict reverse path forwarding | Accept only if the packet arrives on the interface used to reach its source | Single-homed customer edges with symmetric routing |
| Feasible path RPF | Accept if the arrival interface is any valid path in the routing table | Multihomed edges and asymmetric routing |
| Loose RPF | Accept if any route to the source exists | Dropping unrouted and bogon sources only; RFC 3704 says it cannot be recommended as ingress filtering |
Decision guidance: an enterprise with one or two Internet connections should apply egress filtering at its own border so only its own prefixes leave, which is the cheapest and most deterministic option. Service providers and multihomed networks should apply strict RPF on single-homed customer ports and feasible path RPF where routing is asymmetric. BCP 38 does nothing against floods from valid prefixes, and an attacker inside a permitted prefix can still forge neighbouring addresses, so it reduces rather than removes the problem. The Source Address Validation and Anti-Spoofing Guide covers router configuration in detail.
Testing your own exposure
Only test address ranges and networks you own or are authorised to assess.
- Inventory first: list every public address and cloud security group that permits inbound UDP 53, and match each to a known name server.
- Check for open recursion from outside: from a host outside your network, send a recursive query for a name in a zone you do not host to each public DNS address. A recursive answer from a server meant to be authoritative-only, or from any unexpected host, is a finding. CISA's guidance recommends scanning your own ranges this way.
- Check ANY handling: confirm your authoritative servers or DNS provider return minimal answers to ANY queries.
- Test spoofing from inside: CAIDA's Spoofer client sends test packets with forged sources and reports whether your network lets them out and where filtering occurs. Operators can register to be told when spoofed packets are seen from their autonomous system.
- Trial RRL in log-only mode: enable BIND
log-only yesor Windows-Mode LogOnly, review a week of logs for legitimate clients that would be limited, then enforce. - Roll back safely: keep the previous configuration under version control; if legitimate resolution fails after enforcing RRL or ACLs, revert, widen exemptions and re-run the log-only trial.
- Repeat: schedule the external check monthly and after every DNS, firewall or cloud network change.
Detection and measurement
- What to log: DNS server query and RRL logs, firewall logs for inbound and outbound UDP 53, and edge flow records. See the DNS Logging and Detection Guide.
- Reflector signals: outbound DNS response volume from a host far higher than inbound queries from your own clients, many repeated queries for the same large record from one source network, and RRL log entries showing sustained limiting.
- Victim signals: inbound UDP from source port 53 without matching outbound queries, and sudden link saturation from many DNS server addresses.
Metrics that show the programme is working:
- Number of hosts answering recursive queries from the Internet (target: zero, or only approved public resolvers).
- Percentage of DNS servers in the register with a confirmed role and owner.
- Percentage of authoritative servers (or provider zones) with RRL and minimal ANY responses enabled.
- Edge interfaces with source address validation applied, as a percentage of all customer or Internet-facing interfaces.
- Spoofer test result for each egress point (target: spoofed packets blocked).
- Time from a new open resolver appearing in scans to remediation.
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1498.002 Reflection Amplification (T1498 Network Denial of Service) | The attack technique described here |
| NIST SP 800-53 Rev. 5 | SC-5 Denial-of-service Protection | Rate limiting, upstream filtering, capacity |
| NIST SP 800-53 Rev. 5 | SC-7 Boundary Protection | Perimeter rules for port 53 and egress source filtering |
| NIST SP 800-53 Rev. 5 | SC-22 Architecture and Provisioning for Name/Address Resolution Service; CM-7 Least Functionality | Separating authoritative and recursive roles; disabling unneeded recursion |
| NIST SP 800-53 Rev. 5 | SI-4 System Monitoring | Flow and DNS log monitoring |
| NIST CSF 2.0 | PR.PS-01, PR.IR-01, DE.CM-01 | Configuration baselines, network protection, network monitoring |
| CIS Controls v8.1 | Control 12 Network Infrastructure Management; Control 13 Network Monitoring and Defense | Secure network device configuration and traffic monitoring |
For DNS deployment guidance from NIST, see the NIST SP 800-81 Rev. 3 Secure DNS Deployment Guide.
Common failure patterns
- Combined authoritative and recursive server: a public name server that also recurses for everyone. BCP 140 and CISA both advise separating the roles.
- Forgotten resolvers: lab servers, cloud test instances and branch equipment that answer on public interfaces and never appear in the DNS register.
- RRL switched on blind: enforcing tight limits without a log-only trial, then blocking large legitimate resolvers that share a source address.
- Filtering all port 53 during an attack: blocking every DNS packet at the edge breaks your own resolution; filter unsolicited responses instead.
- Assuming the provider filters spoofing: never confirming egress source validation at your own border or testing it with a tool such as Spoofer.
Practitioner checklist
- Build and maintain a register of every host answering DNS, its role and owner.
- Disable recursion on authoritative-only servers and separate authoritative and recursive roles.
- Restrict recursion to internal ranges with ACLs and bind resolvers to internal interfaces.
- Permit inbound port 53 only to published name servers at the perimeter and in cloud security groups.
- Enable RRL on authoritative servers after a log-only trial, with truncation so real clients can retry over TCP.
- Configure minimal responses to ANY queries, or confirm your DNS provider does.
- Apply egress source address validation at your border, and RPF on customer edges if you are a provider.
- Run external open resolver checks monthly and a spoofing test from each egress point.
- Agree upstream mitigation for inbound floods with your providers and record it in a runbook.
Standards and references
- IETF: RFC 5358 (BCP 140) Preventing Use of Recursive Nameservers in Reflector Attacks
- IETF: RFC 2827 (BCP 38) Network Ingress Filtering
- IETF: RFC 3704 (BCP 84) Ingress Filtering for Multihomed Networks
- IETF: RFC 8482 Providing Minimal-Sized Responses to DNS Queries That Have QTYPE=ANY
- CISA: DNS Amplification Attacks
- ISC: Using Response Rate Limiting (RRL)
- Microsoft Learn: Set-DnsServerResponseRateLimiting
- CAIDA: Spoofer Source Address Validation Measurement Project
Related NHI Mgmt Group resources: DNS Security Guide · DDoS Protection Guide · Source Address Validation and Anti-Spoofing Guide · BIND DNS Server Hardening