A resolver in Toronto and one in Frankfurt can query the same nameserver address and reach different machines. For a domain operator, the important question is whether each machine can give a usable answer when the path to another site disappears.

One address, several announcements

An Anycast DNS operator advertises the same network prefix from multiple sites. A recursive resolver sends its query to the nameserver address as usual. The networks carrying the query select a route according to their routing policies. Peering and network topology can make a site in another city the preferred path.

What a route withdrawal changes

Imagine a European site becoming unavailable. Once its route is withdrawn and the surrounding networks select another announcement, new packets for the same address can reach another site. The interval during which paths change depends on routing behavior. A service process can also fail while the route stays advertised, so operators need to connect site health with their announcement policy.

A query after one site withdraws its route

  1. 1ResolverSends a query to the published service address.
  2. 2NetworkSelects a remaining route for the shared prefix.
  3. 3Serving siteReads its copy of the zone and returns the authoritative answer.
The delegated nameserver address remains the same throughout this example.

Check the data as well as the path

Choose a record that should be identical at every site and query an authoritative address from independent networks. Compare the answer, authoritative-answer flag and zone serial. If one vantage point still serves yesterday’s record after the others have updated, investigate zone distribution before changing the routing policy. A deliberately geographic application record makes a poor consistency test.

Sources & further reading

Reader questions

Does Anycast decide which application region a user reaches?

It helps select the site that receives the DNS query. That site then applies the zone’s record and routing policy to produce the application address.

What if a resolver already has an answer?

A resolver with a usable cached answer can continue serving it without querying an authoritative site until it needs to refresh.

Can IPv4 and IPv6 lookups reach different sites?

Yes. Each address family has its own routes. Test both when the service publishes nameserver addresses in both families.