Post

Scriptable GeoDNS: leaving AWS for Bunny

Vincent Bernat walks through using scriptable GeoDNS to route visitors to the two nearest healthy servers in his seven-node NixOS deployment, replacing Route 53 routing. The example uses resolver location or EDNS client subnet, and health checks are ICMP-based rather than application-level checks.

One subtlety: the simple closest-server helper only handles IPv4, so the linked final script works around that limitation for AAAA records. A Lobsters reader questioned whether seven servers are worthwhile for a blog compared with CDN caching.