Probing DNS at Cloudflare
Cloudflare extended Flamingo, its Rust-based end-to-end testing framework that runs hundreds of millions of tests a day against the production edge, with a DNS module to catch slow, partial DNS failures that unit tests and health checks miss. Flamingo tests use a setup-action-response DSL, and protocol support is added as modules dispatched through strongly typed Action/ActionOutput enums. Scheduling and reporting are handled by the framework. The DNS probe continuously updates a TXT record with a timestamp and queries three authoritative nameservers and 1.1.1.1 from every data center. It asserts freshness within 90s for the authoritative servers and 600s for the resolver. These results feed SLOs whose error-budget burn rates automatically decide whether a canary release is promoted or rolled back.
Related posts
- Why We Built Our Own DNS Infrastructure
Replit mediumAdeptReplit made its repl hosting cluster-aware by running its own authoritative DNS server for *.repl.co, which resolves each repl's domain to the proxy load balancer in the cluster hosting that repl. This avoided a "meta-proxy" layer that would have added two extra hops per request. The Go server, built on miekg/dns, CNAMEs ACME DNS-01 challenges to a GCP-managed validation zone. Because DNS caching can outlive the 60s TTL, proxies in the old cluster use tombstones to transparently forward requests for repls that have moved. Custom domains work unchanged because they already CNAME to <repl id>.repl.co.
- The Case of the Recursive Resolvers
Slack Engineering mediumAdeptSlack's third attempt to enable DNSSEC on slack.com caused a 24-hour outage for under 1% of users. A Route 53 bug produced NSEC responses for the *.slack.com wildcard record without the information validating resolvers need, so names like app.slack.com came back NODATA. The rollback made things worse: the team believed DS records at the .com zone were not cached, but resolvers cache them for up to 24 hours. Removing the DNSKEYs while DS records were still cached caused SERVFAIL until caches were flushed or expired. Lessons include testing wildcard records before rollout, understanding DS record TTLs, and noting that Terraform hid Route 53's warning about disabling signing.
- Throwing Out The Phonebook
Fly.io hardMasterFly.io rebuilt 6PN, its private IPv6 network between Fly Machines, replacing a fleet-wide eBPF map of every migrated Machine's location (hundreds of thousands of entries kept in sync from Corrosion's gossip-replicated SQLite) with lazy, on-demand routes. VXLAN's netlink event for unknown addresses is passed through drift-agent to s6pnforwarderd, which queries local Corrosion and installs a single kernel route. Each host now carries only 100–200 routes, addresses no longer need rewriting, and routes can forward through intermediate hosts to tolerate stale entries or steer around bad links. udp-xdp now only validates same-network traffic and sets an fwmark so the design fails closed. The costs are a roughly one-second first-connection delay from TCP retransmission and broken new conversations if the daemons crash. The migration ran both paths side by side behind per-host flags, tolerating asymmetric routing.
- How we halved DNS build delay and cut memory use by 85%
Cloudflare hardMasterCloudflare's DNS Zone Builder now uses a targeted build planner that picks the smallest provably safe build (resources only, resources plus metadata, apex plus metadata, purge, or full zone) and a unified per-zone scheduler that merges queued work. Zone setting changes no longer rebuild zones with tens of millions of records. The change cut peak memory by 85% and halved the time from a DNS change to its write to Quicksilver. Correctness comes from enriched Kafka events, re-planning against a fresh replica snapshot, careful handling of metadata keys shared across same-name zones, soft Kafka offset commits, byte-for-byte equivalence tests, and a mirror pipeline whose output is diffed against production.
- Block DNS threats with Infoblox rules in Amazon Route 53 Resolver DNS Firewall
AWS Architecture Blog mediumAdeptInfoblox Threat Defense is now in preview as a partner-managed rule in Amazon Route 53 Resolver DNS Firewall, so VPC workloads get Infoblox-maintained domain threat intelligence (Critical through Informational risk categories) without managing domain lists, billed through AWS Marketplace. The walkthrough covers adding the rule on the Advanced tier, associating rule groups with VPCs, enabling Resolver query logging, and running in ALERT mode before switching to BLOCK. Key operational details: Advanced rules can't use ALLOW, so exceptions need a Foundational custom domain list rule at a lower priority number; DNS Firewall fails closed with SERVFAIL by default unless FirewallFailOpen is enabled; and query logs only record unique, non-cached queries.