Iceberg: Automated Verification of DNS Authoritative Engines via Just-in-Time Summarization

Yuxing Xiang (Peking University), Rilin Huang (Peking University), Naiqian Zheng (Peking University), Xin Jin (Peking University)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 1 · Trust but Verify

Overview

Domain Name System (DNS) authoritative engines sit at the core of global internet infrastructure, translating domain queries into network records. When these engines harbor latent software bugs, the consequences are catastrophic, as demonstrated by historical outages across major cloud providers and web services that took down large swaths of the internet. Yet, verifying these engines is exceedingly difficult due to the sheer complexity of the DNS specifications (governed by dozens of RFCs), the scale and diversity of engine implementations (ranging across Go, C, C++, and Rust), and the limitations of traditional testing against massive input state spaces.

Watch on YouTube · Slides

Visual summary for Iceberg: Automated Verification of DNS Authoritative Engines via Just-in-Time Summarization by Yuxing Xiang, Rilin Huang, Naiqian Zheng, Xin Jin
Visual summary for Iceberg: Automated Verification of DNS Authoritative Engines via Just-in-Time Summarization by Yuxing Xiang, Rilin Huang, Naiqian Zheng, Xin Jin

Key moments

  1. 0:00 Introduction and motivation for DNS verification
  2. 2:00 Limitations of ahead-of-time summarization
  3. 4:00 Introduction to Iceberg and just-in-time summarization
  4. 6:00 Core difference between AOT and JIT summarization
  5. 8:00 How Iceberg builds and manages summaries
  6. 10:00 Iceberg workflow and implementation details
  7. 12:00 Verification experience across diverse engines
  8. 13:40 Evaluation results and bug discoveries

Iceberg: Automated Verification of DNS Authoritative Engines via Just-in-Time Summarization

Speakers: Yuxing Xiang (Peking University); Rilin Huang (Peking University); Naiqian Zheng (Peking University); Xin Jin (Peking University)

Conference: USENIX NSDI

YouTube: https://www.youtube.com/watch?v=6gXz92x_6KA

Overview

Domain Name System (DNS) authoritative engines sit at the core of global internet infrastructure, translating domain queries into network records. When these engines harbor latent software bugs, the consequences are catastrophic, as demonstrated by historical outages across major cloud providers and web services that took down large swaths of the internet. Yet, verifying these engines is exceedingly difficult due to the sheer complexity of the DNS specifications (governed by dozens of RFCs), the scale and diversity of engine implementations (ranging across Go, C, C++, and Rust), and the limitations of traditional testing against massive input state spaces.

While formal verification provides a mathematical guarantee of correctness by proving that an engine behaves correctly for all possible inputs, traditional approaches require prohibitive manual engineering. Standard refinement proof methodologies rely on ahead-of-time (AOT) summarization, which demands extensive human effort to write modular specifications for low-level byte manipulations, memory management, and data structure traversals. In this talk, the researchers introduce Iceberg, a novel automated verification framework that replaces AOT summarization with just-in-time (JIT) summarization. By leveraging zone data and configuration state as concrete runtime invariants, Iceberg automatically prunes unreachable execution paths during symbolic execution, eliminating the need for manual module specifications while scaling formal verification to complex, in-production DNS software.

Background

▶ Watch: Introduction and motivation for DNS verification (0:00)

The foundational context for Iceberg builds upon prior work in systems verification, most notably DNSV, an automated verification framework published at SOSP 2023 that targeted an in-production DNS engine at Alibaba Cloud. DNSV utilized a layered refinement approach powered by ahead-of-time summarization. In this architecture, higher-level modules with clean functional behavior were symbolically executed to produce automated code summaries, while low-level modules handling byte manipulation, memory management, and data structure traversals required tedious, handwritten specifications to abstract away implementation details.

When attempting to scale the DNSV approach to broader open-source engines, the manual specification bottleneck became starkly apparent. The authors estimate that applying AOT summarization to BIND 9 (the most widely deployed DNS engine) would require manual specifications for roughly 64% of its functions, equating to thousands of lines of code. Similarly, CoreDNS and PowerDNS would require manual specifications for 38% and 44% of their functions, respectively. Writing these specifications demands rare dual expertise in formal methods and the specific engine's implementation, taking months of expert labor per engine and introducing high fragility whenever the underlying source code evolves. This maintenance burden renders traditional ahead-of-time verification economically and logistically unviable for the broader systems engineering community.

Key Findings

▶ Watch: Introduction to Iceberg and just-in-time summarization (4:00)

Evaluating Iceberg across four major, diverse open-source DNS engines—CoreDNS (written in Go), BIND (written in C), PowerDNS (written in C++), and Knot DNS (written in Rust)—yielded significant discoveries regarding software correctness and the efficacy of JIT summarization:

  • Bug Discovery: Iceberg successfully identified 12 new bugs across the evaluated engines: 8 in CoreDNS, 2 in PowerDNS, and 2 in Knot DNS. These included critical functional defects such as incorrect response codes (RCODEs) and missing answer records.
  • Superiority Over Fuzzing/Testing: When benchmarked against SCALE, a state-of-the-art symbolic test generator for DNS engines published at NSDI 2022, SCALE caught only 2 of the 12 bugs eventually discovered by Iceberg using identical zone inputs.
  • Catching Incomplete Fixes: Verification exposed a deeper software engineering phenomenon: bug #6 was actually a recurrence triggered by an incomplete patch for an issue originally reported via testing in 2020. Developers had closed the issue after thinking it was fixed, but Iceberg's formal verification uncovered a novel trigger path, demonstrating that testing alone fails to cover edge-case permutations that formal verification exposes.
  • Low Manual Effort: Across all four engines, the code-to-specification ratio achieved by Iceberg remained remarkably low, ranging from 5.8% for PowerDNS to 9.6% for CoreDNS. Initial porting requires approximately one person-week, and retrofitting for subsequent software version updates takes as little as one person-hour.
  • Predictable Verification Scaling: Verification overhead scales linearly with zone size, requiring minutes for simple zones, roughly 30 minutes for complex zones, and a few hours for large production zones comprising hundreds of records.

Technical Deep Dive

▶ Watch: How Iceberg builds and manages summaries (8:00)

The architectural breakthrough of Iceberg rests on its just-in-time (JIT) summarization engine, which shifts the burden of abstraction from human engineers to automated runtime invariant propagation.

Core Mechanism: State Splitting and Zone Invariants

DNS authoritative engines always operate against pre-configured zones—concrete sets of domain names and records. When a query hits the engine, zone data propagates through the code flow as runtime invariants (fixed function arguments, constant memory contents, and bounded data structures). Ahead-of-time summarizers struggle because they must evaluate all possible code paths and inputs, including vast branches of unreachable states.

Iceberg performs symbolic execution on the engine's LLVM IR (Intermediate Representation) starting from the entry point. When the symbolic execution engine encounters a pointer dereference or array index referencing zone data (such as reading label counts during a domain name comparison), Iceberg triggers state splitting. Instead of treating the variable as entirely unconstrained (which would force an explosive AOT summary), Iceberg injects the concrete zone value and continues down the specific valid path. This unrolls loops to exact bounds (e.g., binding string comparison loops to a length of 3) and collapses complex pointer arithmetic into constant memory lookups.

Summary Data Structures and Algorithms

Internally, Iceberg represents summaries as trees of constraints and effects governed by two primary algorithms: build summary and apply summary.

  • When a function is called with a novel domain name, Iceberg constructs a specialized constraint node.
  • Subsequent calls with matching domain invariants apply the existing summary directly (achieving refinement).
  • Calls with diverging domain data trigger re-summarization for that specific context, merging a new branch into the constraint tree. Over time, the summary adapts precisely to the domain names actually encountered by the engine.

System Scalability Enhancements

To scale JIT summaries to full system verification, Iceberg implements three supporting mechanisms:

  1. Symbolic Regions: Decouples summaries from hardcoded memory addresses. By substituting concrete pointers with abstract region IDs, summaries remain reusable across entirely different call sites.
  2. Summary Optimization: Employs compiler-style optimization passes over the summaries themselves, stripping redundant constraints and merging identical branches to accelerate verification performance.
  3. Stub Functions: A lightweight interposition mechanism allowing users to inject invariants or manually force state splitting as a customization interface.

Iceberg is implemented in approximately 16,000 lines of Rust, leveraging the Z3 SMT solver for underlying mathematical constraint reasoning.

Experimental Setup & Results

▶ Watch: Iceberg workflow and implementation details (10:00)

The experimental evaluation tested Iceberg against four major open-source DNS engines spanning four different programming languages: CoreDNS (Go), BIND (C), PowerDNS (C++), and Knot DNS (Rust). The verification scope targeted core lookup logic—specifically matching a query to zone records and composing valid responses—while IO, networking concurrency, and peripheral features were scoped out.

The top-level specifications were derived by constructing a canonical DNS reference model synthesized from a collection of RFCs governing core resolution algorithms, tailored slightly to accommodate documented behavioral variances across individual engines.

The engines were tested against three escalating categories of DNS zones:

  • Simple Zones: 2 to 4 records.
  • Complex Zones: 10 to 12 records.
  • Production Zones: Two real-world production zones harvested from the public Centralized Zone Data Service (CZDS) database containing hundreds of records.

When benchmarked against the state-of-the-art symbolic test generator SCALE, Iceberg proved vastly superior in discovering deep logical bugs (12 found vs. SCALE's 2). In terms of engineering overhead, the specification-to-code ratio stayed strictly below 10%, validating that JIT summarization successfully circumvents the manual specification bottleneck that crippled prior efforts like DNSV. Verification performance scaled gracefully, terminating within minutes for simple zones, half an hour for complex zones, and a few hours for full-scale production zones on standard cloud hardware.

Practical Implications

▶ Watch: Evaluation results and bug discoveries (13:40)

Iceberg offers a paradigm shift for systems infrastructure engineers, security teams, and compiler developers. By demonstrating that formal verification can be automated with minimal human specification overhead, Iceberg removes the traditional economic barrier that has kept formal methods locked inside academic labs or ultra-specialized safety-critical niches.

For infra teams building high-reliability networking software, Iceberg proves that verification can keep pace with rapid open-source development cycles, as evidenced by a retrofitting cost of just one person-hour per software update. Furthermore, the core principle behind Iceberg extends far beyond DNS. Any software system whose execution is governed by static configurations or tables—such as network switches processing forwarding tables, SDN controllers evaluating flow tables, or relational database query engines driven by database schemas and indices—can potentially exploit just-in-time summarization. By treating configuration data as runtime invariants, systems engineers across domains can prune state spaces and automate the verification of complex production codebases.

Key Takeaways

  • The Verification Bottleneck: Traditional ahead-of-time (AOT) verification requires extensive manual specification writing (estimated at up to 64% of codebase functions for engines like BIND), making it unscalable for real-world software.
  • Just-in-Time Summarization: Iceberg introduces JIT summarization, using concrete zone data and configurations as runtime invariants to automatically prune unreachable execution paths during symbolic execution.
  • High-Impact Bug Discovery: Iceberg discovered 12 new, critical bugs across four major production DNS engines (CoreDNS, BIND, PowerDNS, and Knot DNS) written in four different programming languages (Go, C, C++, Rust), outperforming advanced symbolic testing frameworks like SCALE.
  • Low Manual Overhead: The framework achieves an exceptionally low specification-to-code ratio (5.8% to 9.6%), requiring only one person-week of upfront porting and as little as one person-hour for version retrofitting.
  • Generalizability Beyond DNS: The core methodology of leveraging configuration invariants via JIT summarization is broadly applicable to other systems constrained by static lookup tables, such as SDN flow tables, database query engines, and network switch forwarding rules.

About the Speaker(s)

Yuxing Xiang is a researcher at Peking University presenting work conducted alongside colleagues Rilin Huang, Naiqian Zheng, and Xin Jin. Their research group specializes in systems verification, network software reliability, and applying formal methods to large-scale, in-production infrastructure components.

Reviews

→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)

All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)