Better HN
topnewbestaskshowjobs
Log inSign up

misker1

40 karma · joined Aug 28, 2025 (1y ago) · 14 submissions

Submissions

comment 8h ago · link · parent

Maybe they got access to an administrator account, which can just bypass all code review settings (the button just turns red in Github, still clickable).

comment 1w ago · link · parent

I am sorry it seemed dismissive, like any technology implementation some decisions have to be made and ours went the way of a library. Looking back in hindsight, maybe CoreDNS or at lease PowerDNS would have been a better pick. At the same time our implementation is narrow, only CNAMEs, so we don't have to worry about a large configuration area.

comment 1w ago · link · parent

New records are added frequently, as clients create unique basins. The problem is it's usually a steady stream... then a massive spike. Modifications are rare, they are usually deleted. These don't really impact the DNS server though, a client could create a million basins and thus new DNS entries, nothing needs to happen at the DNS layer since it's all queried from the Spanner backend when needed.

comment 1w ago · link · parent

I'll admit that we haven't looked at using a Spanner stream with PowerDNS. We did try Spanner and their stale reads feature: https://docs.cloud.google.com/spanner/docs/samples/spanner-r..., however the records were not available instantly after our API said the basin was created. Will investigate.

comment 1w ago · link · parent

Uh, the dashboard data is from CF and it kept changing on me, the data is for 4 weeks. The peak traffic is somewhere at about 120rps for DNS queries. I'll have to look at the PowerDNS + SQL backend combo. My biggest desire was to stay on Route53 and not run anything. Since we had to, I guess it made a little sense to build a custom thing.

comment 1w ago · link · parent

The main two reasons: we have multiple cells per location (we want to keep cells decent in size to reduce failures) and a move between cells is something we have on the roadmap. I tried to find a wildcard solution at the beginning of building this, I just couldn't find a good one.

comment 1w ago · link · parent

Thank you for the advice, the status page move makes a lot of sense! I don't think we have the bandwidth to separate the basin subdomains just now, but very helpful in terms of SPoF.

edit: oh, and the 10 year renewal, that's the top of the list.

comment 1w ago · link · parent

I agree with this too and to be really honest we are still tweaking all the caches between DNS Firewall our S2 DNS server and the CNAMEs we hand out. The instant part was more for new basins being created.

comment 1w ago · link · parent

Ah, I wrote strong consistency but what I really meant was atomic, on the creation side. Before, our basin DNS entries were created async in Route53, and they could stay in that Creating status for a long time (DDoS, provider limits, etc.). Now, once the API says 200, the DNS entry is guaranteed to exist at our nameservers.

Clients use regular resolvers, no special server, accessed via http1/2. The funny thing is that we actually had a client who was relying on DNS being strongly consistent. Since that isn't really feasible, we asked them to add a small delay after creating a basin, and they did.

comment 1w ago · link · parent

Daily queries, over ~7 weeks.

comment 1w ago · link · parent

I wanted to share our journey of running our own DNS server (it's not as scary in the age of AI, but still...). If anyone has questions I can answer them.

12.

It's always DNS, so why are we running our own?(s2.dev ↗)

65 points · by misker1 · 1w ago · 52 comments

13.

Show HN: Send Claude Code tasks to the Batch API at 50% off(github.com ↗)

23 points · by misker1 · 9mo ago · 1 comment