How we halved DNS build delay and cut memory use by 85%

Alex Fattouche · 2026年11月2日

AI 摘要 AI 生成,可能有误

Cloudflare engineers rebuilt their DNS Zone Builder to handle zones with tens of millions of records by introducing a targeted build planner that chooses the smallest provably safe build instead of full-zone rebuilds, along with a unified scheduler that combines work for the same zone. Because the planner must guarantee byte-for-byte identical output to a full build, the team had to enrich events with details about what changed, handle shared metadata across zones with the same name, and verify plans against fresh database state before writing to Quicksilver. These changes cut peak memory usage by 85% and, by freeing up headroom, halved the time from a DNS change to its data being written to Quicksilver.

When I last wrote about our DNS propagation pipeline in 2022, the Zone Builder received about 250 DNS record changes per second. Today it receives about 700, nearly three times as many, plus about 100 other events, such as zone setting changes. However, the number of events was never the real problem. The problem was the kind of work some of those events needed, and how that work grows with the size of a zone. Some zones now hold more than 20 million records, and we expect them to keep growing toward hundreds of millions.

Each event starts a clock that measures how long it takes us to turn that change into data our authoritative DNS servers can use. We call that work a build. A build reads the current database state, converts it into the format used at the edge, and writes any changes to Quicksilver.

In 2022, per-record builds were 150 times faster than full builds on average. On a test zone with one million records, per-record builds were 4,250 times faster. We ended that post with the obvious next step: do the same thing for zone settings.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 The Cloudflare Blog

Varlock is joining Cloudflare

AI 摘要Varlock, an open-source toolkit for managing environment variables and secrets, is joining Cloudflare while remaining MIT-licensed, vendor-neutral, and actively developed. Varlock's .env.schema approach provides validation, type safety, and secure declarative secret loading as a single source of truth, and planned hosted Varlock features will be redirected into Cloudflare Secrets Store instead. The article also highlights the growing urgency of secrets management in the AI era, outlining work on agentic workflows, credential brokering, and pushing .env.schema as a broader open standard.

Post-quantum cryptography is still safe

AI 摘要Anthropic published theoretical research describing quantum algorithms for the lattice problems (Module-LWE and Module-SIS) underlying post-quantum cryptography standards ML-KEM and ML-DSA, prompting Cloudflare to reassure users that deployed cryptosystems remain secure. The proposed attacks are impractical because they would require quantum computers with billions of qubits—far beyond today's technology—and have runtime so large they qualify as 'galactic algorithms,' with no practical threat indicated. Cloudflare views AI-assisted cryptanalysis as a way to strengthen confidence in cryptography by finding and addressing risks faster, and it continues its post-quantum migration, with 73% of human traffic to Cloudflare now post-quantum encrypted.

Introducing Search for Agents

AI 摘要Cloudflare has introduced Search for Agents, a feature that automatically creates an AI Search instance for a zone, crawls and indexes its content, and exposes a search API from the customer's own domain—removing the need for manual setup and integration. The search endpoint is advertised to AI agents via metadata in HTML pages or YAML front matter when Markdown for Agents is enabled, and it returns retrieved content in Markdown while natively supporting the new HTTP QUERY method. The feature is available to all customers (with limits on Free plans) and follows existing AI Search pricing and configuration options.

Probing DNS at Cloudflare

AI 摘要The article describes how Cloudflare's DNS team extended Flamingo, its internal end-to-end testing framework built in Rust with a modular architecture, to continuously probe DNS record propagation in production from every data center. The DNS module measures how quickly record changes reach authoritative nameservers and the 1.1.1.1 public resolver, feeding these measurements into SLOs and error budgets that can automatically halt or roll back releases when issues appear. This approach addresses DNS failures that are slow, distributed, and partial, and Flamingo's extensibility opens the door to testing other protocols like TCP, UDP, and WebSockets.

How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)

AI 摘要Ruby disclosed ruby2shell (CVE-2026-132825), a critical heap buffer overflow in string case conversion involving legacy single-byte encodings and the German sharp s (ß), which can enable pre-authentication remote code execution in default Rails and Sinatra applications and is fixed in Ruby 3.3.14, 3.4.13, and 4.0.10. Cloudflare WAF now blocks the vulnerability—and a related integer overflow (GHSA-87fm-7w84-j2px)—for all customers, including those on the Free plan, though the WAF is only a compensating control and upgrading Ruby remains the complete fix. Cloudflare has patched its own Ruby systems with no indication of compromise, and urges users to upgrade Ruby runtimes, rebuild container images, and update bundled products like GitLab and Mastodon before public proof-of-concept exploits appear.