# Anycast under attack and under failure: floods absorbed, routes withdrawn everywhere, and which instance answered

> Anycast's promises are tested on its bad days. This part reads what the root server operators and the large resolver operators reported when floods arrived and when routes went wrong, catalogues the ways an anycast service fails with the standard or the incident behind each, writes out by hand the two in-band ways of asking which instance answered (the CHAOS id.server query and the NSID option), and sets anycast beside DNS-based global server load balancing and first-hop redundancy. After reading, you can predict how an anycast service behaves under a flood, a bad route or a configuration error, decode an NSID exchange, and choose the right tool for keeping one address alive.

Source: https://ronutz.com/en/learn/anycast-under-attack-and-under-failure  
Updated: 2026-11-23  
Related tools: https://ronutz.com/en/tools/dig-command-builder, https://ronutz.com/en/tools/dig-output-explainer, https://ronutz.com/en/tools/vrrp-timer-calculator, https://ronutz.com/en/tools/bigip-dns-gslb-simulator

---

[Anycast: one address in many places](https://ronutz.com/en/learn/anycast) defines the technique the way the standards do: one Internet Protocol (IP) service address announced from many autonomous places, the routing system choosing a node for each client, the covering prefix, global and local nodes, why the Domain Name System (DNS) over the User Datagram Protocol (UDP) fits and the Transmission Control Protocol (TCP) strains, and the thirteen root identities behind about two thousand instances. This part takes the same technique to its bad days. It reads what operators reported when floods arrived and when routes went wrong, catalogues the ways an anycast service fails with the standard or the incident behind each, writes out by hand the two in-band ways of asking which instance answered, and sets anycast beside DNS-based global server load balancing (GSLB) and first-hop redundancy, the two other ways of keeping one name or one address alive that the site covers in depth. After reading, you can predict how an anycast service behaves under a flood, a bad route or a configuration error, decode a Name Server Identifier (NSID) exchange from its octets, and choose between the three techniques for a given failure. What happens to the DNS if the root itself fails is in [what happens if the DNS root goes dark](https://ronutz.com/en/learn/what-happens-if-the-dns-root-goes-dark).

## How a flood meets an anycast service

Best Current Practice (BCP) 126, Request for Comments (RFC) 4786, names two ways anycast mitigates a denial of service (DoS). "An Anycast Node can act as a sink for attack traffic originated within its sphere of influence, preventing nodes elsewhere from having to deal with that traffic", and "The task of dealing with attack traffic whose sources are widely distributed is itself distributed across all the nodes that contribute to the service" ([RFC 4786, section 6.1](https://www.rfc-editor.org/rfc/rfc4786.txt)). The first is containment: a botnet concentrated in one region fills that region's node and leaves the rest alone. The second is division: a botnet spread everywhere is cut into as many pieces as there are catchments.

The Internet Architecture Board (IAB) adds the rule that turns this into practice: "care must be taken not to simply withdraw an anycast route in the presence of a sustained DoS attack, since the result would simply move the attack to another service instance, potentially causing a cascaded failure. Anycast adds resiliency when such an attack is instead constrained to a single service instance" ([RFC 7094, section 4.4](https://www.rfc-editor.org/rfc/rfc7094.txt)). A node that fails is withdrawn; a node that is being flooded is kept, and sacrificed if need be, so that its catchment keeps the attack.

The arithmetic of division is simple and misleading. Take the figure the root server operators gave for June 2016, about 17 gigabits per second per root letter (below). Spread evenly over 100 sites it would be 170 megabits per second each, a load many sites carry routinely. But catchments are not equal: "load distribution between nodes is generally unbalanced in terms of request and traffic load" ([RFC 4786, section 3.1](https://www.rfc-editor.org/rfc/rfc4786.txt)), and an attack's sources are distributed by where the attacker's machines are, not by where the operator's capacity is. The even split is the best case; the reports below show the worst.

## What the root server operators reported

The root server operators write a public report when, in their words, an event "was large, noticeable via external monitoring systems, and fairly unique in nature" ([Root Server Operators, Events of 2015-11-30](https://root-servers.org/media/news/events-of-20151130.txt)). Four of them, read on 2026-11-23, make a small natural experiment in anycast under load:

| Event | What arrived | Size, as reported | Who received it | Impact, as reported |
|---|---|---|---|---|
| 30 November 2015, 06:50 to about 09:30 Coordinated Universal Time (UTC), and 1 December, 05:10 to 06:10 UTC | "well-formed, valid DNS messages for a single domain name" (a different one the second day), from source addresses that "appear to be randomized" | "up to approximately 5 million queries per second, per DNS root name server letter receiving the traffic" | "Most, but not all" letters; anycast letters saw it "at a significant number of anycast sites" | links "saturated" near some instances; "timeouts for valid, normal queries to some DNS root name servers from some locations"; "no known reports of end-user visible error conditions" |
| 25 June 2016, 21:45 UTC to about 00:41 UTC on 26 June | "TCP SYN packets in what looks very much like a SYN flood attack, as well as ICMP packets" (SYN: synchronize; ICMP: Internet Control Message Protocol) | "up to approximately 10 million packets per second, per DNS root name server letter", "approximately 17 Gb/s per letter" | "All DNS root name server letters"; anycast letters "at a majority of anycast sites" | the same pattern: saturation near some instances, timeouts from some places, no known end-user errors |
| 23 December 2025, starting between 15:37 and 15:39 UTC, ending between 15:41 and 15:48 UTC | a volumetric attack "in multiple waves" | "peaked at over one terabit per second of attack traffic across all root server identities" | 10 of the 13 identities: all but F, G and H | "an impact on several root server identities, to varying degrees"; "No mitigation actions were taken due to the short time span of the attack (10 minutes)"; no known end-user errors |
| 29 June to 7 July 2026 | not an attack: "well-formed, query-name-minimized queries from tens of thousands of source IP addresses" from "a group of related autonomous systems", "the unintentional result of recent recursive resolver software updates" | average load doubled, from "approximately 1.6M queries per second" to "3.2M queries per second" | all identities | "did not impact the service availability or performance of any root server operator in any measurable way" |

Sources: [Events of 2015-11-30](https://root-servers.org/media/news/events-of-20151130.txt), report of 4 December 2015; [Events of 2016-06-25](https://root-servers.org/media/news/events-of-20160625.txt), report of 29 June 2016; [December 2025 DDoS against multiple DNS root servers](https://root-servers.org/media/news/2025-12-23_DDoS.pdf), DDoS standing for distributed denial of service, and [June 2026 Traffic Increase](https://root-servers.org/media/news/2026-06-29-increase.pdf), both dated July 2026.

Three readings follow from the reports' own words. First, anycast did what RFC 4786 promised and no more: the floods landed "at a significant number of anycast sites" and saturated some of them, so some clients timed out on some letters; anycast spread the damage, it did not erase it. Second, the reason users noticed nothing is a layer above anycast: "Because the DNS protocol is designed to cope with partial reachability among a set of name servers, the impact was, to our knowledge, limited to potentially minor delays" (2015 report). A resolver that times out on one letter asks another; thirteen identities, each anycast and each run by one of twelve operators, are two independent layers of redundancy, and the 2025 report credits "the diversity of root systems" for it. Third, anycast makes attribution harder: "Due to the fact that IP source addresses can be easily spoofed, and because event traffic landed at large numbers of anycast sites, it is unrealistic to trace the incident traffic back to its source", and the operators' remedy is upstream, "Source Address Validation and BCP-38" (2015 and 2016 reports).

The 2016 figures allow one more calculation. Ten million packets and 17 gigabits per second per letter give 17,000,000,000 ÷ 10,000,000 = 1,700 bits, or about 212 octets, per packet on average, if both figures were measured the same way, which the report does not say. A TCP SYN segment alone is much smaller than that, so the average suggests a mix with larger packets, consistent with the ICMP share the report mentions; it cannot say more. The June 2026 event is the useful control: a doubling of legitimate-looking load caused no measurable effect, because, in the words of the root server system's service expectations that the report quotes, each operator is expected to keep "sufficient capacity" for "substantial fluctuations in traffic loads".

## The ways anycast fails

The failure modes of anycast are not exotic. Each is a property of routing applied to a service, and each has a standard that predicted it and, for most, an incident that confirmed it.

| Failure | What happens | Where it is written down |
|---|---|---|
| A node announces, its service is dead | its catchment is sent to a black hole | RFC 4786 asks that "availability of the service triggers the route advertisement, and non-availability of the service triggers a route withdrawal", with "a minimum delay following a withdrawal" to avoid flapping ([section 4.4.1](https://www.rfc-editor.org/rfc/rfc4786.txt)) |
| A node flaps | remote routers dampen the prefix; with some implementations, stable nodes suffer too | "individual nodes' instability may result in stable nodes becoming unavailable" (RFC 4786, section 4.4.4) |
| One covering prefix carries several services | one failing service withdraws them all | "a single malfunctioning service causes all deployed services in a node to be taken off-line" (RFC 4786, section 4.8.2, pessimistic withdrawal) |
| Every node withdraws at once | the service disappears from the whole internet while its servers run | Meta, 4 October 2021; Cloudflare, 14 July 2025 (below) |
| Someone else announces the address | traffic is captured or dropped elsewhere | "A rogue Anycast Node might be difficult to detect by clients or by the operator of the service" (RFC 4786, section 6.3); "anycast allows traffic stealing" (RFC 7094, section 4.4); Cloudflare, 27 June 2024 (below) |
| A local node's route escapes its horizon | the local node receives the world's traffic | "Inadvertent propagation of a route beyond its intended horizon can result in capacity problems for Local Nodes" (RFC 4786, section 4.4.6) |
| The route changes mid-connection | a TCP session lands on a node without its state and is reset | "the TCP connection will likely elicit a connection reset but will certainly result in the disruption of the connection" ([RFC 7094, section 4.2](https://www.rfc-editor.org/rfc/rfc7094.txt)) |
| ICMP returns elsewhere | errors and Path Maximum Transmission Unit Discovery (PMTUD) messages reach the wrong instance | "ICMP messages against packets with anycast source addresses may be routed to servers other than those expected", and PMTUD "may have packets routed to different anycast service instances" (RFC 7094, section 3.2) |
| An attacked node is withdrawn | the attack moves to the next node, and the next | RFC 7094, section 4.4, quoted above |

The TCP row was foreseen at the start. RFC 1546 proposed in 1993 that a TCP opening a connection to an anycast address "should replace the anycast address of its peer, with the address of the host returning the SYN-ACK", so that after the handshake it talks to one host only ([RFC 1546](https://www.rfc-editor.org/rfc/rfc1546.txt)); twenty-one years later RFC 7094 quoted the proposal as something stateful transports "could be enhanced" to do, and still called UDP "the "lingua franca" for anycast today" (section 4.2).

Three of the other rows have public post-mortems written by the operators themselves.

**Everyone withdraws: Meta, 4 October 2021.** Meta's authoritative DNS servers withdrew their Border Gateway Protocol (BGP) announcements by design when unhealthy: "our DNS servers disable those BGP advertisements if they themselves can not speak to our data centers". A maintenance command "unintentionally took down all the connections in our backbone network", every location judged itself unhealthy at once, and "The end result was that our DNS servers became unreachable even though they were still operational" ([Meta Engineering, More details about the October 4 outage, 5 October 2021](https://engineering.fb.com/2021/10/05/networking-traffic/outage-details/)). The rule of RFC 4786, section 4.4.1, worked exactly as written in every node, and that was the failure: a health check that is correct per node needs a guard against all nodes agreeing.

**Everyone withdraws again: Cloudflare, 14 July 2025.** Cloudflare's 1.1.1.1 resolver was "unavailable to the Internet starting at 21:52 UTC and ending at 22:54 UTC", 62 minutes in which "The majority of 1.1.1.1 users globally were affected" ([Cloudflare, 1.1.1.1 incident on July 14, 2025](https://blog.cloudflare.com/cloudflare-1-1-1-1-incident-on-july-14-2025/)). The cause was internal: a configuration error made on 6 June linked the resolver's prefixes to a service still in preparation, lay "dormant", and on 14 July a second change "triggered a refresh of the global configuration", reducing the resolver's service topology "from all locations down to a single, offline location" and so triggering "the global and immediate withdrawal of all 1.1.1.1 prefixes". Cloudflare's own diagnosis of the method is the general lesson: the legacy system "did not follow a progressive deployment methodology", so the change reached every location at once. Two details matter for design. Restoring the routes at 22:20 brought traffic back only to "roughly 77%", because about 23% of edge servers had been reconfigured meanwhile and had to be fixed through change management. And DNS over HTTPS (DoH) "remained relatively stable as most DoH users use the domain cloudflare-dns.com", which "uses a different set of IP addresses": the clients that reached the service by a name on other addresses barely noticed.

**Someone else announces: 1.1.1.1, 27 June 2024.** Cloudflare's account of this incident names two Brazilian networks, and it is told in the Brazilian angle below.

## Which instance answered: two ways on the wire

Every one of these failures is invisible from a single client unless the answer says where it came from. An IP address cannot: under shared addresses "multiple dedicated DNS queries may not go to the same server even though sent to the same IP address", and tools such as ping or traceroute "may well be even less certain to reach the same server as the one which receives the DNS queries" ([RFC 4892, section 1](https://www.rfc-editor.org/rfc/rfc4892.txt)). Two mechanisms carry the identity inside the DNS itself, and BCP 126 calls in-band identification "strongly recommended for services to be distributed using anycast" ([RFC 4786, section 4.9](https://www.rfc-editor.org/rfc/rfc4786.txt)).

### The CHAOS class convention: hostname.bind and id.server

The older one is a convention, not a standard. RFC 4892 (June 2007) records that BIND (Berkeley Internet Name Domain) answers "a TXT (text) resource record in class 3 (CHAOS) for the domain name "HOSTNAME.BIND."" with "a string that can be configured by the name server administrator", that "A refinement ... replaces "BIND." with "SERVER."" to give "ID.SERVER.", and that "VERSION.BIND." returns a software version string ([RFC 4892, section 2](https://www.rfc-editor.org/rfc/rfc4892.txt)). The query is an ordinary one with an unusual class, 27 octets:

```
0000  0c 4a 00 00 00 01 00 00 00 00 00 00 02 69 64 06
0010  73 65 72 76 65 72 00 00 10 00 03
```

| Offset | Octets | Field | Value |
|---|---|---|---|
| 0x00 | `0c 4a 00 00` | ID, flags | 0x0c4a; a plain query, recursion not requested |
| 0x04 | `00 01 00 00 00 00 00 00` | Counts | one question |
| 0x0c | `02 69 64 06 73 65 72 76 65 72 00` | QNAME | "id", "server", root |
| 0x17 | `00 10` | QTYPE | 16, TXT |
| 0x19 | `00 03` | QCLASS | 3, CH (Chaos), where every other query here has `00 01`, IN |

The operators document it. The Internet Systems Consortium (ISC) gives `dig +norec @f.root-servers.net hostname.bind chaos txt` for F-root, whose answer "will contain an IATA three letter airport code, allowing the location of the server to be identified" ([ISC, F-Root](https://www.isc.org/f-root/)). Quad9 gives one command per platform and the answer to expect: `dig +short ch txt id.server. @9.9.9.9` on macOS, Linux and BSD, `nslookup -q=txt -class=chaos id.server. 9.9.9.9 | Select-String "pch"` in Windows PowerShell, and an answer of the form "resXXX.xxx.rrdns.pch.net", for example "res200.vie.rrdns.pch.net"; "If the answer is anything except resXXX.xxx.rrdns.pch.net, then DNS is being transparently redirected" ([Quad9, FAQs](https://docs.quad9.net/FAQs/)). The Windows line goes through nslookup for a reason: Microsoft's Resolve-DnsName, as documented, has parameters for the name, the type, the server and DNSSEC bits, but none for the class ([Microsoft, Resolve-DnsName](https://learn.microsoft.com/en-us/powershell/module/dnsclient/resolve-dnsname)), while nslookup's `set class` accepts "CHAOS: Specifies the Chaos class" ([Microsoft, nslookup set class](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup-set-class)).

RFC 4892 also lists why the convention was not standardized as it stood: "It requires an additional query to correlate between the answer to a DNS query under normal conditions and the supposed identity of the server receiving the query", and "It reserves an entire class in the DNS (CHAOS) for what amounts to one zone" (section 2.2). The second query is a second packet, and on anycast a second packet may meet a second node.

### NSID: the identity inside the answer

RFC 5001 (August 2007) fixes that by putting the identity in the same message. "A resolver signals its desire for information identifying a name server by sending an empty NSID option ... in an EDNS OPT pseudo-RR in the query message"; a server that honours it answers with "identifying information in a NSID option", and "MUST NOT send an NSID option back to a resolver which did not request it" ([RFC 5001, sections 2.1 and 2.2](https://www.rfc-editor.org/rfc/rfc5001.txt)). "The OPTION-CODE for the NSID option is 3" (section 2.3), still the value in the Internet Assigned Numbers Authority (IANA) registry read on 2026-11-23 ([IANA, DNS EDNS0 Option Codes](https://www.iana.org/assignments/dns-parameters/dns-parameters-11.csv)). Here is a query for the root's name servers with recursion not requested and an empty NSID, 32 octets:

```
0000  0d 15 00 00 00 01 00 00 00 00 00 01 00 00 02 00
0010  01 00 00 29 04 d0 00 00 00 00 00 04 00 03 00 00
```

| Offset | Octets | Field | Value |
|---|---|---|---|
| 0x0a | `00 01` | ARCOUNT | one additional record, the OPT |
| 0x0c | `00` | QNAME | the root |
| 0x0d | `00 02 00 01` | QTYPE, QCLASS | NS, IN |
| 0x11 | `00` | OPT NAME | "MUST be 0 (root domain)" |
| 0x12 | `00 29` | OPT TYPE | 41 |
| 0x14 | `04 d0` | OPT CLASS | "requestor's UDP payload size": 1,232 |
| 0x16 | `00 00 00 00` | OPT TTL | "extended RCODE and flags": all zero |
| 0x1a | `00 04` | RDLEN | 4 |
| 0x1c | `00 03` | OPTION-CODE | 3, NSID |
| 0x1e | `00 00` | OPTION-LENGTH | 0: the request is empty |

The fixed part of the OPT record follows RFC 6891's table ([RFC 6891, section 6.1.2](https://www.rfc-editor.org/rfc/rfc6891.txt)); the Extension Mechanisms for DNS (EDNS) are explained field by field in [EDNS and the OPT pseudo-section](https://ronutz.com/en/learn/edns-and-the-opt-pseudosection). A server that honours the request puts its own OPT record in the additional section of the answer, with the payload filled in. With an illustrative identifier, "node-17":

```
00  00 29  04 d0  00 00 00 00  00 0b  00 03  00 07  6e 6f 64 65 2d 31 37
```

RDLEN is now 11, `00 0b`: four octets of option header and seven of payload. The payload is whatever the operator chose. RFC 5001 insists that "The NSID payload is binary data" and that "User interfaces MUST read and write the contents of the NSID option as a sequence of hexadecimal digits, two digits per payload octet" (section 2.4), so a correct tool prints `6e6f64652d3137` and may add the text it happens to spell. The choice of payload is a security decision RFC 5001 discusses at length: the real name or unicast address is "simple", but "some name server operators are likely to want an identifier other than the "real" name or "real" address", and the default it suggests for operators who will not reveal the unicast address is "the raw binary representation of a probabilistically unique random number" (section 3.1).

NSID is "strictly a hop-by-hop mechanism" (section 3.2). Sent to a public resolver, it identifies the resolver instance that answered, never the authoritative server the resolver asked. To learn which root instance a resolver used, there is no field; you have to ask the root yourself. The clients spell the request differently: BIND's dig has `+nsid`, which "includes an EDNS name server ID request when sending a query" ([BIND 9 manual pages, dig](https://bind9.readthedocs.io/en/latest/manpages.html)); Knot's kdig has `+[no]nsid`, "Request the nameserver identifier (NSID)" ([Knot DNS, kdig](https://www.knot-dns.cz/docs/latest/html/man_kdig.html)); ldns's drill lists `+nsid` among its EDNS query options ([Debian, drill(1)](https://manpages.debian.org/bookworm/ldnsutils/drill.1.en.html)). The [dig command builder](https://ronutz.com/en/tools/dig-command-builder) writes the dig form and the [dig output explainer](https://ronutz.com/en/tools/dig-output-explainer) reads the `NSID:` line it prints.

## Anycast, GSLB and first-hop redundancy compared

Three techniques keep "one thing" alive while the machines behind it change, and they are often confused because each one, from the client's side, looks like an address that keeps working. They decide in different places, from different information, at different speeds. GSLB is taken apart in [GSLB in two tiers](https://ronutz.com/en/learn/gslb-two-tier-pool-then-member) and timed in [ADC and GSLB redundancy](https://ronutz.com/en/learn/adc-and-gslb-redundancy-health-monitors-pools-and-site-failover); first-hop redundancy, the Virtual Router Redundancy Protocol (VRRP) and Cisco's Hot Standby Router Protocol (HSRP), in [First-hop redundancy: VRRP, HSRP](https://ronutz.com/en/learn/first-hop-redundancy-vrrp-and-hsrp) and, at scale and with the data centre's anycast gateway, in [Default gateway redundancy at scale](https://ronutz.com/en/learn/default-gateway-redundancy-vrrpv3-glbp-and-anycast-gateways). The table sets them side by side.

| Question | IP anycast | DNS-based GSLB | First-hop redundancy (VRRP, HSRP) |
|---|---|---|---|
| What stays the same | one service address on the internet | one name | one default gateway address and one virtual media access control (MAC) address on a link |
| Who decides | the routing system, including "routing policies and topology changes" of networks "operated by others" (RFC 4786, section 4.4.7) | the authoritative server, answering a resolver | the routers on one link, by election |
| What it knows about the client | nothing beyond where packets come from | the resolver's address: "the source address is that of the Recursive Resolver rather than of the query originator" ([RFC 7871, section 1](https://www.rfc-editor.org/rfc/rfc7871.txt)), unless the resolver sends a client subnet | nothing; every host on the link uses the same gateway |
| How failure is noticed | whatever health logic the operator couples to the route | probes and health monitors | missing advertisements |
| How fast clients move | as fast as the withdrawal propagates; no cache to expire | after the answer's time to live (TTL) and the resolver's own caching | after the Active_Down_Interval, seconds at default timers |
| What happens to open connections | a route change mid-session resets TCP (RFC 7094, section 4.2) | existing connections stay on the old address; only new lookups move | the virtual MAC moves to the new router; flows continue |
| Where it fits | a few critical services across the internet ("a limited number of Internet-critical services", RFC 4786, section 4.4.8) | any number of names and sites | one subnet |
| Its signature failure | all nodes withdraw at once; a hijack | stale answers in caches; probes that are wrong | a link that splits and leaves two routers both active |

The first-hop row can be computed by hand. RFC 9568 (April 2024), the current VRRP version 3, which obsoletes RFC 5798, defines Skew_Time as "(((256 - Priority) * Active_Adver_Interval) / 256)" and the time a backup waits before declaring the active router down as "(3 * Active_Adver_Interval) + Skew_Time", both in centiseconds, with a default interval of "100 centiseconds (1 second)" ([RFC 9568, section 6.1](https://www.rfc-editor.org/rfc/rfc9568.txt)). A backup of priority 100 at the default interval waits 3 × 100 + (156 × 100) ÷ 256 = 300 + 60.94 = 360.94 centiseconds, about 3.6 seconds; at priority 254, 300 + 0.78 = 300.78, about 3.0 seconds. The [VRRP timer calculator](https://ronutz.com/en/tools/vrrp-timer-calculator) does the same sum.

The GSLB row has a subtlety that ties the two halves of this article together. Because the authoritative server sees the resolver, a GSLB decides by the location of the resolver instance, and public resolvers are themselves anycast. RFC 7871 describes the problem: "a class of Recursive Resolvers has arisen that handles query sources that are often not topologically close" (section 1). Its remedy, EDNS Client Subnet (ECS), is published as Informational, and the large resolvers differ on it. Cloudflare's 1.1.1.1 "does not send the EDNS Client Subnet (ECS) header", except to one Akamai debugging name ([Cloudflare, 1.1.1.1 FAQ](https://developers.cloudflare.com/1.1.1.1/faq/)); Google Public DNS "supports EDNS client subnet (ECS)" and, it says, "uses anycast routing to send users to the geographically closest data center" ([Google, Public DNS performance](https://developers.google.com/speed/public-dns/docs/performance)); Quad9 offers ECS on its 9.9.9.11 service and notes that "ECS will have no effect on which Quad9 location your queries are sent to" ([Quad9, FAQs](https://docs.quad9.net/FAQs/)). Google's "geographically closest" is its own description; the standards say anycast picks the nearest in routing terms, and BCP 126 warns that "Topological nearness within the routing system does not, in general, correlate to round-trip performance across a network" ([RFC 4786, section 3.2](https://www.rfc-editor.org/rfc/rfc4786.txt)). For a client of a resolver that sends no subnet, the GSLB answer is decided by the resolver's anycast catchment.

The three are layers, not rivals. A typical application uses all of them: a name answered by a GSLB, an answer that is itself an anycast address for the front door, and behind each node a server subnet whose gateway is a VRRP pair. Each layer covers a failure the others cannot see. Anycast cannot tell a sick application from a healthy one unless the operator couples the two; GSLB cannot move a client faster than a cache; VRRP cannot help anything beyond its own link.

## The Brazilian angle

Brazil is one of the places the root's anycast reaches deepest. Counting the per-site list on root-servers.org on 2026-11-23, Brazilian cities host 76 operational root server sites belonging to 10 of the 13 identities (all but A, B and G), with 106 instances by the sites' own counts ([root-servers.org](https://root-servers.org/)). F-root, run by ISC, accounts for 43 of the sites, almost all marked local; L-root, run by ICANN, for 16, all global. These figures are a count of that day's list made for this article; the page's own headline for the whole world, "As of 2026-11-23T21:00:53Z, the root server system consists of 2046 operational instances", is a little higher than the sum of the per-site counts, so they are approximate. The FAQ explains the difference that matters here: a local instance's "route advertisement is limited to only nearby networks", such as "ISPs that connect at a particular exchange point" ([root-servers.org, FAQ](https://root-servers.org/faq/)), which is exactly RFC 4786's local node.

Many of those sites began as a project. On 11 May 2012 ICANN announced that NIC.br "has installed 14 new anycast copies of ICANN's L-Root server", operating "together with .br servers at Internet Exchange Points (PTTMetro) across Brazil", 14 of the 20 locations at the time; Frederico Neves, NIC.br's director of technology services, said the most relevant impact was "greatly increasing security, by distributing international connectivity to the name resolution service independently and at the root of the Internet in the country" ([ICANN, Joint Brazilian Network Information Center/ICANN Project Leads to Faster and Safer DNS Resolution in Brazil](https://www.icann.org/news/announcement-2-2012-05-11-en)). That is the containment of RFC 4786 seen from the receiving end: Brazilian queries answered in Brazil keep working when international links do not.

The same reach has a reverse side, and Cloudflare's report on 1.1.1.1 of 27 June 2024 describes it. <Claim status="attributed" by="by Cloudflare, in its incident report of 2024">According to Cloudflare, "1.1.1.1/32 was originated by ELETRONET S.A. (AS267613) and accepted by multiple networks, including at least one Tier 1 provider who accepted 1.1.1.1/32 as a blackhole route", while "1.1.1.0/24 was erroneously leaked upstream by Nova Rede de Telecomunicações Ltda (AS262504)" and "further and widely propagated by Peer-1 Global Internet Exchange (AS1031)"; the resolver became unreachable "from over 300 networks in 70 countries", although the share of users affected was "quite low (less than 1% of users in the UK and Germany, for example)"</Claim> ([Cloudflare, Cloudflare 1.1.1.1 incident on June 27, 2024](https://blog.cloudflare.com/cloudflare-1111-incident-on-june-27-2024/)). The mechanics are textbook. A /32 wins over Cloudflare's /24 by longest prefix match; Cloudflare notes that "Normally, the longest IPv4 prefix accepted in the Default-Free-Zone (DFZ) is a /24" and that its Route Origin Authorization (ROA) allowed only its own origin, AS13335, "with a maximum prefix length of /24", so the /32 was invalid under Resource Public Key Infrastructure (RPKI) origin validation for any network that checked. The provider that accepted it as a remote-triggered blackhole (RTBH) discarded the traffic at its edge. Cloudflare's graphs showed requests from Germany and the United States "landing in Brazilian data centers", and the leaked path was recorded by public route collectors in São Paulo and Fortaleza. The report ends with remedies any operator can apply: route origin validation, rejecting IPv4 prefixes longer than /24, and Autonomous System Provider Authorization (ASPA). [Route origin validation worked by hand](https://ronutz.com/en/learn/route-origin-validation-worked-by-hand) shows the check a /32 like that one fails.

## What operators can do

- **Watch from everywhere, and record who answered.** Monitor "from probes distributed representatively across the routing system" ([RFC 4786, section 5.1](https://www.rfc-editor.org/rfc/rfc4786.txt)), with NSID or id.server in every probe, so that an alert names a node and not just an address.
- **Couple route to health, with brakes.** Withdraw a failed node after a hold-down; never let one decision, or one configuration push, withdraw every node at once. Meta's and Cloudflare's reports describe the two ways it happens; Cloudflare's remedy is staged, health-mediated deployment of addressing changes.
- **Hold under attack.** A flooded node keeps its route so that its catchment keeps the flood (RFC 7094, section 4.4).
- **Sign the origin and filter the length.** Publish ROAs with a maximum length of /24 for IPv4, validate others' routes, and reject longer prefixes; RFC 6382 adds that a unique origin autonomous system number per node gives "routing system discriminators for a given anycasted prefix" ([RFC 6382, Abstract](https://www.rfc-editor.org/rfc/rfc6382.txt)).
- **Keep a second address on a different prefix.** RFC 7094 summarizes the DNS practice of configuring zones "with multiple server addresses for different sets of name servers" (section 2.3), and Cloudflare's DoH users survived 14 July 2025 on other addresses.
- **Make local nodes local by explicit policy.** Propagation should require "explicit attributes for propagation, rather than relying on implicit (default) policy" (RFC 4786, section 4.4.6).
- **Assume a rogue node is possible and authenticate.** RFC 4786 recommends "robust protocols" for anycast services that need authentication or integrity, naming DNSSEC and transaction signatures among its examples (section 6.3); for zone data that means the checks of [DNSSEC end to end](https://ronutz.com/en/learn/dnssec-end-to-end) and the TSIG of [zone transfer messages by hand](https://ronutz.com/en/learn/zone-transfer-messages-by-hand).

## What to remember

- Anycast spreads a flood across catchments and contains a regional one; it does not erase it. The root's floods of 2015, 2016 and 2025 saturated some sites and caused timeouts in places, and users noticed nothing because resolvers moved to other letters.
- Withdraw a node that fails; keep a node that is attacked.
- The worst anycast outages are self-inflicted and global: every node withdrawing at once (Meta 2021, Cloudflare 2025) or someone else's more specific route winning (1.1.1.1, 2024).
- Ask the instance in-band: CHAOS TXT id.server or hostname.bind as a second query, or NSID (EDNS option 3) inside the same answer, printed as hex and never transitive.
- Anycast decides in routing, GSLB in an authoritative answer to a resolver, VRRP on one link; they fail differently and are best used together.

<ReaderQuestions>

- The 2015 flood was valid queries for a single name, the 2016 flood SYN and ICMP packets. Which of the two would a node's health check be more likely to mistake for a failed service, and what would withdrawal do next?
- Meta's and Cloudflare's withdrawals were both correct per node and catastrophic together. What single rule would have stopped both, and what failure would that rule itself cause?
- RFC 5001 recommends a random NSID for operators who do not want to reveal unicast addresses. How would you, as an operator, map that random value back to a site at four in the morning?
- A GSLB sees your resolver's address, and your resolver is anycast and sends no client subnet. When your phone moves from Wi-Fi to a mobile network, which of the three layers in this article changes the answer you get, and why?
- Brazil hosts dozens of local root instances. If an international cable cut isolated a Brazilian region, which DNS queries from that region would still work, and which would fail first?

</ReaderQuestions>

## Sources

- [C. Partridge, T. Mendez and W. Milliken, RFC 1546, Host Anycasting Service, BBN, November 1993, Informational, text copy: the TCP proposal of the section on how UDP and TCP use anycasting (accessed 23 November 2026)](https://www.rfc-editor.org/rfc/rfc1546.txt)
- [J. Abley and K. Lindqvist, RFC 4786, Operation of Anycast Services, IETF, December 2006, BCP 126, text copy: sections 3.1, 3.2, 4.4.1, 4.4.4, 4.4.6, 4.4.7, 4.4.8, 4.8.2, 4.9, 5.1, 6.1 and 6.3 (accessed 23 November 2026)](https://www.rfc-editor.org/rfc/rfc4786.txt)
- [S. Woolf and D. Conrad, RFC 4892, Requirements for a Mechanism Identifying a Name Server Instance, IETF, June 2007, Informational, text copy: sections 1, 2 and 2.2, HOSTNAME.BIND, ID.SERVER and their drawbacks (accessed 23 November 2026)](https://www.rfc-editor.org/rfc/rfc4892.txt)
- [R. Austein, RFC 5001, DNS Name Server Identifier (NSID) Option, IETF, August 2007, text copy: sections 1 to 3.4, behaviour, option code, presentation format, payload choices and hop-by-hop semantics (accessed 23 November 2026)](https://www.rfc-editor.org/rfc/rfc5001.txt)
- [J. Damas, M. Graff and P. Vixie, RFC 6891, Extension Mechanisms for DNS (EDNS(0)), IETF, April 2013, text copy: section 6.1.2, the OPT record's wire format (accessed 23 November 2026)](https://www.rfc-editor.org/rfc/rfc6891.txt)
- [D. McPherson, R. Donnelly and F. Scalzo, RFC 6382, Unique Origin Autonomous System Numbers (ASNs) per Node for Globally Anycasted Services, IETF, October 2011, BCP 169, text copy: Abstract (accessed 23 November 2026)](https://www.rfc-editor.org/rfc/rfc6382.txt)
- [D. McPherson, D. Oran, D. Thaler and E. Osterweil, RFC 7094, Architectural Considerations of IP Anycast, IAB, January 2014, Informational, text copy: sections 2.3, 3.2, 4.2 and 4.4 (accessed 23 November 2026)](https://www.rfc-editor.org/rfc/rfc7094.txt)
- [C. Contavalli, W. van der Gaast, D. Lawrence and W. Kumari, RFC 7871, Client Subnet in DNS Queries, IETF, May 2016, Informational, text copy: section 1, the resolver's address seen by authoritative servers (accessed 23 November 2026)](https://www.rfc-editor.org/rfc/rfc7871.txt)
- [A. Lindem and A. Dogra, RFC 9568, Virtual Router Redundancy Protocol (VRRP) Version 3 for IPv4 and IPv6, IETF, April 2024, text copy: section 6.1, Advertisement_Interval, Skew_Time and Active_Down_Interval (accessed 23 November 2026)](https://www.rfc-editor.org/rfc/rfc9568.txt)
- [IANA, DNS EDNS0 Option Codes (OPT), CSV export of the registry: option 3, NSID (accessed 23 November 2026)](https://www.iana.org/assignments/dns-parameters/dns-parameters-11.csv)
- [Root Server Operators, Events of 2015-11-30, report of 4 December 2015, text: nature, impact and analysis of the query flood (accessed 23 November 2026)](https://root-servers.org/media/news/events-of-20151130.txt)
- [Root Server Operators, Events of 2016-06-25, report of 29 June 2016, text: the SYN and ICMP flood, its rate and impact (accessed 23 November 2026)](https://root-servers.org/media/news/events-of-20160625.txt)
- [Root Server Operators, December 2025 DDoS against multiple DNS root servers, July 2026, PDF: timeline, targeted identities and impact (accessed 23 November 2026)](https://root-servers.org/media/news/2025-12-23_DDoS.pdf)
- [Root Server Operators, June 2026 Traffic Increase, July 2026, PDF: the doubling of query load and its cause (accessed 23 November 2026)](https://root-servers.org/media/news/2026-06-29-increase.pdf)
- [Root Server Technical Operations Association, root-servers.org, home page with the per-letter site list as of 2026-11-23T21:00:53Z: instance count and Brazilian sites (accessed 23 November 2026)](https://root-servers.org/)
- [Root Server Technical Operations Association, FAQ: identifiers, operators, global and local instances (accessed 23 November 2026)](https://root-servers.org/faq/)
- [Internet Systems Consortium, F-Root, web page: anycast and the hostname.bind query (accessed 23 November 2026)](https://www.isc.org/f-root/)
- [ICANN, Joint Brazilian Network Information Center/ICANN Project Leads to Faster and Safer DNS Resolution in Brazil, announcement of 11 May 2012: the 14 L-root copies at PTTMetro exchange points (accessed 23 November 2026)](https://www.icann.org/news/announcement-2-2012-05-11-en)
- [Santosh Janardhan, More details about the October 4 outage, Meta Engineering, 5 October 2021: BGP withdrawal by the DNS servers (accessed 23 November 2026)](https://engineering.fb.com/2021/10/05/networking-traffic/outage-details/)
- [Cloudflare, Cloudflare 1.1.1.1 incident on June 27, 2024, Cloudflare blog: the hijack, the leak, the timeline and the remedies (accessed 23 November 2026)](https://blog.cloudflare.com/cloudflare-1111-incident-on-june-27-2024/)
- [Cloudflare, Cloudflare 1.1.1.1 incident on July 14, 2025, Cloudflare blog: the configuration error, the global withdrawal and the recovery (accessed 23 November 2026)](https://blog.cloudflare.com/cloudflare-1-1-1-1-incident-on-july-14-2025/)
- [Cloudflare, 1.1.1.1 FAQ, developer documentation: ECS policy and the help page (accessed 23 November 2026)](https://developers.cloudflare.com/1.1.1.1/faq/)
- [Google, Public DNS: performance benefits, developer documentation: anycast and ECS (accessed 23 November 2026)](https://developers.google.com/speed/public-dns/docs/performance)
- [Quad9, FAQs, documentation: detecting transparent redirection with id.server, and ECS (accessed 23 November 2026)](https://docs.quad9.net/FAQs/)
- [Microsoft, Resolve-DnsName, PowerShell DnsClient module documentation: parameters and accepted types (accessed 23 November 2026)](https://learn.microsoft.com/en-us/powershell/module/dnsclient/resolve-dnsname)
- [Microsoft, nslookup set class, Windows Server documentation: the CHAOS class (accessed 23 November 2026)](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup-set-class)
- [Internet Systems Consortium, BIND 9 manual pages, 9.21.29-dev documentation: dig +nsid (vendor documentation, accessed 23 November 2026)](https://bind9.readthedocs.io/en/latest/manpages.html)
- [CZ.NIC, kdig: Advanced DNS lookup utility, Knot DNS 3.6.2 documentation: +nsid (vendor documentation, accessed 23 November 2026)](https://www.knot-dns.cz/docs/latest/html/man_kdig.html)
- [Debian, drill(1), ldnsutils 1.8.3 manual page, bookworm: EDNS query options (accessed 23 November 2026)](https://manpages.debian.org/bookworm/ldnsutils/drill.1.en.html)
