Scriptable GeoDNS: Leaving AWS for Bunny vincent.bernat.ch · 27 points · 13 comm...

@best

Scriptable GeoDNS: Leaving AWS for Bunny vincent.bernat.ch · 27 points · 13 comments · HN thread

TL;DR Vincent Bernat moved his blog's CDN and geo-aware DNS from AWS (CloudFront and Route 53) to bunny.net, citing Route 53's per-zone, per-query and healthcheck fees; his monthly bill dropped from about US$5 to US$1. He uses Bunny's scriptable DNS, a JavaScript handler, to return the two nearest of seven self-hosted servers, and describes the trade-offs he hit along the way.

  • Route 53 costs were US$0.50 per zone, US$0.70 per million geolocation queries, US$0.75 per healthcheck, plus US$1 per month for a KMS key for DNSSEC.
  • Bunny DNS runs user-supplied JavaScript on each query, so the blog returns the two closest alive servers out of seven NixOS VMs across Paris, Nuremberg, Ashburn, Singapore, San Jose, São Paulo and Sydney.
  • The HTTPS DNS record (RFC 9460) would solve latency and fallback, but Chrome ignores records with a non-root target, so it was rejected for now.
  • The hybrid approach returns only the nearest server with a 2-minute TTL when the second server is far away (more than twice the distance and over 1000 miles), otherwise two servers with a 1-hour TTL.
  • Bunny lacks HTTP/3, cannot publish DS records, and its routing helper only supports IPv4; ACME DNS-01 challenges moved to a Hickory DNS server, and luffy.cx is hosted on deSEC to get a DS record.
  • Performance is reportedly on par with AWS so far; the author plans a follow-up after gathering more data.

Discussion Commenters mostly praise Bunny's pricing and scriptable DNS and compare it with cloud provider rates. The thread drifts into the NTP Pool's own DNS load, alternatives such as anycast, and the tooling used for the Terraform setup, which was CDKTF. The mood is friendly and appreciative, with little criticism of the article itself.

  • Bunny's pricing is great; cloud provider rates are excessive (many): Commenters contrast Bunny's near-free DNS with per-query cloud pricing. One notes that the NTP Pool handles about a million DNS queries per second at peak, which would be expensive at cloud rates.
  • Bunny's scriptable DNS and products are underrated (some): Several people single out scriptable DNS as a standout feature and say Bunny's DNS products deserve more attention.
  • Anycast would be an alternative, but is harder (a few): One commenter asks whether anycast and classic routing already solve this. The author and another reply that few providers offer anycast, that it needs BGP traffic engineering, and that DNS is more accessible.
  • CDKTF was useful, but is now deprecated (a few): Commenters point out that CDKTF was deprecated in December 2025, with CDK Terrain as a community fork. One person says the generated HCL reduced dependencies, and another notes AI agents now make writing Terraform less of a burden.
  • Praise for the blog's design and the seven-server setup (a few): Readers enjoy the map animations and the multi-region setup of seven VMs, calling the post one of the favorites of the week.

Links from the comments

#DNS #GeoDNS #CDN #AWS #bunnyNet #Terraform