Reachability Analysis of the Domain Name System

Dhruv Nevatia, Si Liu, David A. Basin · DOI

Introduction

The Domain Name System (DNS) serves as the fundamental "phonebook" of the internet, translating human-readable domain names into IP addresses. Despite its ubiquity, the protocol's inherent complexity—characterized by recursive subqueries, stateful caching, and complex redirection logic—makes it a significant source of security vulnerabilities and operational outages.

A small portion of the DNS hierarchy and the iterative resolution process for www.sigplan.org.

The DNS Verification Problem

Traditional verification tools often struggle with the "infinite" nature of DNS. There are infinitely many possible domain names and cache Time-to-Live (TTL) values. Existing solutions like GRoot rely on bounded searches, which can miss sophisticated attacks involving long redirection chains. The core challenge addressed by this research is determining if a DNS configuration is definitively safe from specific classes of attacks, such as amplification or blackholing.

Formalizing DNS Reachability

This research presents the first decision procedure for the DNS verification problem. The authors model DNS as a system of recursive communicating processes with timers (trCPS). This model captures two essential behaviors:

  1. Stack-like Recursion: Resolvers pause current queries to resolve necessary subqueries (e.g., finding the IP of a nameserver).
  2. Temporal State: Timers track cache expirations, which influence future resolution paths.

To manage the infinite domain name space, the paper employs Positive Prefix-Testable (PPT) languages. This algebraic abstraction groups domain names into a finite set of equivalence classes based on how the DNS protocol processes them. By using a "generalized kernel bisimulation," the authors prove that this finite model is bisimilar to the actual system, ensuring that any vulnerability found in the model exists in reality (soundness) and that no real vulnerabilities are missed (completeness).

Key Insights and Complexity

A pivotal discovery is that DNS executions are "eager"—actions like sending a query are immediately followed by their corresponding response. This property allows the complex reachability problem to be reduced to a reachability problem in Pushdown Systems (PDS).

The study establishes that DNS verification is decidable with 2ExpTime complexity. While this doubly exponential bound is theoretically high, it provides a definitive upper limit for the problem. Furthermore, the framework successfully models the NXNSAttack, a potent amplification vector where glueless NS records can amplify a single query by over 1,000 times.

Conclusion and Future Directions

By proving the decidability of DNS verification, this work lays the theoretical foundation for a new generation of robust network analysis tools. Future work aims to extend this model to multi-resolver environments and dynamic zone updates, moving closer to a practical, high-performance tool for securing the internet's naming infrastructure.

Summary updated

BibTeX
@article{nevatia2025reachability,
  author = {Dhruv Nevatia and Si Liu and David A. Basin},
  title = {{Reachability Analysis of the Domain Name System}},
  journal = {Proc. ACM Program. Lang.},
  year = {2025},
  doi = {10.1145/3704898},
}
Figure