JavaScript code running on each DNS query returns the closest servers,... To optimize the performance metrics of this blog, I relied on Amazon CloudFront to serve the assets,1 and Route 53 for the geo-aware DNS2 to direct readers to the closest host serving the content. But Route 53 is expensive: US$0.50 per zone per month, US$0.70 per million geolocation queries, and US$0.75 per healthcheck per month[1], plus US$1 per month for the KMS key[2] needed to sign zones with DNSSEC.
When I discovered that Bunny DNS is almost free[3] for up to 500 domains and features scriptable answers, I made the jump! Plus, it’s a European company based in Slovenia. I had been hosting media assets on CloudFront since 2011. ❦ Route 53 had served bernat.ch since December 2021.
I didn’t use healthchecks as they were too expensive. I didn’t host most of my zones there either, as queries for haproxy.debian.net alone would have cost me around US$10 per month. ❦ Bunny.net[4] started as BunnyCDN in 2015[5]. They added IPv6 support in 2017[6]. I don’t bring a custom domain: I serve the content from the b-cdn.net domain.






