Cloudflare extended Flamingo for production DNS tests from edge data centers, measuring propagation and using evidence to gate releases.
A release can look perfectly healthy and still be broken. That is the lesson the Cloudflare DNS team learned when a rollout of the service that publishes DNS records to the edge hit a scheduling bug: some record changes sat unpublished for hours. The service stayed up and reported healthy, yet new hostnames were slow to resolve and certificates could not be issued until the bug was squashed. Unit tests passed, dashboards were green, and the phone still started ringing.

That failure mode is what makes DNS so difficult to validate. DNS problems are slow, spread across the network, and partial in where they cause impact, so conventional testing and monitoring can miss them entirely. Cloudflare's answer was to test DNS the way customers experience it: constantly, from every data center, and against production. The team extended Flamingo, the end-to-end testing framework already running hundreds of millions of tests a day against Cloudflare's edge, to speak DNS. This article walks through how that extension works, how propagation is measured, and how those measurements now decide whether a release proceeds or is rolled back.
Why green dashboards are not enough
Testing is hard, and testing at scale in a widely distributed system is harder still. Requests traverse many complex pathways and multiple systems before reaching origin, and unit testing alone cannot cover that. What is needed is constant automated testing against real systems, with the outcomes measured so that health decisions rest on evidence rather than assumption.
Flamingo was originally built around complex multi-step HTTP testing, and its scope has grown substantially. It is built from the ground up with Cloudflare's infrastructure in mind: a control plane and scheduler let teams target specific environments, data centers, or percentages of metals, and the tool integrates with custom reporting, metrics, and analytics tooling. It also has to deliver predictable performance while running on bare-metal servers in resource-constrained environments.
The developer experience mattered as much as the architecture. Internal tooling should be easy to use but powerful enough to handle over 80% of all use cases, and a new edge acceptance test framework only succeeds if it pushes teams toward common guidelines and reusable scripts in an environment that is stable, scalable, and manages complexity. Debugging a failing test is the opposite of delightful: if tests are written in a traditional programming language, a failure forces the author to debug both the upstream system and the test itself. Flamingo avoids that by using a custom domain-specific language built on a simple setup-request-response format. A redirect check, for example, sets a hostname, issues a GET, and asserts a 301 status plus the expected Location header. Five lines of code produce a script that can run anywhere on Cloudflare's edge and scale to thousands of requests per minute, and the resulting millions of data points can be turned into graphs describing real-world service performance.
From HTTP requests to arbitrary actions
The key architectural move was small but consequential. Take the setup-request-response format and treat the middle step not as a request but as an action. At that point the system is no longer something that makes HTTP requests; it is something that can perform any action whose outcome can be measured. Flamingo calls these modules, and the team invested heavily in making them easy to write.
Flamingo is written in Rust for its consistent performance characteristics and strong type system. That type system underpins the modularity: strongly-typed enumerations describe inputs and outputs in the action runner, with an `Action` enum covering both HTTP `Query` and `DnsQuery` variants, and an `ActionOutput` enum returning either an HTTP fetch response or a DNS query response. The logic for performing an action is decoupled into a dynamically dispatched function that can be called independently of other actions, leaving scheduling and resource management as higher-level operations the module author never has to worry about. The author focuses only on the logic.
That design is why DNS support arrived quickly. The team added code extending Flamingo so that instead of sending HTTP requests it sends DNS queries, and everything else came for free. The DNS team did not need to manage a new probing service or integrate with reporting pipelines; it all just worked.
Measuring propagation from every data center
DNS is a finicky system because it is hierarchical. When a DNS record changes for a Cloudflare zone, that record must propagate to authoritative servers so the update becomes widely available. To reduce latency, records are stored in physically closer caches, and each record carries a time to live (TTL) that tells the local DNS cache how long to wait before refetching from the authoritative server. Any delay hits time-sensitive operations such as certificate issuance and traffic failover.
To probe DNS, Cloudflare measures how quickly customer record changes propagate to authoritative nameservers and to the public resolver at 1.1.1.1. The test continuously updates a TXT record with a timestamp and queries three authoritative nameserver IPs plus 1.1.1.1 from every data center, asserting freshness within 90 seconds for authoritative servers and 600 seconds for the resolver. A representative test targets a specific authoritative nameserver, in this example amir.ns.cloudflare.com at 108.162.193.62:53, issues a TXT query, and asserts NOERROR, the AA flag, and that the first answer is newer than the current timestamp minus 90 seconds.
SLOs, error budgets, and automated rollback
Cloudflare defines service-level objectives (SLOs) for observing metrics such as availability and latency. An SLO is a percentage of some metric used as a target, measured through service-level indicators (SLIs), which are the actual series of measurements focused on the end-to-end experience a user has when interacting with a system. By constantly sending synthetic Flamingo traffic through production systems, the team builds a picture of what real end users are experiencing and feeds that data into its SLOs. When synthetic traffic encounters issues, the team can be confident Cloudflare customers are hitting issues too and triage accordingly.
SLOs operate in terms of error budgets and burn rates. The error budget is the percentage of downtime a service is willing to tolerate, and the burn rate is the rate of change in that budget at any given time, which lets an automated system understand the severity of an issue. Burning 10% of the error budget over a three-day period might be a long-running issue that is not urgent but is affecting customers and needs attention. Burning 10% within an hour means an incident is occurring and customer impact will be substantial if it is not fixed immediately.
Those numbers now inform deployment decisions. By looking at SLOs while deploying, Cloudflare can make informed judgments on service health and tell releasing systems to either promote a change or roll it back.
What this changes, and what it does not
The practical effect of moving DNS monitoring to Flamingo is that DNS issues can be detected proactively before they spread to the rest of Cloudflare's edge. If Flamingo detects a spike in propagation latency in a specific canary data center, the rollout of a new software version can be halted automatically before it affects the rest of the Internet.
Several caveats are worth keeping in view. The published thresholds, 90 seconds for authoritative servers and 600 seconds for the resolver, are assertions built into the probe rather than guarantees of propagation speed for any particular customer configuration; actual propagation depends on TTLs and resolver behavior. The SLO and burn-rate logic gates Cloudflare's own releases, not customer deployments. And the account describes Cloudflare's internal testing framework rather than a product with published specifications, so the details here should be read as an engineering narrative, not a service commitment.
DNS is just the start for extending Flamingo. Modules already exist for testing TCP, UDP, WebSockets, and several more. Having a tool for quickly testing and monitoring services has let teams deploy large changes safely without a human keeping constant watch, which is the quiet payoff: reliability engineering that removes the need for someone to stare at a dashboard while a release goes out.
Last updated: based on Cloudflare's published engineering post; no changes to the underlying facts have been made.
Reader notes 0
- No notes yet. Corrections and first-hand test results are welcome.
