Anycast DNS
Anycast is a network routing technique in which the same IP address is announced from multiple physical locations and the network automatically delivers each packet to the topologically nearest instance. It is the default deployment model for modern public DNS resolvers.
In plain English
A unicast IP belongs to one server. An anycast IP belongs to dozens or hundreds of identical servers around the world, and the internet's routing protocol picks whichever one is closest to you right now. The effect is faster lookups, better failover, and a much harder target for DDoS.
How it works
Anycast is implemented at the BGP layer: multiple sites announce the same /24 (IPv4) or /48 (IPv6) prefix to their upstream providers. Each upstream router computes the shortest AS-path to that prefix and forwards packets accordingly, so users on different networks land on different physical instances of the same IP. Because DNS is stateless and request/response, there is no session-affinity problem — each query can hit a different node without breaking anything. If a node fails, withdrawing its BGP announcement re-routes traffic to the next-closest site within seconds. Anycast also dilutes DDoS volumes across many sites: 100 Gbps split over 50 PoPs is only 2 Gbps per PoP. The downside is that traceroute and debugging are harder because the "server" is logical, not physical.
Related terms
- DNS — the protocol most often delivered via anycast
- Recursive DNS — public resolvers run anycast
- Authoritative DNS — TLDs and root run anycast
- DoH — anycast still works for HTTPS DNS
- Protective DNS — anycast is how it scales
- TLD — every major TLD is anycast
SecDNS perspective
Every SecDNS resolver IP is anycast across our global PoPs, so your devices reach the nearest node and lookups stay under 20 ms in most regions.