Some failures arrive with a crash. Others arrive quietly. The service keeps answering, the dashboards stay green, and a change that should already be everywhere simply hasn’t reached anyone yet.

Cloudflare’s DNS team learned this from its own production systems. In one rollout of the service that pushes DNS records out to the company’s edge, a scheduling bug left some record changes unpublished for hours. By every internal sign the service was up and healthy. Customers saw something else: new hostnames resolved slowly, and certificates could not be issued until engineers found and fixed the bug. The company described the incident, and what it built in response, in a post on the Cloudflare blog on 23 November.

A failure that looks like health

The problem with DNS, as the company explains it, is that its failures are slow, spread out and partial. A record changed in a Cloudflare zone has to reach the authoritative nameservers before the wider Internet can see it. Copies then sit in caches nearer to users, each with a time to live that says how long it may be served before it has to be fetched again. A delay anywhere in that chain hurts work that cannot wait, and the company names two kinds: issuing certificates and failing traffic over.

Every system administrator knows the old joke, it’s always DNS, and the company admits the joke has a kernel of truth in it. The protocol depends on many sources of truth wired together, so one misstep can set off a cascade.

A green beacon sits above a branching cream pathway with orange markers and three rounded endpoints against a teal background.

A unit test cannot see a cascade like that. It checks the parts. It cannot tell you whether a change reached a server three continents away inside the time a customer expects. So the team chose to test DNS as customers meet it: all the time, from every data center, and against production itself.

The machine already in the building

The team did not build a new tool. It extended an existing one. Flamingo is Cloudflare’s end-to-end testing framework, already running hundreds of millions of tests a day against the edge. It was first built for complex multi-step HTTP tests, and it played a part in the company’s earlier upgrade of its CDN stack. Its control plane and scheduler let teams aim tests at particular environments, particular data centers, or a percentage of machines. It was designed to run predictably on bare-metal servers where resources are tight.

Engineers write tests for it in a small domain-specific language with three steps: setup, request, response. The company’s reasoning is easy to follow. If people write tests in an ordinary programming language, a failing test leaves them two things to debug, the system under test and the test. Five lines of this language can check that unencrypted traffic to www.cloudflare.com is answered with a 301 redirect to its HTTPS address, and that script can run anywhere on the edge at thousands of requests per minute.

A pink robotic bird dips its beak into a globe against a blue background.

The change that made DNS testing possible was a matter of wording. The middle step stopped being a “request” and became an “action”, meaning anything whose outcome can be measured. Flamingo is written in Rust, and its type system describes each action, an HTTP query or a DNS query, as a strongly typed variant, handed off to a function dispatched at runtime. Scheduling and resource management stay at a higher level, so someone writing a module only has to write the logic. The company says the tool aims to cover more than 80% of use cases.

For the DNS team this meant everything else came free. They had no new probing service to run and no reporting pipeline to integrate with. In the company’s words: “It all just worked.”

A timestamp on a long journey

The probe itself is simple. A TXT record is updated over and over with a timestamp. From every data center, Flamingo queries three authoritative nameserver IPs and Cloudflare’s public resolver, 1.1.1.1. The authoritative servers have to return a timestamp no more than 90 seconds old. The resolver is allowed 600 seconds. In the published example, the test sends its query to 108.162.193.62, labelled amir.ns.cloudflare.com, checks that the response code is NOERROR, requires the authoritative-answer flag, and confirms the timestamp is recent enough.

The design rests on a simple idea. The record carries the time it was written, and the probe compares it with the time it was read. The gap between the two is the delay customers live with. It is the sort of figure behind the company’s recent report that it had managed to halve its DNS update delay.

A stylized yellow-filled hourglass with red end caps and a clock hand sits against a blue background.

Letting the numbers decide

These measurements feed service level objectives, target percentages for metrics such as the share of probes that come in under their thresholds. The logic the company states is direct: if the synthetic probes are failing, customers very likely are too. It measures failure against an error budget, the amount of unreliability a service is allowed. Burning 10% of that budget over three days points to a long-running problem that needs fixing but is not urgent. Burning 10% within one hour, by the company’s definition, means an incident is under way.

The step that matters most is the last one. The SLO data is read during deployments, and Cloudflare’s release systems use it to promote a change or roll it back. If Flamingo sees propagation latency jump in a particular canary data center, the rollout can be stopped automatically, before the fault spreads across the edge.

The company does not say this machinery would have caught the scheduling bug that started it all. The post offers that incident as the reason for the work, not as a catch. It does say DNS is only the beginning, and that Flamingo modules also exist for TCP, UDP and WebSockets, among others. It has also pointed AI models at its own firewall to find gaps.

One phrase in the post is worth reading slowly: large changes, it says, can now ship safely “without the need for a human to keep a constant watch.” The rollout that went wrong did not fail for lack of watchers. It failed because what the watchers looked at said all was well. What the company has built is a second witness, one that sits in every data center and checks the timestamp.