SecDNS

Anycast DNS

Anycast lets the same IP address be advertised from many sites worldwide, so each client reaches the nearest DNS server automatically for low latency and DDoS resilience.

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.

  • 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.

Frequently asked questions

Is anycast a DNS feature?

No. Anycast is a network-layer routing trick used by BGP. DNS just happens to benefit hugely from it because DNS is stateless and short-lived.

Does anycast break TCP or TLS?

Rarely. DNS sessions are short enough that BGP convergence usually does not matter. DoT and DoH connections may occasionally need to be re-established after a route change.