Global anycast DNS on SecDNS
SecDNS runs every resolver behind a single set of anycast IPs and hostnames. Wherever your devices are, the network finds the closest healthy PoP, so encrypted DNS feels as fast as your ISP's local resolver.
What it is
Anycast is a routing technique where the same IP address is advertised from many physical locations. BGP, the protocol that glues the internet together, picks the topologically closest advertisement for each user and delivers traffic there. A query from Frankfurt lands on the Frankfurt PoP; a query from Sao Paulo lands on the Sao Paulo PoP; both used the same IP.
For a recursive DNS provider, anycast solves three problems at once: latency (the nearest PoP wins), capacity (load spreads across regions), and resilience (a failing PoP is bypassed automatically).
How it works
Each SecDNS region runs an identical resolver stack and advertises the same anycast prefix into BGP. The advertisements include health-aware withdrawals: if a PoP fails its self-tests, it stops announcing the prefix, and the next-closest PoP picks up the traffic within seconds.
The flow for a single query looks like this:
- The device opens a connection to
dns.secdns.io(or the anycast IP directly). - BGP routes the packet to whichever PoP is topologically closest.
- The PoP terminates the TLS handshake (DoH/DoT) or the UDP/TCP socket (plain DNS).
- The resolver consults its local cache. If the answer is cached, return it.
- On cache miss, the resolver iterates the public DNS hierarchy from a local recursor, then caches the answer and returns it.
Cache state is per-PoP, which is what keeps the cross-region path short. Threat-feed updates and tenant configuration are pushed from the control plane to every PoP within seconds, so policy is consistent regardless of which PoP answers.
Why it matters
DNS sits on the critical path of every internet action. A slow resolver makes every page feel slow; a flaky resolver makes the internet itself feel broken. Two concrete numbers matter most:
- Median latency under normal conditions. SecDNS targets single-digit milliseconds inside a metro served by a PoP. Plain UDP queries typically resolve in 1-5 ms; established DoH or DoT sessions add a small TLS overhead.
- Tail latency under failure conditions. When a PoP fails, the goal is "user does not notice." BGP convergence to the next PoP usually completes in a few seconds, well below the typical client retry threshold.
The third less-discussed benefit is geographic diversity. A regional outage that takes down a single PoP region (cable cut, exchange fire, regional power event) does not take down SecDNS — traffic shifts to neighbouring regions automatically.
How SecDNS implements it
| Property | SecDNS |
|---|---|
| Anycast IPs | Global IPv4 and IPv6 prefixes |
| PoP regions | Multiple across North America, Europe, Asia, and Latin America |
| Health-aware withdrawals | Yes, sub-30-second |
| Per-PoP cache | Yes |
| Control-plane propagation | Seconds |
| Geo pinning | Optional on higher plans |
Every PoP is identical: same resolver software, same threat feeds, same TLS termination. There is no "primary" region; the network treats all PoPs as equals and lets BGP pick. The control plane is multi-region with leader election, so a regional control-plane outage does not stop policy changes from propagating — it only delays them until the next region takes over.
For tenants with data-residency requirements, profiles can be pinned to a specific region or set of regions. Pinned traffic still uses anycast within the allowed set but is denied service from PoPs outside it.