Why One Startup Runs Its Own DNS Server
November 16, 2026
S2, a streaming infrastructure company, has published a detailed account of why they abandoned AWS Route53 and built their own authoritative DNS server. The story is a practical lesson in the limits of managed services and the moment when building infrastructure yourself becomes the rational choice.
The problem started with scale. S2's product uses subdomains for each customer "basin," similar to how AWS S3 uses subdomains for buckets. Each basin needs its own DNS CNAME record. When S2 decided to offer unlimited basins, they needed unlimited DNS records with strong consistency: when a basin is created, its address must be instantly resolvable, or clients wait around for cached NXDOMAIN responses to expire.
Route53 seemed like the obvious solution until they hit a fatal limitation: the API rate limits at approximately 5 UPSERTs per second. This bottleneck was discovered the hard way when a malicious actor rapidly created tens of thousands of basins, saturating their entire Route53 quota. The resulting backlog took hours to process, during which normal DNS updates were completely stuck.
After evaluating alternatives and finding none that met their requirements for unlimited records with strong consistency, S2 built their own DNS server. The post covers the engineering decisions, the trade-offs of running critical infrastructure in-house, and the surprising realization that for their specific use case, self-hosting DNS was both cheaper and more reliable than the managed alternative.
The post resonated strongly on Hacker News, where "it's always DNS" is something of an industry mantra. The discussion covered everything from the feasibility of running your own authoritative DNS to whether AWS's rate limits are intentional architectural constraints or simply product gaps.
Source:
[1] It's always DNS, so why are we running our own? - S2 Blog