---
title: "Probing DNS at Cloudflare"
description: "Cloudflare’s DNS team experienced a rollout where a scheduling bug left record changes unpublished for hours, causing slow resolution and certificate failures. DNS failures are hard to catch because they are slow, spread across the network, and partial in impact. To address this, they extended Flamingo, their end-to-end testing framework that runs hundreds of millions of tests daily against the real Cloudflare edge, to support DNS queries. Flamingo is written in Rust and uses a custom DSL with a setup-action-response format, and its modular architecture decouples action logic from scheduling. The DNS module sends queries from every data center, measures propagation latency against expected TTLs, and uses SLO-based error budgets to automatically decide whether to promote or roll back a release."
---

# Probing DNS at Cloudflare

[Cloudflare](https://yomu.fyi/company/cloudflare) · Doug Aaser · Nov 23, 2026

**Type:** Problem & solution

## Summary

Cloudflare’s DNS team experienced a rollout where a scheduling bug left record changes unpublished for hours, causing slow resolution and certificate failures. DNS failures are hard to catch because they are slow, spread across the network, and partial in impact. To address this, they extended Flamingo, their end-to-end testing framework that runs hundreds of millions of tests daily against the real Cloudflare edge, to support DNS queries. Flamingo is written in Rust and uses a custom DSL with a setup-action-response format, and its modular architecture decouples action logic from scheduling. The DNS module sends queries from every data center, measures propagation latency against expected TTLs, and uses SLO-based error budgets to automatically decide whether to promote or roll back a release.

## Context

Cloudflare’s DNS team needed to catch partial, slow, and geographically spread DNS failures that traditional testing missed. They extended Flamingo, an existing end-to-end testing framework that runs hundreds of millions of tests daily against the real Cloudflare edge, to support DNS queries. Flamingo is written in Rust, uses a custom DSL with a setup-action-response format, and has a modular architecture that decouples action logic from scheduling and resource management.

## Approach / What changed

The DNS module was added to Flamingo by implementing a DnsQuery action type and a corresponding handler function that sends DNS queries instead of HTTP requests. The module leverages Flamingo’s existing control plane and scheduler to target specific data centers, environments, or percentages of metals. It measures propagation latency by comparing query results against expected TTLs and SLO-based error budgets, and uses those measurements to automatically decide whether to promote or roll back a release.

## Takeaways

- DNS failures are hard to catch because they are slow, spread across the network, and partial in impact, making traditional testing insufficient.
- Flamingo’s modular Rust architecture allows teams to add new protocol modules by implementing a strongly-typed action enum and a handler function, decoupling action logic from scheduling.
- The DNS module measures propagation latency and compares results against SLO error budgets and burn rates to automatically decide release promotion or rollback.

## FAQ

### How does Flamingo's modular architecture work?

Flamingo uses a strongly-typed Action enum and a handler lookup table that maps actions to dynamically dispatched functions. This decouples action logic from scheduling and resource management, allowing teams to add new protocol modules by implementing the action handler.

### How does Flamingo measure DNS propagation?

Flamingo sends DNS queries from every data center, measures the time until the updated record appears, and compares that latency against expected TTLs. It then aggregates these measurements into SLO-based error budgets and burn rates to assess severity.

### How does Flamingo decide whether to roll back a release?

Flamingo compares DNS propagation measurements against SLO error budgets. If a canary data center shows a spike in propagation latency that burns a significant portion of the error budget quickly, the system automatically halts the rollout and rolls back the change.

**Tags:** [DNS](https://yomu.fyi/topic/dns), [Infrastructure](https://yomu.fyi/topic/infrastructure), [Performance](https://yomu.fyi/topic/performance), [Reliability](https://yomu.fyi/topic/reliability), [Testing](https://yomu.fyi/topic/testing)

- Source: [Cloudflare](https://blog.cloudflare.com/probing-dns-at-cloudflare)
- Source URL: https://blog.cloudflare.com/probing-dns-at-cloudflare
- Ingested by Yomu: 2026-11-23T15:00:16.679Z

[Read original post](https://blog.cloudflare.com/probing-dns-at-cloudflare)
