SecDNS

Global anycast DNS resolution and low-latency PoPs on SecDNS

SecDNS routes every DNS query to the nearest PoP via BGP anycast, with multiple regions across North America, Europe, Asia, and Latin America.

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:

  1. The device opens a connection to dns.secdns.io (or the anycast IP directly).
  2. BGP routes the packet to whichever PoP is topologically closest.
  3. The PoP terminates the TLS handshake (DoH/DoT) or the UDP/TCP socket (plain DNS).
  4. The resolver consults its local cache. If the answer is cached, return it.
  5. 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

PropertySecDNS
Anycast IPsGlobal IPv4 and IPv6 prefixes
PoP regionsMultiple across North America, Europe, Asia, and Latin America
Health-aware withdrawalsYes, sub-30-second
Per-PoP cacheYes
Control-plane propagationSeconds
Geo pinningOptional 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.

Frequently asked questions

What is anycast in plain terms?

One IP address advertised from many physical locations at once. The internet's routing protocol (BGP) hands each user to whichever location is closest, so a user in Frankfurt and a user in Sao Paulo can dial the same IP and reach different servers.

How fast is the resolver in practice?

Inside a metro served by a SecDNS PoP, query latency is typically 1-5 ms over plain UDP and 2-7 ms over established DoH/DoT sessions. Cross-continent users on a backup PoP see roughly 30-80 ms.

What happens if a PoP goes down?

BGP withdraws the route from the affected PoP and traffic shifts to the next closest one within seconds. There is no DNS TTL involved, no client-side change, no user-visible action needed.

Do you have PoPs in my region?

The /status page lists every active PoP and its current health. We add capacity continuously; if a specific region is underserved for your fleet, contact us and we can usually deploy within a quarter.

Does anycast work with encrypted DNS?

Yes. The TLS handshake terminates at whichever PoP BGP routed the connection to. Long-lived DoH/DoT sessions stay pinned to the same PoP for the life of the connection.

Can I pin a profile to a specific region?

Yes, on plans that include geo pinning. By default we route to the nearest healthy PoP; pinning forces a region for data-residency or compliance reasons.