anycast

This text was analyzed, written and translated by artificial intelligence (AI). It may contain mistakes.How we use AI

A way of running the same server address from many places in the world at once. Each user is sent to a nearby copy. root server A server that answers for the DNS root zone and points to TLD servers. Full definition of root server and large DNS provider A company that runs the name servers for a domain, which may differ from the registrar. Full definition of DNS provider use anycast to make the DNS Domain Name System The internet's directory that links domain names to computer addresses. Full definition of DNS faster and harder to knock offline.

category
DNS and technical foundations

Updated on 5 min read

Anycast is a way of placing the same internet address in many locations at once. A request sent to that address reaches one of the copies, normally one that is close in network terms. The root servers and most top-level domains use it, which helps keep domain name A readable internet name made of labels separated by dots. Full definition of domain name working when one site fails or is attacked.

What anycast is

Normally an IP Internet Protocol The internet's basic rules for sending data, using numeric addresses for every connected device. Full definition of IP belongs to one machine in one place: this is unicast. With anycast, the same address is announced from many separate locations, and each packet is delivered to one of them. RFC Request for Comments A numbered document in the series recording the internet's technical standards and practices. Full definition of RFC 4786 (December 2006), the IETF Internet Engineering Task Force The open body that writes internet standards such as DNS, EPP and RDAP. Full definition of IETF’s best practice for anycast, defines it as making a service address “available in multiple, discrete, autonomous locations”, a definition the DNS terminology document, RFC 9499, reuses.

Each copy of the server is called an instance, or anycast instance. Nothing marks the address as special: RFC 7094 (January 2014) notes that anycast addresses look exactly like ordinary ones. The idea dates back to RFC 1546 (November 1993).

How one address can live in many places

Each site tells the routers around it that the shared addresses can be reached there. Across the internet this is done with the Border Gateway Protocol (BGP), the system networks use to exchange routes. Routers then send each packet to the site that is closest by their own routing measures.

Closest in routing terms is not closest on a map, and not always fastest. RFC 4786 warns that response times may not improve, and may even get worse.

Three more ideas matter:

  • A site’s catchment is the part of the network whose traffic ends up at that site.
  • A global instance can be reached from the whole internet. A local instance is announced only to nearby networks, such as one internet service provider (ISP) or one exchange point.
  • When the service at a site fails, the site should withdraw its route so that traffic flows to another site.

Anycast suits the DNS because most lookups are one small question and one answer. Longer exchanges, such as those over the Transmission Control Protocol (TCP), need more care.

Why the root and TLD servers use it

As of October 2026, the root zone The top of the DNS, listing every TLD and its name servers. Full definition of root zone is served under 13 named authorities, a.root-servers.net to m.root-servers.net, each with one IPv4 and one IPv6 address. These 13 identities are run by 12 independent organizations, because one operator runs two. As of 11 October 2026, root-servers.org counted 2,047 operational instances behind them, a number that generally grows.

Anycast spread at the root after a very large denial-of-service attack on 21 October 2002 that, according to ICANN Internet Corporation for Assigned Names and Numbers The nonprofit that coordinates the global DNS and gTLD policy. Full definition of ICANN, swamped nine of the 13 root servers; RFC 4732 records it too. By late 2007, at least 10 of the 13 used it, according to RFC 7094. RFC 9199 (March 2022) says “most top-level domains” use anycast; one example it gives is .nl, which moved from seven mixed servers to four anycast servers in early 2018.

For gTLD generic top-level domain A top-level domain not tied to a country, run under ICANN contracts. Full definition of gTLD, ICANN’s Registry Agreement The contract between ICANN and a gTLD registry operator. Full definition of Registry Agreement (version of 21 January 2024, as of October 2026) requires 100% DNS service availability each month and allows each name server A server that holds a domain's DNS records and answers lookups. Full definition of name server address at most 432 minutes of downtime a month. It does not mention anycast: it sets the result. The 2026 Round ICANN's second round of applications for new generic top-level domains. Full definition of 2026 Round of new gTLD A generic top-level domain added to the internet through ICANN's New gTLD Program. Full definition of new gTLD goes further. applicant An organization that has applied to ICANN to run a new gTLD. Full definition of applicant must use a back-end provider A company that runs a TLD's technical systems for the registry operator. Full definition of back-end provider that passed ICANN’s RSP Evaluation Program Registry Service Provider Evaluation Program ICANN's one-time technical check of gTLD back-end providers. Full definition of RSP Evaluation Program, and its handbook (version 1.2.2, March 2025, current as of October 2026) says a DNS provider “must implement anycast to all DNS nameservers”.

Anycast and DDoS resilience

In a distributed denial-of-service (DDoS) attack, many machines flood a service with traffic. With anycast, each site receives only the traffic from its own catchment, so an attack from one region stays there while other sites keep answering.

Under attack the load is usually uneven, RFC 9199 notes. Operators can withdraw a site’s route, moving both attack and legitimate traffic elsewhere, or let the site absorb the attack to protect the rest.

ICANN’s factsheet on the attack of 6 February 2007 reported that six of the 13 root servers were affected, and that the two worst affected were the only ones hit that had no anycast yet.

On 23 December 2025, 10 of the 13 root server identities were hit by a DDoS attack distributed denial of service Flooding a service with traffic from many machines, which can take domains offline when aimed at DNS. Full definition of DDoS attack that came in waves, peaked at over one terabit per second in total and lasted just under ten minutes. The operators’ report (July 2026) says the root server system remained available, with “no known reports of end-user visible error conditions”. It credits the design of the DNS and the diversity of independent operators, not anycast by name.

Anycast is a defense, not a cure, and it brings its own risks. RFC 4732 warns that an attacker who gets a network to accept a false route to the address can receive queries and send fake answers. A site that fails but keeps announcing its route sends its whole catchment to a server that does not answer.

What it means for your DNS provider

Most resolver The DNS server that looks up domain names on behalf of users. Full definition of resolver query all of a domain’s listed name servers, so RFC 9199 advises that all of them be similarly capable. A single unicast server cannot be fast everywhere: one in Europe will always be slow for resolvers in California or Australia.

More sites do not automatically mean better service. RFC 9199 cites a 2017 study in which a root server with 8 instances performed much like others with 33 and 144, and concludes that routing engineering can matter more than the number of locations.

Take example.com, with name servers ns1.example.net and ns2.example.net. If both addresses are anycast, a resolver in Madrid and one in Sydney ask the same addresses but get answers from different machines holding the same zone data.

Useful questions for a DNS provider: do all its name servers use anycast, in how many networks and regions, and what happens when a site fails.

  • An authoritative server A DNS server that gives the official answers for a domain or zone. Full definition of authoritative server answers for a zone; anycast is one way to run it in many places.
  • The 13 root server identities are names and addresses; the 2,047 figure counts the instances behind them.
  • Listing several NS record Name Server record A DNS record that lists the name servers responsible for a domain. Full definition of NS record is a separate kind of redundancy. RFC 9199 calls name server replication and anycast complementary.

Sources