betaFeedback

WorksComputer Science

Declarative DNS - Resolving Recursive Resolution

Abstract

DNS zone configuration errors are a frequent source of outages and frustration, particularly in combination with DNSSEC. Research has attempted to address the problem of zone configuration errors using formal methods, but existing proposals (i) only verify the absence of specific, known configuration errors, and (ii) do not consider DNSSEC. We present a new formal model of the DNS that covers most of DNSSEC, making it one of the most complete DNS models to date. In addition, we present a new tool, DecDNS, that performs a resolvability change-impact analysis of zone configuration updates using our model. We show that such a change-impact analysis can identify configuration errors without explicitly searching for them. We evaluate DecDNS both formally and empirically. We prove that DecDNS is sound and complete and show that its results agree with widely used DNS software. Finally, we explain how our approach can be integrated into operational practice, helping guide zone management in the real world.

Availability Our tool, DecDNS, is available on GitHub:

https://github.com/felixlinker/decdns

Introduction

The Domain Name System (DNS) is a fundamental Internet technology. So fundamental that the unavailability of the DNS can be practically indistinguishable from the unavailability of the Internet. For example, some governments censor the Internet solely by filtering the DNS [1, 4, 14, 15]. Although “censored” services are technically still reachable, many clients and users cannot reach them anymore.

At first glance, the DNS appears simple. Data is associated with names such as example.com. All names form a tree, and sets of connected nodes form so-called zones. Different zones are served by different name servers, and recursive resolvers query name servers to obtain the data associated with names. Underlying this simple concept, however, is considerable complexity. The DNS’s two original standards were published in 1987 and, since then, it has been extended numerous times. As of fall 2026, the Internet Engineering Task Force (IETF), which maintains the DNS, has published 298 documents, called Requests for Comments (RFCs), on the DNS [3].

One of the most substantial extensions to the DNS are the Domain Name System Security Extensions (DNSSEC). When using DNSSEC, name servers sign the data they serve and publish public key material for verification. DNSSEC drastically increases the complexity of the DNS and thus the likelihood of configuration errors.

It thus comes as no surprise that, given the complexity of the DNS, configuration errors are common and they can have severe consequences. For example, in May 2026, roughly 2/3 of the .de top-level domain (TLD) became unavailable to many resolvers [6] due to a DNSSEC configuration error. The .de TLD is one of the most frequently queried TLDs [7], and a configuration error in the published public key material used to authenticate data in the .de zone led to a 3-hour outage.

There are proposals for detecting configuration errors. For example, some tools test a domain name for certain errors [2, 5]. There is also a large body of work using formal reasoning to detect configuration errors [12, 19, 23, 26, 31]. Such formal approaches generally promise to provide “complete coverage,” i.e., modulo abstractions and assumptions of the underlying model and theory, they can provide mathematical certainty. However, existing formal approaches all share two limitations. (i) They suggest verifying the absence of particular, concrete configuration errors. (ii) They do not consider DNSSEC, one of the largest extensions to the DNS.

Note that point (i) above is in stark contrast to formal methods’ promise of complete coverage. Since existing approaches only verify the absence of particular classes of configuration errors, they do not capture configuration errors generally and miss every configuration error not encoded directly in the model.

In this work, we address the above two limitations. We present a new, declarative formal model and a tool called DecDNS (declarative DNS) to reason about DNS configuration errors. Using DecDNS, one can identify configuration errors without explicitly encoding them in the model. Moreover, our model and DecDNS provide support for DNSSEC.

Resolvability Change-Impact Analysis In our approach, we take a new perspective on DNS configurations and consider the property of resolvability. We argue that a zone configuration can be characterized by which queries should have a positive response and are thus resolvable. If such a characterization were given, one could detect configuration errors by computing all queries that have a positive response. Any difference to the set of queries that should have a positive response would point to a configuration error.

Such a characterization, though, is hard to obtain. Having the user state all queries that should be resolvable is infeasible and likely a task just as error-prone as configuring the zone itself. We therefore use the old configuration as a baseline and perform a resolvability change-impact analysis on a zone configuration update. Given two zone configurations, new and old, a change-impact analysis computes which queries have a positive response in exactly one of the two configurations. Users can then inspect the result of this analysis, compare it with their expectations, and consequently identify configuration errors.

A change-impact analysis, though, will not be able to identify all configuration errors. For example, resolvability disregards whether the data associated with a name is correct, e.g., whether the IP address associated with example.com indeed routes to example.com. Moreover, we only detect configuration errors when they are introduced but not when an update preserves them. Nevertheless, a resolvability change-impact analysis is a beneficial tool as it characterizes a configuration update and is not limited to any particular sort of configuration error.

Additionally, a change-impact analysis is particularly useful for configuration changes that should not impact resolvability, i.e., after which the set of resolvable queries should remain unchanged. Given such a change, a non-empty change-impact analysis immediately highlights a configuration error. Examples of such changes include changing which name servers serve particular zones, changing how the DNS is divided into zones, or changing a zone’s verification keys, which is the kind of change that led to the .de TLD outage.

Overview of Our Approach

Given a zone configuration, DecDNS compiles it to a constraint logic program (CLP). This declarative specification captures which queries have a positive response in that zone configuration. We abstract from details of the underlying transport mechanisms, e.g., packet sizes and headers, and instead model what a recursive resolver would conclude in response to arbitrary queries if it were given the input zone configuration. We capture, though, that recursive resolvers must first discover name servers and obtain their network addresses before they can send them queries. Given two such CLPs, one corresponding to an old zone configuration and the other to a new version of the configuration, DecDNS computes a change-impact analysis.

Modeling the DNS and recursive resolution as a CLP has many benefits. Whereas standard logic programs can only use logical predicates, CLPs can additionally use constraints, which are interpreted by a constraint solver. We use constraints to (i) efficiently represent and reason about very large zones symbolically, and (ii) model cryptographic checks like signature verification. Symbolic representations of large sets and cryptographic checks would be cumbersome to model in ordinary logic programs.

Our formal model only uses standard CLP features and is interoperable with existing logic programming software, for example SWI-Prolog [32], for which we provide an integration. Interoperability with existing software facilitated development initially, but also is independently desirable as it supports the integration of our model or parts thereof into other applications. Moreover, to prove the soundness and completeness of our change-impact analysis algorithm, we can leverage existing soundness and completeness results for CLPs [18].

Contributions We present the following contributions.

  • We formally model the DNS and many of its extensions as a CLP, providing one of the most detailed formal models of the DNS to date. In particular, our model covers the DNSSEC standards.

    Our model is an executable, declarative specification of the DNS, which thus promises to be relatively easy to reason about. It could serve as a reference implementation and a basis for further experiments with extensions or variants of the DNS.

  • We present an algorithm to compute a change-impact analysis from two CLPs that represent the new and old zone configurations. We provide soundness and completeness results for our algorithm with respect to the well-established semantics of CLPs [18].

  • We show that our approach is practical by implementing DecDNS, which can compile a CLP from a zone configuration, following our formal model, and reason about such CLPs. DecDNS provides a mode that computes a change-impact analysis and a querying mode that resolves DNS queries using live DNS infrastructure. The querying mode, in particular, shows that our formal model is not only quite detailed, but that it can also interoperate with live DNS infrastructure. It can be used, relatively straightforwardly, though somewhat inefficiently, to resolve DNS queries on real systems.

  • Although we prove the soundness and completeness of our algorithm, no theoretical analysis can establish whether our formal model is faithful to the DNS standards. We thus also empirically evaluate DecDNS and show that its results agree with those of major DNS software. First, we evaluate whether what DecDNS claims to be resolvable is indeed resolvable by real recursive resolver software. Second, we evaluate whether DecDNS’s querying mode computes the same responses to queries as other resolvers. We also provide a performance evaluation of DecDNS.

  • Finally, we show how to use DecDNS to detect configuration errors. We show which kinds of errors it can detect and under what circumstances.

Structure We begin with a brief example of how DecDNS works and can be used in Section 2. Then, we provide relevant background on the syntax of CLPs and the DNS in Section 3. In Section 4, we present how we compile a zone configuration to a CLP. Then, in Section 5, we present our algorithm to compute a change-impact analysis of two CLPs representing the old and new zone configurations. We present soundness and completeness results as well as relevant background on CLP semantics in Section 6. We present our implementation in Section 7. In Section 8, we evaluate DecDNS’s conformance with the DNS and show which configuration errors it can detect. We discuss related work in Section 9 and draw conclusions in Section 10.

An Example of DecDNS in Action

We start by providing a brief example of how DecDNS works, how it can be used, and how it can detect potential configuration errors. Consider the following zone, in which the label lo[...]ong has 63 characters:

*.short. TXT "hello"
*.lo[...]ong. TXT "hello"

This zone associates two so-called wildcard owner names, those beginning with *, with TXT records, i.e., the textual data “hello.” The semantics of wildcard owner names are complex, and we will explain them in further detail in Section 3.3, but put simply, queries for TXT records to a subdomain of short. or lo[...]ong. can be answered with “hello” in this configuration.

Now suppose the zone is updated as follows.

short. DNAME lo[...]ong.
*.lo[...]ong. TXT "hello"

In this update, one wildcard TXT record was replaced with a DNAME alias to lo[...]ong.. DNAME aliases map each subdomain of an aliased name, here short., to the matching subdomain of the alias target. This DNAME record, for example, would map the query a.b.c.short. to a.b.c.lo[...]ong.. Thus, intuition suggests that this update should preserve the resolvability of subdomains of short. since the new alias target has the same record associated with it as the previous wildcard record.

However, one must also take into consideration that DNS names have a maximum length, and DecDNS would highlight exactly this point in its change-impact analysis for the above two zones. Concretely, DecDNS would return:

resolvable⁡(TXT,[short,L∣T],⊥)←L≠∗,¬isName⁡([lo[…]ong,L∣T]),isName⁡([short,L∣T]).\operatorname{resolvable}(\mathrm{TXT},[\mathrm{short},L \mid T],\perp) \leftarrow \begin{aligned} &L \ne*,\\ &\neg\operatorname{isName}([\mathrm{lo}[\ldots]\mathrm{ong},L \mid T]),\\ &\operatorname{isName}([\mathrm{short},L \mid T]). \end{aligned}

Above is a formula which models when queries for TXT records to any subdomain of short. are resolvable in the original configuration but not after the update. The term [short,L∣T][\mathrm{short},L \mid T] represents an arbitrary subdomain of short., and is a list of labels. Concretely, LL is a variable representing the label directly below short., and TT is an arbitrary list suffix, i.e., represents further labels below L.short.L.\mathrm{short.}. The above rule expresses that TXT queries to subdomains of short. are not resolvable whenever (a) that subdomain is not at or below *.short. (L≠∗L \ne*), (b) the mapped query is too long, i.e., the respective subdomain of lo[...]ong. is not a name, and (c) the initial query name is of valid length, i.e., the respective subdomain of short. is a name.

The administrator of the respective zone could examine this output and determine whether this loss in resolvability is acceptable and matches their expectations of the update.

While the above example is conceptually simple and small, it highlights how even such small zones can exhibit subtle behavior that can be easy to miss. It also shows the unique benefits of a change-impact analysis. The loss in resolvability in this example, as characterized above, would be hard to formalize in an explicit property that checks for particular configuration errors. A change-impact analysis can highlight the subtle interactions that different parts of the DNS standards have and help zone administrators understand the consequences of their actions.

Background

Mathematical Notation

Functions and Relations

We use →\to to denote a partial function, i.e., a function that may be undefined for parts of its domain. Note that every total function is also a partial function. We will sometimes define partial functions explicitly as a set of mappings, e.g., f={1↦2}f = \{1 \mapsto2\} is a partial function N→N\mathbb{N} \to\mathbb{N} such that f(1)=2f(1) = 2 and f(x)f(x) is undefined for all $x \ne 1.】【。 Following functional programming conventions, we only use the right-associative symbols →\to and ⇀\rightharpoonup to define functions, even when they have multiple arguments. For example, f:A→B→Cf : A \to B \to C is a function with two arguments, mapping to CC. This notation permits partial application, e.g., f(a)f(a) is the function f′:B→Cf' : B \to C s.t. f′(b)=f(a,b)f'(b) = f(a,b). We will sometimes treat functions like relations. For example, if f(a,b)=cf(a,b) = c, then (a,b,c)∈f(a,b,c) \in f.

Let f:A⇀Bf : A \rightharpoonup B be a partial function. We write dom⁡(f)\operatorname{dom}(f) for ff’s domain, i.e., dom⁡(f)⊆A\operatorname{dom}(f) \subseteq A and a∈dom⁡(f)a \in\operatorname{dom}(f) if f(a)f(a) is defined. We write img⁡(f)\operatorname{img}(f) for ff’s image, i.e., img⁡(f)⊆B\operatorname{img}(f) \subseteq B and b∈img⁡(f)b \in\operatorname{img}(f) if there exists a∈dom⁡(f)a \in\operatorname{dom}(f) such that f(a)=bf(a) = b. We write f∣Xf|_X to denote the restriction of a partial function ff’s domain to XX. That is: f∣X(x)=f(x)f|_X(x) = f(x) whenever x∈Xx \in X and undefined otherwise.

Terms and Unification

We follow [24] in the definitions below. Let G\mathcal{G} be a set of function symbols. We write s/ns/n to denote that a symbol ss has arity nn. Given a set of function symbols G\mathcal{G}, variables V\mathcal{V}, and constants C\mathcal{C}, we define the set of terms T\mathcal{T} over those sets inductively as follows:

v∈Tv∈Vc∈Tc∈Cf(t1,…,tn)∈Tf/n∈G,t1,…,tn∈T\begin{aligned} v \in\mathcal{T} &\qquad v \in\mathcal{V}\\ c \in\mathcal{T} &\qquad c \in\mathcal{C}\\ f(t_1,\ldots,t_n) \in\mathcal{T} &\qquad f/n \in\mathcal{G},t_1,\ldots,t_n \in\mathcal{T} \end{aligned}

We use vars⁡(t)\operatorname{vars}(t) to denote the set of variables occurring in a term tt. A term tt is ground if vars⁡(t)=∅\operatorname{vars}(t) = \varnothing. We use uppercase letters for variables in the logic program and lowercase letters for metavariables in our definitions. For example, XX is a variable term and vv is a variable. We will only refer to constants when they have been explicitly introduced as such. Sometimes, the sets of function symbols, variables, and constants will be part of a signature Σ\Sigma, in which case we write TΣ\mathcal{T}_{\Sigma} for all terms over that signature.

A substitution is a partial function θ:V⇀T\theta: \mathcal{V} \rightharpoonup\mathcal{T}, which maps variables to terms. We homomorphically extend substitutions to also apply to sets of terms. A substitution is a valuation if it is total and every term in its image is ground. For two substitutions θ1,θ2\theta_1,\theta_2, we write θ1θ2\theta_1\theta_2 to denote their composition, defined as:

θ1θ2=θ2∣dom⁡(θ2)∖dom⁡(θ1)∪(θ2∘θ1)\theta_1\theta_2 = \theta_2|_{\operatorname{dom}(\theta_2)\setminus\operatorname{dom}(\theta_1)} \cup(\theta_2 \circ\theta_1)

For example, for two constants aa and bb:

θ1={X↦f(Y),Y↦Z}θ2={X↦a,Y↦b,Z↦Y}θ1θ2={X↦f(b),Y↦Y,Z↦Y}\begin{aligned} \theta_1 &= \{X \mapsto f(Y),Y \mapsto Z\} \qquad\theta_2 = \{X \mapsto a,Y \mapsto b,Z \mapsto Y\}\\ \theta_1\theta_2 &= \{X \mapsto f(b),Y \mapsto Y,Z \mapsto Y\} \end{aligned}

For a set of terms T\mathcal{T}, a substitution θ\theta is a unifier if θ(T)\theta(\mathcal{T}) is a singleton set, i.e., all pairs of terms in T\mathcal{T} are equal after applying θ\theta. A unifier θ\theta is the most general unifier for T\mathcal{T} if for all unifiers θ′\theta' there exists a substitution σ\sigma such that θ′=θσ\theta' = \theta\sigma. It is well-known that for any two terms t1t_1 and t2t_2, a most general unifier exists if and only if t1t_1 and t2t_2 unify [24], which we denote by MGU⁡(t1,t2)\operatorname{MGU}(t_1,t_2).

Constraint Logic Programs

We will model the DNS using constraint logic programs (CLPs). Logic programs are sets of Horn clauses, which in turn are first-order logic formulas of the form ∀x⃗.b1∧⋯∧bn⇒h\forall\vec{x}.b_1 \land\cdots\land b_n \Rightarrow h. In a Horn clause, every variable is universally quantified. Moreover, a Horn clause has a single predicate hh on the implication’s right-hand side, the head, and a finite (possibly empty) set of predicates on the implication’s left-hand side, the body. In this section, we will introduce the syntax of CLPs following [18].

Logic Programs

Logic programs are defined with respect to a signature Σ=(V,C,G,P)\Sigma= (\mathcal{V},\mathcal{C},\mathcal{G},\mathcal{P}) for a set of variables V\mathcal{V}, constants C\mathcal{C}, function symbols G\mathcal{G}, as before, and a set of predicate symbols P\mathcal{P}. The set of formulas FΣ\mathcal{F}_{\Sigma} over Σ\Sigma is inductively defined as:

p(t1,…,tn)∈FΣp/n∈P,t1,…,tn∈TΣϕ1∨ϕ2∈FΣϕ1,ϕ2∈FΣϕ1∧ϕ2∈FΣϕ1,ϕ2∈FΣ¬ϕ∈FΣϕ∈FΣ∀v.ϕ∈FΣv∈V,ϕ∈FΣ∃v.ϕ∈FΣv∈V,ϕ∈FΣ\begin{aligned} p(t_1,\ldots,t_n) \in\mathcal{F}_{\Sigma} &\qquad p/n \in\mathcal{P},t_1,\ldots,t_n \in\mathcal{T}_{\Sigma}\\ \phi_1 \lor\phi_2 \in\mathcal{F}_{\Sigma} &\qquad\phi_1,\phi_2 \in\mathcal{F}_{\Sigma}\\ \phi_1 \land\phi_2 \in\mathcal{F}_{\Sigma} &\qquad\phi_1,\phi_2 \in\mathcal{F}_{\Sigma}\\ \lnot\phi\in\mathcal{F}_{\Sigma} &\qquad\phi\in\mathcal{F}_{\Sigma}\\ \forall v.\phi\in\mathcal{F}_{\Sigma} &\qquad v \in\mathcal{V},\phi\in\mathcal{F}_{\Sigma}\\ \exists v.\phi\in\mathcal{F}_{\Sigma} &\qquad v \in\mathcal{V},\phi\in\mathcal{F}_{\Sigma} \end{aligned}

A formula is an atom if it has a predicate as a top-level symbol. For a formula ϕ\phi, we overload vars⁡(ϕ)\operatorname{vars}(\phi) to denote all free variables occurring in ϕ\phi. A formula ϕ\phi is closed if vars⁡(ϕ)=∅\operatorname{vars}(\phi) = \varnothing. A formula is a Horn clause if it is closed and for 0≤n,1≤m0 \le n,1 \le m and atoms ϕ1,…,ϕm\phi_1,\ldots,\phi_m it is of the form:

∀v1…∀vn.ϕ1∨¬ϕ2∨⋯∨¬ϕm.\forall v_1\ldots\forall v_n.\phi_1 \lor\lnot\phi_2 \lor\cdots\lor\lnot\phi_m.

Following standard logic programming conventions, we will write Horn clauses as inference rules. The above Horn clause can be written equivalently as:

ϕ1←ϕ2,…,ϕm.\phi_1 \leftarrow\phi_2,\ldots,\phi_m.

If m=1m = 1, we omit ←\leftarrow and simply write ϕ1\phi_1. We call such rules facts. Note that free variables are implicitly universally quantified. A logic program is a set of Horn clauses Γ⊆FΣ\Gamma\subseteq\mathcal{F}_{\Sigma}.

We will treat sequences of conjuncts and sets of conjuncts interchangeably and use ⊤\top to denote the empty set of conjuncts. For example:

⊤=⊤,ϕ←⊤=ϕ,\top= \top,\qquad\phi\leftarrow\top= \phi,
ϕ1←ϕ2,…,ϕn=ϕ1←{ϕ2,…,ϕn}.\phi_1 \leftarrow\phi_2,\ldots,\phi_n = \phi_1 \leftarrow\{\phi_2,\ldots,\phi_n\}.

Notation To limit the naming of variables, we will write _ to denote a fresh, universally quantified variable that occurs nowhere else. For example, ∀x.∀y.p(x,y)\forall x.\forall y.p(x,y) and p(_,_)p(\_,\_) are equal up to renaming of quantified variables. In this paper, we will use the function symbols ⋅/2\cdot/2, []/0[]/0, 1/01/0, 0/00/0 where ⋅\cdot prepends an element to a list, [][] denotes the empty list, 11 denotes the bit 1, and 00 denotes the bit 0. Following Prolog syntax, [x1,…,xn][x_1,\ldots,x_n] denotes a list with nn elements and [x1,…,xn∣y][x_1,\ldots,x_n \mid y] denotes a list with tail yy. This means:

[x1,…,xn]=x1⋅(x2⋅(⋯(xn⋅[])))[x_1,\ldots,x_n] = x_1 \cdot(x_2 \cdot(\cdots(x_n \cdot[])))
[x1,…,xn∣y]=x1⋅(x2⋅(⋯(xn⋅y))).[x_1,\ldots,x_n \mid y] = x_1 \cdot(x_2 \cdot(\cdots(x_n \cdot y))).

Resolution

Logic programs are typically used by querying them with a goal. A goal is an atom potentially containing free variables, and querying the logic program should determine whether the goal is entailed by the program. For example, consider the following program PP, which formalizes when a Peano number is even and when all elements of a list are even:

even⁡(0),even⁡(s(s(N)))←even⁡(N),\operatorname{even}(0),\operatorname{even}(s(s(N))) \leftarrow\operatorname{even}(N),
all_even⁡([]),all_even⁡(A⋅B)←even⁡(A),all_even⁡(B).\operatorname{all\_even}([]),\operatorname{all\_even}(A \cdot B) \leftarrow\operatorname{even}(A),\operatorname{all\_even}(B).

One could query PP either with the goal all_even⁡(X)\operatorname{all\_even}(X) to find some XX such that all elements of XX are even or with the goal all_even⁡([s(s(0))])\operatorname{all\_even}([s(s(0))]) to check whether all elements of the given list are even.

Reasoning about such queries can be implemented using the resolution rule, an inference rule with appealing soundness and completeness properties [27]. The resolution rule allows one to replace a rule’s body atom by another rule’s body, provided that rule’s head unifies with the respective body atom. Formally, for a substitution θ\theta:

h←p1,…,pi,…,pmh′←q1,…,qnθ(h′)=θ(pi)θ(h←p1,…,pi−1,q1,…,qn,pi+1,…,pm)\frac{h \leftarrow p_1,\ldots,p_i,\ldots,p_m \qquad h' \leftarrow q_1,\ldots,q_n \qquad\theta(h') = \theta(p_i)}{\theta(h \leftarrow p_1,\ldots,p_{i-1},q_1,\ldots,q_n,p_{i+1},\ldots,p_m)}

One can use the resolution rule to solve a goal GG by contradiction. For example, considering G=all_even⁡([s(s(0))])G = \operatorname{all\_even}([s(s(0))]) from the example above, one would negate the goal GG to obtain the query Q=⊥←GQ = \bot\leftarrow G, and attempt to derive a contradiction using the resolution rule within the Horn clause theory P∪{Q}P \cup\{Q\}. A proof for this goal is depicted in Figure 1.

Figure 1. Example proof by contradiction using the resolution rule. We do not explicitly state the respective unifiers but apply them directly. We terminate proof search whenever we apply a rule that is included in the logic program PP modulo unification.

Powerful programming languages have been built using the resolution rule or variants thereof, for example, Prolog [24] and Datalog [10]. Concrete implementations of programming languages typically do not solve queries by searching for proofs of goals such as in Figure 1 but use methods like SLD resolution [24]. This typically leads to programs having multiple semantics. Logical semantics interpret logic programs in first-order logic whereas procedural semantics interpret them by reference to the answer search that solvers employ.

Constraint Domains

In this work, we will use a more general version of logic programs than described above, namely constraint logic programs (CLPs). In CLPs, one distinguishes between predicates that have an interpretation in the logic program, i.e., they are defined by the program’s Horn clauses, and predicates that have a pre-defined interpretation in a constraint domain C\mathcal{C}. The latter type of predicates are constraints, and a solver solves sets of constraints. CLPs support incomplete solvers, i.e., for a set of constraints a solver may return ⊤\top (true), ⊥\bot (false), or undefined.

CLPs provide two advantages over ordinary logic programs. First, for certain problem domains, e.g., the real numbers, a solver can find solutions much more efficiently than a logic programming engine that just uses the resolution rule. For example, we will use constraints to model signature verification and hash digest comparisons. Second, CLPs allow logic programs to capture infinitely many solutions for a goal, described by a constraint set.

The constraint domain consists of (a) a constraint signature ΣC\Sigma_{\mathcal{C}}, which at least must include (=)(=) as a constraint, (b) a class of constraints FΣC\mathcal{F}_{\Sigma_{\mathcal{C}}}, a set of formulas over ΣC\Sigma_{\mathcal{C}}, (c) a domain of computation DC\mathcal{D}_{\mathcal{C}} interpreting the constraints, (d) a constraint theory TCT_{\mathcal{C}} specifying the semantics of the constraints, and (e) a solver solve⁡C:2FΣC→{⊤,⊥}\operatorname{solve}_{\mathcal{C}}:2^{\mathcal{F}_{\Sigma_{\mathcal{C}}}} \to\{\top,\bot\}. We require that the domain of computation is a model of the constraint theory, and that a constraint domain’s solver is sound in that it returns ⊥\bot only if the set of constraints indeed is contradictory, i.e., if solve⁡C(c)=⊥\operatorname{solve}_{\mathcal{C}}(c)=\bot then TC⊨¬∃v⃗⋀cT_{\mathcal{C}} \models\neg\exists\vec{v}\mathbin{\bigwedge} c where v⃗\vec{v} binds all free variables occurring in cc. Practically, a solver should also be sound in that it returns ⊤\top only if the constraints are satisfiable, but this is irrelevant to the semantics of CLPs, as will become clear later.

We call those atoms interpreted in the logic program simply atoms and call atoms that are part of the constraint domain constraints.

In CLPs, proofs are encoded as derivations. A derivation is a sequence of atoms and constraints ⟨G1∣c1⟩⇒⟨G2∣c2⟩⇒⋯\langle G_1 \mid c_1\rangle\Rightarrow\langle G_2 \mid c_2\rangle\Rightarrow\cdots. The first element of a derivation step, GiG_i, is the current list of target atoms, or the goal, and the second element cic_i is a set of constraints, understood as the conjunction of its elements. To update a derivation step ⟨Gi∣ci⟩\langle G_i \mid c_i\rangle to ⟨Gi+1∣ci+1⟩\langle G_{i+1} \mid c_{i+1}\rangle, one can either:

  • Apply the resolution rule and select an atom pjp_j in GiG_i and a rule h←b1,…,bmh \leftarrow b_1,\ldots,b_m in the logic program, and then define ci+1=cic_{i+1}=c_i and:

    Gi+1=(p1,…,pj−1,pj=h,b1,…,bm,pj+1,…,pn)G_{i+1}=(p_1,\ldots,p_{j-1},p_j=h,b_1,\ldots,b_m,p_{j+1},\ldots,p_n).

    Note that unification is not performed directly, but is represented by the constraint pj=hp_j=h.

  • Select a constraint pjp_j in GiG_i, for which solve⁡C(ci∪{pj})≠⊥\operatorname{solve}_{\mathcal{C}}(c_i \cup\{p_j\}) \ne\bot, in which case the derivation’s next element

is:

⟨p1,…,pj−1,pj+1,…,pn∣ci∪{pj}⟩\langle p_1,\ldots,p_{j-1},p_{j+1},\ldots,p_n \mid c_i \cup\{p_j\}\rangle
  • Select a constraint pjp_j in GiG_i, but solve⁡C(ci∪{pj})=⊥\operatorname{solve}_C(c_i \cup\{p_j\}) = \bot. In this case, the derivation’s next element is ⟨∅∣⊥⟩\langle\varnothing\mid\bot\rangle.

A derivation is from a goal GG if its first element is ⟨G∣∅⟩\langle G \mid\varnothing\rangle. A derivation is successful if its last element is ⟨∅∣c⟩\langle\varnothing\mid c\rangle and c≠⊥c \ne\bot. We extend the definition of facts to CLPs in that a fact is any rule of the form h←c1,…,cnh \leftarrow c_1,\ldots,c_n such that c1,…,cnc_1,\ldots,c_n are constraints. A set of constraints cc is an answer for a goal GG in a CLP PP if there exists a successful derivation from GG that ends in ⟨∅∣c⟩\langle\varnothing\mid c\rangle.

The DNS

Overview The DNS is a distributed database that associates typed data with hierarchical names. Names are sequences of one or more labels separated by dots and terminated with the empty root label, e.g., example.com. (note the trailing dot separating the label “com” from the empty root label). The name space forms a tree, which has the empty label at its root. Note that in practice, the root label is often omitted and names like google.com are understood as equal to google.com..

Data is represented by resource records (RRs) of different types, and the name that is associated with some RR is that RR’s owner name. A name can have multiple RRs of the same type, and RRs with the same owner name and of the same type form a so-called RRset.

The DNS name space is divided into zones, which are subtrees of the DNS name space. Name servers serve the contents of one or more zones. Name servers use zone cuts to delegate a sub-tree of the name space to a different name server. For example, the root zone, the root of which is the name “.”, may cut the name space at each TLD, e.g., com., net., etc. The name at the root of a zone is that zone’s apex.

Clients typically use recursive resolvers to query the DNS, which in turn query name servers known to them. When a recursive resolver queries a name server, that name server may respond either (a) with records that answer the query directly, (b) with structural records that inform further recursive resolution, or (c) with an error. In the first case, a recursive resolver will forward the data to the requesting client, and in the second and third cases, the recursive resolver may send follow-up queries to other name servers.

The DNS is described in numerous RFCs and has evolved considerably over the recent decades. One of the most substantial extensions is DNSSEC, which supports the authentication of zone contents by specifying how name servers can sign the contents of the zones they administer. At zone cuts, name servers can indicate which key material may be used to authenticate the child zone. This allows a resolver to validate a zone’s authenticity as long as it can authenticate one of the root zone’s verification keys and as long as every zone cut indicates a key for the child zone.

RR Types We distinguish between data RR types and structural RR types. There are many data RR types, e.g., A and AAAA records for IP addresses, TXT for arbitrary text data, and MX records for mail servers. More interesting, though, are structural records. The NS record signals a zone cut, indicating which name server is responsible for the child zone, and the CNAME and DNAME records indicate aliases. While CNAME records indicate direct aliases, e.g., a.com. may alias to b.com., a DNAME record maps all names below a name to the corresponding name below the target. For example, a DNAME record for a.com. with the value b.com. would map a query for x.y.z.a.com. to x.y.z.b.com.

DNSSEC and its further extensions added more structural RR types. RRSIG records provide signatures over data, DNSKEY records provide the signature verification keys, and DS records contain digests of child-zone verification keys. DNSSEC also supports the authenticated denial of existence of records using the NSEC and NSEC3 records.

The Wildcard Label Another source of complexity for the DNS is the wildcard label “*”. Conceptually, the wildcard label is simple. When a record owner name uses a wildcard, e.g., *.example.com., responses are synthesized for all names that match this name, e.g., sub.sub.example.com.. The wildcard label semantics, however, are complex and subtle and an entire RFC was dedicated to clarifying them [22]. A wildcard owner name is a name that has the wildcard as its leftmost label. Name servers will synthesize responses for records with a wildcard owner name whenever (a) the query name matches the wildcard record owner name, and (b) no synthesized part of the query name exists.

Matching is defined as expected. For a wildcard owner name “*.parent”, any subdomain of “parent” matches that wildcard owner name. A name is said to exist if it has records associated with it, or it has a child that has records associated with it. For example, when a zone contains records for x.y.example., the names x.y.example., y.example., example., and . all exist. Considering *.example. and x.y.example., no response would be synthesized for a name containing y.example., as that name exists, even though no records are associated with y.example..

Formal Model

We now describe how we formally model the DNS to reason about the resolvability of zones, in particular to determine whether a recursive resolver could find an answer in a given set of zone files. Thus, we abstract from malicious name server behavior and transport issues and assume that as long as a recursive resolver can reach a name server, the name server will share all data relevant to a query.

To model the DNS, we compile a zone configuration, a set of initial name servers, and a (possibly empty) set of trusted DS records that bootstrap DNSSEC validation to a CLP, as described in § 4.2. At a high level, our compilation procedure creates a “base case” fact for every RRset in a given zone, modeling that if a recursive resolver queried the name servers serving this RRset for exactly the RRset’s type and owner name, the name servers would respond with that RRset. For the structural record types NS, CNAME, DNAME, and RRSIG, we additionally compile “step case” rules that model how these record types would lead to follow-up queries by a recursive resolver.

In the base case compilation, we treat the RRsets that are part of the zone configuration as unauthenticated. Our compiler also adds base case rules for the trusted DS records and treats them as authentic, thereby bootstrapping DNSSEC validation.

We compile the structural record types NS, CNAME, DNAME, and RRSIG to step case rules as follows. The rules for NS records model the propagation of responses from a name server serving a delegated child zone to the name server serving the parent zone. The rules for CNAME and DNAME records model the propagation of responses from queries for the target name to queries for the alias. Finally, the rules for RRSIG records can turn unauthenticated responses into authenticated ones.

We describe this compilation procedure in the following paragraphs. We start by describing how we represent zone data itself. The representation that we choose can be easily obtained from a zone’s textual representation. Next, we describe how we encode names and data as ground terms. Finally, we describe how we compile RRsets to Horn clauses.

The DNS

We represent a set of zones as follows. We consider a finite set of labels L\mathcal{L} containing the empty label ε\varepsilon and the wildcard label “*”. A name over L\mathcal{L} is a non-empty sequence of labels, separated by dots “.” and terminated by ε\varepsilon. We use ⋅\cdot to denote the concatenation of names, which adds a “.” between consecutive labels. For example, example⋅com⋅ε=example.com⋅εexample \cdot com \cdot\varepsilon= example.com \cdot\varepsilon.

Definition 4.1. The set of names is the smallest set N\mathcal{N} such that:

  • ε∈N\varepsilon\in\mathcal{N}, and

  • if n∈Nn \in\mathcal{N} and l∈L∖{ε}l \in\mathcal{L} \setminus\{\varepsilon\}, then l⋅n∈Nl \cdot n \in\mathcal{N}.

The DNS associates names with typed data. We use the set of symbols T\mathbb{T} for the relevant types:

T={A,AAAA,NS,CNAME,DNAME,RRSIG,DNSKEY,DS,NSEC,NSEC3,…}.\mathbb{T} = \{\mathrm{A}, \mathrm{AAAA}, \mathrm{NS}, \mathrm{CNAME}, \mathrm{DNAME}, \mathrm{RRSIG}, \mathrm{DNSKEY}, \mathrm{DS}, \mathrm{NSEC}, \mathrm{NSEC3}, \ldots\}.

Here, we only list types that inform recursive resolution. There are more types, e.g., MX for email communication, which we do not list here.

We represent the data itself as complex terms where we use the corresponding symbol in T\mathbb{T} as a function symbol and the function arguments represent the individual fields of the data. For example, an NS record delegates the resolution of its owner name to a server ss and has one field. The data of this NS record would be represented as NS(s)\mathrm{NS}(s). An RRSIG record stores the signature for a set of other resource records, and thus has many fields, including a tag for the signing key, a reference to a signing algorithm, the signature itself, and more. We use D\mathcal{D} to refer to the set of all data.

We identify zones by their apex in N\mathcal{N} and represent them as a partial function z ⁣:N→T→2Dz\colon\mathcal{N} \to\mathbb{T} \to2^{\mathcal{D}}, which associates names and types with the respective RRsets. Zones are served by different name servers. A zone configuration cc specifies which name servers serve which zones, and cc is a partial function c ⁣:2N→N→N→T→2Dc\colon2^{\mathcal{N}} \to\mathcal{N} \to\mathcal{N} \to\mathbb{T} \to2^{\mathcal{D}} where c(s,n)=zc(s,n)=z means that name server set ss serves zone zz, which has the apex nn.

Zone Well-Formedness

We assume that zone files are well-formed in that they adhere to basic RFC guidelines, which DecDNS checks before compiling them. For example, RFC 1034 allows at most one CNAME record associated with an owner name [25 Sec. 3.6.2]. Critically, the well-formedness checks require no advanced reasoning and are always local to each zone. See Appendix § 18 for their full description.

Modeling Names and Data

Representing Names

We represent names as lists of labels, and labels in L\mathcal{L} as constants. Effectively, we assume that L⊆C\mathcal{L} \subseteq\mathcal{C}. We define the translation function name⁡:N∪N∗→TΣ\operatorname{name} : \mathcal{N} \cup\mathcal{N}^{*} \to\mathcal{T}_{\Sigma}, which translates names into lists of labels, i.e., terms over Σ\Sigma. We omit the empty label as it is implicit.1 The root name “.” is thus represented by the empty list.

name⁡(l1⋅…⋅ln⋅ε)={[ln,…,l2,∗]l1∈L∗[ln,…,l1]otherwise.\operatorname{name}(l_1 \cdot\ldots\cdot l_n \cdot\varepsilon) = \begin{cases} [l_n,\ldots,l_2,*] & l_1 \in\mathcal{L}^{*} \\ [l_n,\ldots,l_1] & \text{otherwise.} \end{cases}

We homomorphically extend name to sets of names, representing the set as a list, ordered by the canonical ordering of names as specified in RFC 4034 [29].

Representing names as lists allows unification to be used for synthesis, DNAME rewrites, and checking whether one domain is a subdomain of another. For example, checking whether the name a.example.com. is a subdomain of example.com. can be easily realized by checking whether the lists [com,example | _] and [com,example,a] unify. Note that the latter list corresponds to name(a.example.com.), but the former one does not correspond to name(example.com.).

Semantics of Wildcard Labels. Due to wildcard labels, DNS zones can effectively be very large. In a naïve model, one could represent the semantics of wildcard owner names by the set of all ground names for which wildcard synthesis would occur, though such sets would be unwieldily large.

To represent the semantics of wildcard owner names more efficiently, we use sets of wildcard constraints, which represent labels for which wildcard synthesis does not occur (see § 4.3). These sets replace wildcard labels and thus form their own kind of labels.

Definition 4.2. The set of wildcard-constraint labels L∗\mathcal{L}^{*} is defined as:

L∗={S∪{∗}∣S⊆L}.\mathcal{L}^{*} = \{S \cup\{*\} \mid S \subseteq\mathcal{L}\}.

Observe that every wildcard-constraint label contains the wildcard label ∗* itself. This is because the literal wildcard owner name, by definition, always exists. Thus, no name server would perform synthesis for a name containing the wildcard owner name.

We extend the set of names N\mathcal{N} to N∗\mathcal{N}^{*}, which will use labels from L∗\mathcal{L}^{*} in their leftmost label.

Definition 4.3. The set of wildcard-constraint names is the smallest set N∗\mathcal{N}^{*} such that:

  • Let n=l1⋅…⋅lk∈Nn = l_1 \cdot\ldots\cdot l_k \in\mathcal{N}. If l1≠∗l_1 \ne*, then n∈N∗n \in\mathcal{N}^{*}.

  • Let ∗⋅l2⋅…⋅lk∈N* \cdot l_2 \cdot\ldots\cdot l_k \in\mathcal{N} and l∈L∗l \in\mathcal{L}^{*}. l⋅l2⋅…⋅lk∈N∗l \cdot l_2 \cdot\ldots\cdot l_k \in\mathcal{N}^{*}.

For example, assuming that only the name y.example. exists below example, the name *.example. would be represented as {y,∗}\{y,*\}.example..

We lift zone configurations cc from 2N⇀N⇀N⇀T⇀2D2^{\mathcal{N}} \rightharpoonup\mathcal{N} \rightharpoonup\mathcal{N} \rightharpoonup\mathcal{T} \rightharpoonup2^{\mathcal{D}} to 2N∗⇀N∗⇀N∗⇀T⇀2D2^{\mathcal{N}^{*}} \rightharpoonup\mathcal{N}^{*} \rightharpoonup\mathcal{N}^{*} \rightharpoonup\mathcal{T} \rightharpoonup2^{\mathcal{D}} by replacing every name in the third argument, representing an RRset owner name, with the corresponding name in N∗\mathcal{N}^{*}, following Definition 4.3. The concrete constraints for a wildcard owner name ∗⋅n* \cdot n can easily be computed within cc.

Whenever the wildcard synthesis of responses must be considered in our formal model, we represent wildcard owner names, i.e., names where l1∈L∗l_1 \in\mathcal{L}^{*}, by lists in which we represent the wildcard label with a variable v∈Vv \in\mathcal{V}. Whenever we use such lists in CLP rules, we represent the wildcard constraints l∈l1l \in l_1 by inequality constraints v≠lv \ne l in the rule body. For example, consider again the example wildcard-constraint name {y,∗}\{y,*\}.example.. In a CLP rule, we would model when wildcard synthesis occurs by a rule of the following structure:

p([example,V∣_])←V≠y,V≠∗.p([\text{example},V\mid\_]) \leftarrow V \ne y, V \ne*.

More formally, we define the function name⁡v,w:N∪N∗→TΣ\operatorname{name}_{v,w} : \mathcal{N} \cup\mathcal{N}^{*} \to\mathcal{T}_{\Sigma} that replaces wildcard-constraint labels with a variable v∈Vv \in\mathcal{V} and uses a variable w∈Vw \in\mathcal{V} for the list tail:

name⁡v,w(l1⋅…⋅ln⋅ε)={[ln,…,l2,v∣w]l1∈L∗[ln,…,l1]otherwise.\operatorname{name}_{v,w}(l_1 \cdot\ldots\cdot l_n \cdot\varepsilon) = \begin{cases} [l_n,\ldots,l_2,v \mid w] & l_1 \in\mathcal{L}^{*} \\ [l_n,\ldots,l_1] & \text{otherwise.} \end{cases}

The function Cv:N∪N∗→2FC_v : \mathcal{N} \cup\mathcal{N}^{*} \to2^{\mathcal{F}} associates a name with a set of constraints for vv like those occurring in the rule body above. The constraints represent all labels for which no synthesis will occur:

Cv(l1⋅n)={{v≠l∣l∈l1}l1∈L∗∅otherwise.C_v(l_1 \cdot n) = \begin{cases} \{v \ne l \mid l \in l_1\} & l_1 \in\mathcal{L}^{*} \\ \varnothing& \text{otherwise.} \end{cases}

Representing Data

To represent data, we introduce the function data⁡:2D→TΣ\operatorname{data} : 2^{\mathcal{D}} \to\mathcal{T}_{\Sigma}. For an RRset {f(x1,…,xn),…}∈2D\{f(x_1,\ldots,x_n),\ldots\} \in2^{\mathcal{D}}, data maps that set to a list, representing each of the RRset’s elements in no particular order, using the respective function term f/n∈Gf/n \in\mathcal{G}, and representing the concrete data item xix_i either as an atom or as name⁡(xi)\operatorname{name}(x_i), if xix_i is a name.

A Formal Model of Recursive Resolution

In this section, we describe how we translate a zone configuration into a logic program that allows one to reason about the resolvable queries for that configuration.

Logic Program Domain

Our logic program uses the following function symbols G\mathcal{G}:

  • ⋅/2\cdot/2 and []/0[]/0 for lists.

  • ⊥/0\bot/0 and ⊤/0\top/0 for a Boolean.

  • 0/00/0 and 1/01/0 for a bit.

  • referral/0 to model when a name server serves non-authoritative data for referrals, e.g., NS or glue records.

  • All symbols in T\mathbb{T}, with the respective arity of the data, to represent data.

We will use x∉{a,b,c,…}x \notin\{a,b,c,\ldots\} as syntactic sugar for x≠a,x≠b,x≠c,…x \ne a,x \ne b,x \ne c,\ldots. Furthermore, our logic program will use the following predicate symbols P\mathcal{P}:

  • member/2 for list inclusion,

  • min/3 for the conjunction of two AD bits,

  • resolves/8 to model recursive resolution considering response data, and

  • resolvable/3 to model which queries are resolvable without considering the data.

resolves(s,t,z,n,d,r,v,a)(s,t,z,n,d,r,v,a) models that querying name server set ss with query type tt for query name nn results in the data dd. Furthermore, zz indicates the zone through which the answer was inferred, r∈{⊥,⊤}r \in\{\bot,\top\} indicates whether an alias was followed, v∈{⊥,⊤}v \in\{\bot,\top\} indicates whether the resolver is performing DNSSEC validation, and a∈{0,1}a \in\{0,1\} indicates whether the query answer could be validated as authentic. Note that v=⊥v = \bot implies that a=0a = 0; one cannot validate an answer as authentic without performing validation. When v=⊤v = \top, aa can be either 0 or 1. If a=1a = 1, the resolver validated the answer as authentic. If a=0a = 0, the resolver accepted the answer as insecure because it validated a delegation as insecure. Note that resolvable(t,n,v)(t,n,v) effectively is a projection of resolves(s,t,z,n,d,r,v,a)(s,t,z,n,d,r,v,a), as will become clear later.

Constraint Domain

To model the DNS, we also use the following constraints:

  • (≠)/2(\ne)/2 for inequality,

  • isName/1 for whether a term corresponds to a valid name, e.g., checking that its length remains within the bounds of the DNS,

  • digestValid/3 and signatureValid/4 for digest and signature verification, as well as

  • nsecUnsigned/2, closestEncloser/5, and nsec3Unsigned/3 for verifying proofs of insecure delegations.

We model (≠)(\ne) and isName as constraints to represent large zones efficiently. For example, some DNAME and wildcard records can lead to a vast number of queries being resolvable, which we represent symbolically using the above two predicates.

We encode DNSSEC-related checks using constraints because (a) we solve them only when they are instantiated on ground terms, and expressing them as CLP constraints provides an efficient way to achieve that, and (b) implementing, e.g., signature verification is much more straightforward in an ordinary programming language than in Horn clauses.

Formally, our logic program will use the constraint signature ΣC=(V,C,G,P)\Sigma_{\mathcal{C}} = (\mathcal{V},\mathcal{C},\mathcal{G},\mathcal{P}), where P\mathcal{P} contains the above predicates. Our constraint domain’s domain of computation DC\mathcal{D}_{\mathcal{C}} uses the universe of all ground terms. It interprets (≠)(\ne) as the complement of the identity relation, and it interprets all other constraints directly as agreeing with the solver implementation, which we will describe in Section 7. To obtain the constraint theory TC\mathcal{T}_{\mathcal{C}}, we follow the straightforward construction from [18], and obtain it as the theory of all first-order formulae true in DC\mathcal{D}_{\mathcal{C}}.

The Formal Model

To reason about the resolvability of a zone configuration c:2N→N→N∗→T→2Dc : 2^{\mathcal{N}} \to\mathcal{N} \to\mathcal{N}^{*} \to\mathbb{T} \to2^{\mathcal{D}}, we compile the configuration’s RRsets to a CLP Γ(s0,k0,c)\Gamma(s_{0},k_{0},c), where s0⊆Ns_{0} \subseteq\mathcal{N} is a set of initial name servers and k0⊆Dk_{0} \subseteq\mathcal{D} is a set of trusted DS records that bootstraps DNSSEC validation. We assume that k0k_{0} is for the apex of cc’s topmost zone z0∈Nz_{0} \in\mathcal{N}. We compile every RRset into a “base case” rule, which models that if a recursive resolver queries a name server ss for some name nn and query type tt, it will respond with the data that it has stored for that name and type, and that data will be unauthenticated. Moreover, we compile every RRset with a structural record type into “step case” rules, which model how a recursive resolver interprets the respective structural record, e.g., leading to recursive queries.

Let s⊆Ns \subseteq\mathcal{N} be a set of name servers, z∈Nz \in\mathcal{N} a zone name, n∈N∗n \in\mathcal{N}^{*} an owner name, and t∈Tt \in\mathbb{T} a record type, such that (s,z,n,t,d)∈c(s,z,n,t,d) \in c. In the following, we will define a function γs0:2N→N→N∗→T→2D→2F\gamma_{s_{0}} : 2^{\mathcal{N}} \to\mathcal{N} \to\mathcal{N}^{*} \to\mathbb{T} \to2^{\mathcal{D}} \to2^{\mathcal{F}} that compiles (s,z,n,t,d)(s,z,n,t,d) to a set of Horn clauses. The Horn clauses Γ(s0,k0,c)\Gamma(s_{0},k_{0},c) associated with a zone configuration cc then include a rule Resolvable\mathrm{Resolvable} that projects resolves to resolvable atoms, rules A(s0,k0,z0)A(s_{0},k_{0},z_{0}) for the trusted DS records, and the images of γs0\gamma_{s_{0}} over cc:

Γ(s0,k0,c)={Resolvable}∪A(s0,k0,z0)∪⋃(s,z,n,t,d)∈cγs0(s,z,n,t,d).\Gamma(s_{0},k_{0},c) = \{\mathrm{Resolvable}\} \cup A(s_{0},k_{0},z_{0}) \\ \cup\bigcup_{(s,z,n,t,d)\in c} \gamma_{s_{0}}(s,z,n,t,d).

We project resolves atoms to resolvable atoms, provided that the response was obtained from the initial name servers, not referral data, and that the query type was for a non-structural record type, i.e., not in the set:

TS={SOA,NS,CNAME,DNAME,DS,DNSKEY,NSEC,NSEC3,RRSIG,NSEC3PARAM}.T_{\mathrm{S}} = \{\mathrm{SOA}, \mathrm{NS}, \mathrm{CNAME}, \mathrm{DNAME}, \mathrm{DS}, \mathrm{DNSKEY}, \mathrm{NSEC}, \mathrm{NSEC3}, \mathrm{RRSIG}, \mathrm{NSEC3PARAM}\}.

We opted to exclude reasoning about the resolvability of structural record types because their purpose is not to be resolvable by themselves but to enable the (authenticated) resolvability of other records.

Rresolvable=resolvable⁡(Q,N,V)←Q∉TS,resolves⁡(name⁡(s0),Q,Z,N,_,_,V,_),Z≠referral⁡.R_{\mathrm{resolvable}} = \operatorname{resolvable}(Q,N,V) \leftarrow \begin{aligned} &Q \notin T_{\mathrm{S}},\\ &\operatorname{resolves}(\operatorname{name}(s_0),Q,Z,N,\_,\_,V,\_),Z \ne\operatorname{referral}. \end{aligned}

In the following, we will define γs0\gamma_{s_0} by a case distinction. In each case, we will constrain which formulas must be in γs0\gamma_{s_0}’s image. The image of γs0\gamma_{s_0} is then understood to be the smallest set satisfying all constraints. In some cases, parts of a rule will be similar. To highlight them, we will underline those parts that differ.

Base Case Rules For every RRset in cc’s image, we add a rule to represent that when we query a set of name servers for a query name and query type, they will respond with the RRset matching the query exactly. We choose zone∈{referral⁡,name⁡(z)}zone \in\{\operatorname{referral},\operatorname{name}(z)\} according to whether the owner name nn is indeed part of zone zz or a referral. As the name servers may perform synthesis, we add one rule covering a query for the literal wildcard owner name, and one rule considering synthesis. Note that if nn is not a wildcard owner name, both rules will be equal.

resolves⁡(name⁡(s),t,zone,name⁡(n),data⁡(d),⊥,⊥,0).\operatorname{resolves}(\operatorname{name}(s),t,zone,\operatorname{name}(n),\operatorname{data}(d),\bot,\bot,0).

∈γs0(s,z,n,t,d)\in\gamma_{s_0}(s,z,n,t,d)

resolves⁡(name⁡(s),t,zone,name⁡L,N(n),data⁡(d),⊥,⊥,0)←CL(n),isName⁡(name⁡L,N(n)).\operatorname{resolves}(\operatorname{name}(s),t,zone,\operatorname{name}_{L,N}(n),\operatorname{data}(d),\bot,\bot,0) \leftarrow C_L(n),\operatorname{isName}(\operatorname{name}_{L,N}(n)).

∈γs0(s,z,n,t,d)\in\gamma_{s_0}(s,z,n,t,d)

We compile the trusted DS records similarly to the base case rules above. If k0=∅k_0 = \varnothing, then A(s0,k0,z0)=∅A(s_0,k_0,z_0) = \varnothing. Otherwise, we compile the following rule to bootstrap DNSSEC validation:

A(s0,k0,z0)={resolves⁡(name⁡(s0),DS,name⁡(z0),name⁡(z0),data⁡(k0),⊥,⊤,1)}.A(s_0,k_0,z_0) = \{\operatorname{resolves}(\operatorname{name}(s_0),\mathrm{DS},\operatorname{name}(z_0),\operatorname{name}(z_0),\operatorname{data}(k_0),\bot,\top,1)\}.

Step Case Rules The compilation of structural records into “step case” rules depends on the record type.

NS Let t=NSt = \mathrm{NS} and d={NS(s⃗1),…,NS(s⃗k)}d = \{\mathrm{NS}(\vec{s}_1),\ldots,\mathrm{NS}(\vec{s}_k)\}, let s⃗={s⃗1,…,s⃗k}\vec{s} = \{\vec{s}_1,\ldots,\vec{s}_k\} be the set of name servers responsible for the child, and let name⁡(n)=[ln,…,l1]\operatorname{name}(n) = [l_n,\ldots,l_1] be the delegated name. We compile NS records into multiple rules whenever n≠zn \ne z, i.e., the NS records are not at the zone’s apex, and these rules can be grouped into two categories. First, we compile rules that model the propagation of data from a child to the parent. Intuitively, this models that one can use the NS records from the parent zone to obtain data from the child zone, provided one can also obtain one of the respective servers’ IP addresses. We compile the following rule for each child name server s⃗i\vec{s}_i, address record type t′∈{A,AAAA}t' \in\{\mathrm{A},\mathrm{AAAA}\}, and address lookup glue, with one restriction, which we explain below.

glue∈{resolves⁡(name⁡(s),t′,referral⁡‾,name⁡(s⃗i),_,⊥,⊥,0),resolves⁡(name⁡(s0),t′,_,name⁡(s⃗i),_,⊥,⊥,0)}\begin{aligned} glue \in\{&\operatorname{resolves}(\operatorname{name}(s),t',\underline{\operatorname{referral}},\operatorname{name}(\vec{s}_i),\_,\bot,\bot,0),\\ &\operatorname{resolves}(\operatorname{name}(s_0),t',\_,\operatorname{name}(\vec{s}_i),\_,\bot,\bot,0)\} \end{aligned}
resolves⁡(name⁡(s),T,name⁡(z)‾,[ln,…,l1∣N],D,R,V,A)←isName⁡([ln,…,l1∣N]),glue,resolves⁡(name⁡(s⃗),T,name⁡(n),[ln,…,l1∣N],D,R,V,A).\operatorname{resolves}(\operatorname{name}(s),T,\underline{\operatorname{name}(z)},[l_n,\ldots,l_1 \mid N],D,R,V,A) \leftarrow \begin{aligned} &\operatorname{isName}([l_n,\ldots,l_1 \mid N]),\\ &glue,\\ &\operatorname{resolves}(\operatorname{name}(\vec{s}),T,\operatorname{name}(n),[l_n,\ldots,l_1 \mid N],D,R,V,A). \end{aligned}

∈γs0(s,z,n,NS,d)\in\gamma_{s_0}(s,z,n,\mathrm{NS},d)

Note that the name server address query glueglue does not follow aliases, which is required by RFC 2181 [13].

To model how resolvers obtain the name server’s IP address, we distinguish whether the name server s⃗i\vec{s}_i sits below the delegated name nn. If s⃗i\vec{s}_i is at or below nn, the recursive resolver expects the parent zone’s name servers ss to serve glue records. Thus, we only emit the rule that queries the name server address via the initial name server s0s_0 if s⃗i\vec{s}_i is not at or below nn.

Second, we compile rules that model the propagation of unauthenticated answers through insecure delegations while performing validation. A resolver can establish that a delegation is insecure by validating an NSEC or NSEC3 proof. NSEC and NSEC3 records provide authenticated denial of existence, and they indicate which types exist for a given owner name. When they indicate that no DS records exist at a zone cut, a resolver cannot obtain authentic child zone verification keys through the configured trust anchors, and can thus accept insecure responses [8, 28, 29].

The difference between NSEC and NSEC3 records is that NSEC records allow one to enumerate all names that occur in a zone, which can be prevented when using NSEC3. This is achieved by hashing the original owner names, which, though, changes how resolvers can authenticate that there is no DS record at a zone cut.

There are three ways in which a resolver can learn that a delegation is insecure, and thus we compile the rule below for each choice of insecure∈{nsec,nsec3a,nsec3b}insecure \in\{\mathrm{nsec},\mathrm{nsec3}_a,\mathrm{nsec3}_b\}. The rule models that if a resolver can validate a delegation to be insecure (modeled by insecureinsecure) they will propagate insecure data as validated to be insecure. Note that the validation flag changes from ⊥\bot in the body to ⊤\top in the head.

resolves⁡(name⁡(s),T,name⁡(z),[ln,…,l1∣N],D,⊥,⊤,0)←T≠DS,isName⁡([ln,…,l1∣N]),resolves⁡(name⁡(s),T,name⁡(z),[ln,…,l1∣N],D,⊥,⊥,0),insecure.\begin{aligned} &\operatorname{resolves}(\operatorname{name}(s),T,\operatorname{name}(z),[l_n,\ldots,l_1\mid N],D,\bot,\top,0)\leftarrow\\ &T\ne DS,\\ &\operatorname{isName}([l_n,\ldots,l_1\mid N]),\\ &\operatorname{resolves}(\operatorname{name}(s),T,\operatorname{name}(z),[l_n,\ldots,l_1\mid N],D,\bot,\bot,0),\\ &\mathit{insecure}. \end{aligned}

∈γs0(s,z,n,NS,d)\in\gamma_{s_0}(s,z,n,NS,d)

In the model for insecure, the resolves predicates obtain the records used to prove that the delegation is insecure, and the constraints nsecUnsigned, nsec3Unsigned, and closestEncloser model the necessary checks on those records.

nsec=resolves⁡(name⁡(s),NSEC⁡,name⁡(z),name⁡(n),[DNSEC],⊥,⊤,1),nsecUnsigned⁡(name⁡(n),DNSEC)\begin{aligned} \mathit{nsec}={}&\\ &\operatorname{resolves}(\operatorname{name}(s),\operatorname{NSEC},\operatorname{name}(z),\operatorname{name}(n),[D_{\mathrm{NSEC}}],\bot,\top,1),\\ &\operatorname{nsecUnsigned}(\operatorname{name}(n),D_{\mathrm{NSEC}}) \end{aligned}

NSEC3 records have particular owner names, which hide the records’ original owner names. Namely, their owner names are the name of the zone with a hash prepended, for example, S83…5D8.example.com.⁡S83\ldots5D8.\operatorname{example.com.}. For a parent zone with apex z=l1⋯lnz=l_1\cdots l_n, we represent such names with the two lists below, each containing a variable for the hashed label:

n1=[ln,…,l1,L1]n2=[ln,…,l1,L2]n_1=[l_n,\ldots,l_1,L_1]\qquad n_2=[l_n,\ldots,l_1,L_2]
nsec3a=resolves⁡(name⁡(s),NSEC3⁡,name⁡(z),n1,[DNSEC3],⊥,⊤,1),nsec3Unsigned⁡(name⁡(n),n1,DNSEC3)\begin{aligned} \mathit{nsec3a}={}&\\ &\operatorname{resolves}(\operatorname{name}(s),\operatorname{NSEC3},\operatorname{name}(z),n_1,[D_{\mathrm{NSEC3}}],\bot,\top,1),\\ &\operatorname{nsec3Unsigned}(\operatorname{name}(n),n_1,D_{\mathrm{NSEC3}}) \end{aligned}
nsec3b=resolves⁡(name⁡(s),NSEC3⁡,name⁡(z),n1,[DNSEC3],⊥,⊤,1),resolves⁡(name⁡(s),NSEC3⁡,name⁡(z),n2,[DNSEC3′],⊥,⊤,1),closestEncloser⁡(name⁡(n),n1,DNSEC3,n2,DNSEC3′)\begin{aligned} \mathit{nsec3b}={}&\\ &\operatorname{resolves}(\operatorname{name}(s),\operatorname{NSEC3},\operatorname{name}(z),n_1,[D_{\mathrm{NSEC3}}],\bot,\top,1),\\ &\operatorname{resolves}(\operatorname{name}(s),\operatorname{NSEC3},\operatorname{name}(z),n_2,[D_{\mathrm{NSEC3}}'],\bot,\top,1),\\ &\operatorname{closestEncloser}(\operatorname{name}(n),n_1,D_{\mathrm{NSEC3}},n_2,D_{\mathrm{NSEC3}}') \end{aligned}

As per [22], the semantics of NS records with a wildcard owner name are undefined, and we thus do not consider the wildcard synthesis of responses for NS records.

CNAME Let t=CNAME⁡t=\operatorname{CNAME} and d={CNAME⁡(n⃗)}d=\{\operatorname{CNAME}(\vec{n})\}. For CNAME records, we model that if we can resolve the target name n⃗\vec{n} starting from the initial name servers, we can also resolve the alias at the name servers ss serving the CNAME record. Note that there must be only one CNAME record per owner name, which is why we only consider dd to contain one element above. We forbid the resolution of CNAME queries using this rule (T≠CNAME⁡T\ne\operatorname{CNAME}) as those queries would be answered by the corresponding CNAME record directly, and forbid the resolution of DNSSEC-related records TSECT_{\mathrm{SEC}}, as their resolution does not follow aliases:

TSEC={DS⁡,DNSKEY⁡,NSEC⁡,NSEC3⁡,RRSIG⁡}.T_{\mathrm{SEC}}=\{\operatorname{DS},\operatorname{DNSKEY},\operatorname{NSEC},\operatorname{NSEC3},\operatorname{RRSIG}\}.
resolves⁡(name⁡(s),T,name⁡(z),name⁡(n),D,⊤,⊥,0)←T∉{CNAME⁡}∪TSEC,isName⁡(name⁡(n)),resolves⁡(name⁡(s0),T,Z,name⁡(n⃗),D,_,⊥,0),Z≠referral⁡.\begin{aligned} &\operatorname{resolves}(\operatorname{name}(s),T,\operatorname{name}(z),\operatorname{name}(n),D,\top,\bot,0)\leftarrow\\ &T\notin\{\operatorname{CNAME}\}\cup T_{\mathrm{SEC}},\\ &\operatorname{isName}(\operatorname{name}(n)),\\ &\operatorname{resolves}(\operatorname{name}(s_0),T,Z,\operatorname{name}(\vec{n}),D,\_,\bot,0),\\ &Z\ne\operatorname{referral}. \end{aligned}

∈γs0(s,z,n,CNAME⁡,d)\in\gamma_{s_0}(s,z,n,\operatorname{CNAME},d)

Similarly to our model of NS records, we model that CNAME records propagate the authentication status of aliases. A response for a query to an aliased name can be authenticated if both the query for the CNAME record and for the alias target can be authenticated. If either query has an insecure response, the combined response is insecure as well, which we model using the variable AA and the min⁡\min predicate below.

resolves⁡(name⁡(s),T,name⁡(z),name⁡(n),D,⊤,⊤,A)←T∉{CNAME⁡}∪TSEC,isName⁡(name⁡(n)),resolves⁡(name⁡(s0),CNAME⁡,_,name⁡(n),data⁡(d),⊥,⊤,A1),resolves⁡(name⁡(s0),T,Z,name⁡(n⃗),D,_,⊤,A2),min⁡(A1,A2,A),Z≠referral⁡.\begin{aligned} &\operatorname{resolves}(\operatorname{name}(s),T,\operatorname{name}(z),\operatorname{name}(n),D,\top,\top,A)\leftarrow\\ &T\notin\{\operatorname{CNAME}\}\cup T_{\mathrm{SEC}},\\ &\operatorname{isName}(\operatorname{name}(n)),\\ &\operatorname{resolves}(\operatorname{name}(s_0),\operatorname{CNAME},\_,\operatorname{name}(n),\operatorname{data}(d),\bot,\top,A_1),\\ &\operatorname{resolves}(\operatorname{name}(s_0),T,Z,\operatorname{name}(\vec{n}),D,\_,\top,A_2),\\ &\min(A_1,A_2,A),Z\ne\operatorname{referral}. \end{aligned}

∈γs0(s,z,n,CNAME⁡,d)\in\gamma_{s_0}(s,z,n,\operatorname{CNAME},d)

CNAME records may have wildcard owner names. We thus also add rules to γs0(s,z,n,CNAME⁡,d)\gamma_{s_0}(s,z,n,\operatorname{CNAME},d) that consider the synthesis of responses. We compile these rules just as before but with the difference that we add the constraints CL(n)C_L(n) to the rule body and replace name⁡(n)\operatorname{name}(n) with name⁡∈L(n)\operatorname{name}_{\in L}(n) outside the query for the validated CNAME record.

DNAME Let t=DNAME⁡t=\operatorname{DNAME}, d={DNAME⁡(n⃗),name⁡(n)=[ln,…,l1],name⁡(n⃗)=[l⃗m,…,l⃗1]}d=\{\operatorname{DNAME}(\vec{n}),\operatorname{name}(n)=[l_n,\ldots,l_1],\operatorname{name}(\vec{n})=[\vec{l}_m,\ldots,\vec{l}_1]\}. We compile DNAME records analogously to CNAME records, with the only difference being that names are rewritten according to the DNAME rules [30] and that we allow for resolving DNAME queries. We model the rewriting of DNAME records using the variables LL and NN, which capture the non-empty list suffix [L∣N][L\mid N], corresponding to the rewritten name prefix. We add the following two rules, the latter of which again models the propagation of the alias’s authentication status.

resolves⁡(name⁡(s),T,name⁡(z),[ln,…,l1,L∣N],D,⊤,⊥,0)←T∉TSEC,isName⁡([ln,…,l1,L∣N]),resolves⁡(name⁡(s0),T,Z,[l⃗m,…,l⃗1,L∣N],D,_,⊥,0),Z≠referral⁡.\begin{aligned} &\operatorname{resolves}(\operatorname{name}(s),T,\operatorname{name}(z),[l_n,\ldots,l_1,L\mid N],D,\top,\bot,0)\leftarrow\\ &T\notin T_{\mathrm{SEC}},\\ &\operatorname{isName}([l_n,\ldots,l_1,L\mid N]),\\ &\operatorname{resolves}(\operatorname{name}(s_0),T,Z,[\vec{l}_m,\ldots,\vec{l}_1,L\mid N],D,\_,\bot,0),\\ &Z\ne\operatorname{referral}. \end{aligned}

∈γs0(s,z,n,DNAME⁡,d)\in\gamma_{s_0}(s,z,n,\operatorname{DNAME},d)

resolves⁡(name⁡(s),T,name⁡(z),[ln,…,l1,L∣N],D,⊤,⊤,A)←T∉TSEC,isName⁡([ln,…,l1,L∣N]),resolves⁡(name⁡(s0),DNAME,_,name⁡(n),data⁡(d),⊥,⊤,A1),resolves⁡(name⁡(s0),T,Z,[l⃗m,…,l⃗1,L∣N],D,_,⊤,A2),min⁡(A1,A2,A),Z≠referral⁡.\operatorname{resolves}(\operatorname{name}(s),T,\operatorname{name}(z),[l_n,\ldots,l_1,L \mid N],D,\top,\top,A) \leftarrow \begin{aligned} &T \notin\mathcal{T}_{\mathrm{SEC}},\\ &\operatorname{isName}([l_n,\ldots,l_1,L \mid N]),\\ &\operatorname{resolves}(\operatorname{name}(s_0),\mathrm{DNAME},\_,\operatorname{name}(n),\operatorname{data}(d),\bot,\top,A_1),\\ &\operatorname{resolves}(\operatorname{name}(s_0),T,Z,[\vec{l}_m,\ldots,\vec{l}_1,L \mid N],D,\_,\top,A_2),\\ &\min(A_1,A_2,A),Z \ne\operatorname{referral}. \end{aligned}
∈γs0(s,z,n,DNAME,d)\in\gamma_{s_0}(s,z,n,\mathrm{DNAME},d)

We reject DNAME records with wildcard owner names, following the recommendation in [22], and therefore need not consider them in our compilation.

RRSIG Finally, we model the validation of responses via DNSSEC, using RRSIG records. Let t=RRSIGt=\mathrm{RRSIG} and d={sig⁡,…}d=\{\operatorname{sig},\ldots\} where sig is RRSIG data covering type tCOVt_{\mathrm{COV}} and signed by the operator of zone nSIGn_{\mathrm{SIG}}. We distinguish between validation of DNSKEY and other record types as well as between the validation of records with wildcard owner names and other owner names. The difference is that DNSKEY RRsets contain their own verification key, while one must first obtain an authentic verification key for other record types. If tCOV≠DNSKEYt_{\mathrm{COV}}\ne\mathrm{DNSKEY} and the record does not have a wildcard owner name, we add a rule for each data item sig within dd that (a) looks up the data to be validated, (b) looks up an authenticated verification key RRset, (c) non-deterministically chooses one of the keys in the RRset with the member predicate, and (d) verifies the signature with that key with the signatureValid constraint.

resolves⁡(name⁡(s),tCOV,name⁡(z),name⁡(n),D,⊥,⊤,1)←resolves⁡(name⁡(s),tCOV,name⁡(z),name⁡(n),D,⊥,⊥,0),resolves⁡(name⁡(s),DNSKEY,name⁡(z),name⁡(nSIG),DKEY,⊥,⊤,1),member⁡(K,DKEY),signatureValid⁡(name⁡(n),D,sig⁡,K).\begin{aligned} \operatorname{resolves}(\operatorname{name}(s),t_{\mathrm{COV}},\operatorname{name}(z),\operatorname{name}(n),D,\bot,\top,1) \leftarrow{}& \operatorname{resolves}(\operatorname{name}(s),t_{\mathrm{COV}},\operatorname{name}(z),\operatorname{name}(n),D,\bot,\bot,0),\\ &\operatorname{resolves}(\operatorname{name}(s),\mathrm{DNSKEY},\operatorname{name}(z),\operatorname{name}(n_{\mathrm{SIG}}),D_{\mathrm{KEY}},\bot,\top,1),\\ &\operatorname{member}(K,D_{\mathrm{KEY}}),\\ &\operatorname{signatureValid}(\operatorname{name}(n),D,\operatorname{sig},K). \end{aligned}
∈γs0(s,z,n,RRSIG,d)\in\gamma_{s_0}(s,z,n,\mathrm{RRSIG},d)

If the RRSIG record has a wildcard owner name, we generate the same rule as above but replace all occurrences of name⁡(n)\operatorname{name}(n) outside the signatureValid constraint with name⁡L,N(n)\operatorname{name}_{L,N}(n) and add the corresponding constraints CL(n)C_L(n) to the rule body. While the respective RFCs contain explicit mechanisms for signature verification for synthesized responses, we perform the signature check directly on the record owner name instead of the synthesized name.

Note that the validation of responses synthesized from a wildcard owner name also requires validating that no non-synthesized answer to the query exists, which we omit in our model for performance reasons. If a direct answer to the query existed, the name server would not synthesize the response. Thus, if a resolver omits the check of non-existence, an attacker could use the signature over a record with a wildcard owner name to “overwrite” the name server’s actual response.

As DNSKEY RRsets contain their own verification key, we cannot authenticate that key by performing another DNSKEY lookup. DNSKEY verification keys are authenticated by authentic DS RRsets, which replace the DNSKEY lookup from the rule above in our model for DNSKEY RRset validation. Thus, if tCOV=DNSKEYt_{\mathrm{COV}}=\mathrm{DNSKEY}, then we add the rule below for each data item sig within dd.

resolves⁡(name⁡(s),DNSKEY,name⁡(z),name⁡(n),D,⊥,⊤,1)←resolves⁡(name⁡(s),DNSKEY,name⁡(z),name⁡(n),D,⊥,⊥,0),resolves⁡(name⁡(s0),DS,name⁡(n),DDS,⊥,⊤,1),member⁡(K,D),member⁡(KDIG,DDS),digestValid⁡(name⁡(n),K,KDIG),signatureValid⁡(name⁡(n),D,sig⁡,K).\begin{aligned} \operatorname{resolves}(\operatorname{name}(s),\mathrm{DNSKEY},\operatorname{name}(z),\operatorname{name}(n),D,\bot,\top,1) \leftarrow{}& \operatorname{resolves}(\operatorname{name}(s),\mathrm{DNSKEY},\operatorname{name}(z),\operatorname{name}(n),D,\bot,\bot,0),\\ &\operatorname{resolves}(\operatorname{name}(s_0),\mathrm{DS},\operatorname{name}(n),D_{\mathrm{DS}},\bot,\top,1),\\ &\operatorname{member}(K,D),\\ &\operatorname{member}(K_{\mathrm{DIG}},D_{\mathrm{DS}}),\\ &\operatorname{digestValid}(\operatorname{name}(n),K,K_{\mathrm{DIG}}),\\ &\operatorname{signatureValid}(\operatorname{name}(n),D,\operatorname{sig},K). \end{aligned}
∈γs0(s,z,n,RRSIG,d)\in\gamma_{s_0}(s,z,n,\mathrm{RRSIG},d)

We do not consider the case that a DNSKEY RRset is synthesized from an RRset with a wildcard owner name. This is because DNSKEY RRsets must only occur at the apex of a zone, which requires delegation by an NS record with the same owner and thus wildcard owner name, which has undefined semantics [22].

Change-Impact Analysis

In this section, we present an algorithm to compute a change-impact analysis for two CLPs. This algorithm proceeds in two steps. First, it computes all facts that are a consequence of the CLP, i.e., everything that is resolvable in a given zone configuration. Second, it computes the difference between the two sets of resolvable queries. Note that this difference cannot be computed by a simple set difference as the computed facts may contain residual constraints, for example, representing wildcard synthesis. We will prove soundness and completeness of our algorithm in § 9.

Resolvable Queries

For a CLP PP, a fact a←ca\leftarrow c is an immediate consequence [18] of a set of facts FF using a rule R=h←b1,…,bn∈PR=h\leftarrow b_1,\ldots,b_n\in P if a=ha=h and there is a derivation ⟨b1,…,bn∣∅⟩⇒⋯⇒⟨∅∣c⟩\langle b_1,\ldots,b_n\mid\emptyset\rangle\Rightarrow\cdots\Rightarrow\langle\emptyset\mid c\rangle in FF. Intuitively, a rule has an immediate consequence with respect to a set of facts FF if all predicates in the rule body but not the constraints can be unified consistently with some fact in FF. SR(F)S_R(F) denotes the set of FF’s procedural immediate consequences using RR, and SP(F)S_P(F) denotes a program’s procedural immediate consequences, defined as:

SP(F)=⋃R∈PSR(F).S_P(F)=\bigcup_{R\in P}S_R(F).

For a set of initial name servers s0s_0 and trusted DS records k0k_0, all resolvable queries Qresolvable(s0,k0,c)Q_{\mathrm{resolvable}}(s_0,k_0,c) of zone configuration cc can then be computed as the least fixpoint lfp of the SPS_P operator, i.e., as the ⊆\subseteq-smallest set of facts FF for which SP(F)=FS_P(F)=F.

Qresolvable(s0,k0,c)={a←Ψ∈lfp⁡(SΓ(s0,k0,c))∣a is a resolvable atom}.Q_{\mathrm{resolvable}}(s_0,k_0,c)=\{a\leftarrow\Psi\in\operatorname{lfp}(S_{\Gamma(s_0,k_0,c)})\mid a\text{ is a resolvable atom}\}.

Change-Impact Analysis

The change-impact analysis for a zone configuration update can be computed from QresolvableQ_{\mathrm{resolvable}}. Given a zone configuration cc and its updated version c′c', the goal is to compute the symmetric difference of all ground instances entailed by Qresolvable(s0,k0,c)Q_{\mathrm{resolvable}}(s_0,k_0,c) and Qresolvable(s0′,k0′,c′)Q_{\mathrm{resolvable}}(s'_0,k'_0,c'), using the initial name servers and trust anchors for each version. Note that we cannot directly compute the symmetric difference of QresolvableQ_{\mathrm{resolvable}}’s images as they contain facts with potentially different constraints.

We define the operator (\):F→F→2F(\backslash):\mathcal{F}\to\mathcal{F}\to2^{\mathcal{F}}. ϕ1\ϕ2\phi_1\backslash\phi_2 is a set of formulas entailing all ground instances of ϕ1\phi_1 without the ground instances of ϕ2\phi_2, provided that ϕ1\phi_1 and ϕ2\phi_2 are both facts. In general, (\)(\backslash) returns a set of formulas, not a set of facts, and these formulas may not even be CLP rules anymore. Consider, for example, p(X)\p(f(Y))p(X)\backslash p(f(Y)). The entailed ground terms are all terms that do not use ff as a top-level symbol in pp’s first argument, i.e., p(X)←¬∃Y.p(X)=p(f(Y))p(X)\leftarrow\neg\exists Y.p(X)=p(f(Y)), which can be rewritten to p(X)←∀Y.p(X)≠p(f(Y))p(X)\leftarrow\forall Y.p(X)\ne p(f(Y)).

We thus model subtraction using universally quantified inequality constraints. As ∀\forall is part of the constraint domain’s constraint language, and ≠\ne is a constraint, our implementation will treat conjuncts as constraints, and simplify them following some simple heuristics.

When computing ϕ1\ϕ2\phi_1\backslash\phi_2 there are two cases. Either a ground term is in ϕ1\phi_1 but not in ϕ2\phi_2 because it does not unify with ϕ2\phi_2’s head, or, if it does unify with ϕ2\phi_2’s head, because it violates one of the constraints in ϕ2\phi_2. In general, the result is a disjunction. We define (\)(\backslash) in Algorithm 1.

First, to capture that the heads do not unify, Algorithm 1 states that they must not unify as a universally quantified inequality constraint in line 5. Second, to capture when the heads unify but one of the constraints is false, we unify the heads and negate each constraint of ϕ2\phi_2 in line 6.

We extend (\)(\backslash) to finite sets of formulas Γ1,Γ2⊆F\Gamma_1,\Gamma_2\subseteq\mathcal{F} as follows:

Γ1\ψ:=⋃ϕ∈Γ1ϕ\ψ\Gamma_1\backslash\psi:=\bigcup_{\phi\in\Gamma_1}\phi\backslash\psi
Γ1\Γ2:=((Γ1\ψ1)\…)\ψn,Γ2={ψ1,…,ψn}\Gamma_1\backslash\Gamma_2:=((\Gamma_1\backslash\psi_1)\backslash\ldots)\backslash\psi_n,\qquad\Gamma_2=\{\psi_1,\ldots,\psi_n\}

Thus, finally, we define the symmetric difference of ground instances entailed by two sets of facts as follows:

Γ1△Γ2:=(Γ1\Γ2)∪(Γ2\Γ1)\Gamma_1\mathbin{\triangle}\Gamma_2:=(\Gamma_1\backslash\Gamma_2)\cup(\Gamma_2\backslash\Gamma_1)

Soundness and Completeness

In this section, we provide soundness and completeness results for the algorithms that we presented in the previous section. We begin by showing that computing the set of resolvable queries as the least fixpoint of the immediate consequence operator indeed computes all queries that are resolvable within the CLP. To establish this, we can straightforwardly reuse results established in prior work [18]. Afterwards, we provide soundness and completeness results for our change-impact analysis.

Resolvable Queries

In this section, we prove that Qresolvable(s0,k0,c)Q_{\mathrm{resolvable}}(s_0,k_0,c) actually computes all resolvable facts derivable from the CLP Γ(s0,k0,c)\Gamma(s_0,k_0,c). We do this by relating the least fixpoint of the SPS_P operator to a logical interpretation of a CLP, following prior work [18].

For a CLP PP, an atom aa is a logical immediate consequence of a set of atoms AA if there is a rule r=h←b1,…,bn∈Pr=h\leftarrow b_1,\ldots,b_n\in P and valuation θ\theta such that a=θ(h)a=\theta(h) and both for all atoms bib_i occurring in rr’s body it holds that θ(bi)∈A\theta(b_i)\in A, and (b) for the conjunction cc of all constraint formulas occurring in rr’s body it holds that Dc⊨θ(c)D^{c}\models\theta(c). The logical immediate consequence function TPc(I)T_P^{c}(I) maps II to all its logical immediate consequences for PP.

One can relate a program’s logical immediate consequences to a program’s immediate consequences as defined by SPS_P. To do so, though, we must first interpret the constraints that remain when applying SPS_P, which we do with the operator [⋅]C[\cdot]_{\mathcal{C}}. [F]C[F]_{\mathcal{C}} maps a fact FF to its set of ground consequences in the constraint domain. Formally:

[h←c1,…,cn]C={σ(h)∣DC⊨σc1∧⋯∧cn}.[h\leftarrow c_1,\ldots,c_n]_{\mathcal{C}}=\{\sigma(h)\mid D_{\mathcal{C}}\models_{\sigma}c_1\land\cdots\land c_n\}.

We extend [⋅]C[\cdot]_{\mathcal{C}} to sets of facts as expected:

[S]C=⋃F∈S[F]C.[S]_{\mathcal{C}}=\bigcup_{F\in S}[F]_{\mathcal{C}}.

It has been shown in [18] that the least fixpoint of SPS_P, when its constraints are interpreted, is equal to the least fixpoint of TPCT_P^{\mathcal{C}}, which interprets constraints directly in the constraint domain. The least fixpoint of a function ff, denoted lfp⁡(f)\operatorname{lfp}(f), is the smallest set MM such that M=f(M)M=f(M).

Theorem 1 (Theorem 4.8 in [18]). Let PP be a CLP. Then:

[lfp⁡(SP)]C=lfp⁡(TPC)[\operatorname{lfp}(S_P)]_{\mathcal{C}} = \operatorname{lfp}(T_P^{\mathcal{C}})

Theorem 1 applies directly to QresolvableQ_{\mathrm{resolvable}}, which only restricts lfp⁡(SΓ(s0,k0,c))\operatorname{lfp}(S_{\Gamma(s_0,k_0,c)}) to facts with particular heads. It shows that the ground instances of the facts in Qresolvable(s0,k0,c)Q_{\mathrm{resolvable}}(s_0,k_0,c) are exactly the resolvable atoms in the logical least fixpoint of Γ(s0,k0,c)\Gamma(s_0,k_0,c). Thus, our algorithm is sound (⊆\subseteq) and complete (⊇\supseteq).

Change-Impact Analysis

We show soundness and completeness of our change-impact analysis again by reference to TPCT_P^{\mathcal{C}}. Concretely, we show that the immediate consequences of ϕ1∖ϕ2\phi_1 \setminus\phi_2 correspond to the immediate consequences of ϕ1\phi_1 without the immediate consequences of ϕ2\phi_2. In the following, we assume that ϕ1\phi_1 and ϕ2\phi_2 do not share any variables, which we call variable-disjoint, and that all free variables occurring in the formula body occur in the formula head, which we call constraint-closed.

Theorem 2. Let ϕ1,ϕ2\phi_1,\phi_2 be two variable-disjoint and constraint-closed rules, whose bodies only contain constraint formulas. Then:

lfp⁡(Tϕ1∖ϕ2C)=lfp⁡(Tϕ1C)∖lfp⁡(Tϕ2C)\operatorname{lfp}(T_{\phi_1\setminus\phi_2}^{\mathcal{C}}) = \operatorname{lfp}(T_{\phi_1}^{\mathcal{C}}) \setminus\operatorname{lfp}(T_{\phi_2}^{\mathcal{C}})

We prove Theorem 2 in Appendix A. The proof follows the construction of ϕ1∖ϕ2\phi_1 \setminus\phi_2 as per Algorithm 1.

We do not establish that the results of QresolvableQ_{\mathrm{resolvable}} will be both variable-disjoint and constraint-closed. However, we enforce both in our implementation. Variable-disjointness can be easily achieved by renaming facts before computing (∖)(\setminus), and constraint-closedness is achieved by the design of rules in Γ(s0,k0,c)\Gamma(s_0,k_0,c). We check constraint-closedness nevertheless.

Implementation

We provide a complete implementation of both our formal model and reasoning, as described in § 5 and § 8. DecDNS is written in Haskell and provides multiple modes. It can (a) reason about the resolvability of zone files, (b) compute a change-impact analysis for two sets of zone files, (c) use our formal model to recursively resolve a DNS query with real DNS name servers, and (d) compile a set of zone files to a CLP that can be loaded into SWI-Prolog [32].

Our implementation shows that our formal model and reasoning are practical. Moreover, the mode for querying live DNS servers to resolve DNS queries shows that our formal model is so accurate and detailed that it can interoperate with real DNS servers.

DecDNS has three parts: (a) a compiler from DNS zone data to a CLP, (b) a reasoning component for computing a least fixpoint, performing resolution, and computing a change-impact analysis, and (c) a constraint solver supporting the constraints described in § 7.0.2. The implementation of the compiler and the reasoning is straightforward. The constraint solver requires more attention, though, and we thus explain it in more detail below.

Constraint Solver Implementation

The constraint solver provides support for the inequality constraint (≠\ne) (also universally quantified), which we describe in detail in Appendix B, the constraint isName, and the DNSSEC-related constraints. DNSSEC-related constraints are only solved when all their arguments are ground. To avoid repeated, expensive cryptographic checks such as signature verification, our constraint solver caches the results of previously solved ground DNSSEC constraints. Checking DNSSEC-related constraints currently does not consider the records’ validity periods.

The isName constraint checks the minimum length in bytes of a name potentially containing variables and evaluates to ⊥\bot when a label exceeds the maximum length of 63 bytes or the name exceeds the maximum length of 255 bytes. It evaluates to ⊤\top only for ground inputs of valid length. We assign a variable name XX a minimum length of 1 as it may be the root name which is encoded as a zero byte. We assign a name represented by the list [l1,…,ln∣…][l_1,\ldots,l_n \mid\ldots] a minimum length of 1 (for the root label) plus the sum of the lengths of its elements l1,…,lnl_1,\ldots,l_n, which represent labels. We assign no length to a variable list tail as it may be empty. Labels represented by atoms are of length 1 (for the length byte) plus the atom’s length. Labels represented by variables have a minimum length of 2 (the length byte plus at least one character).

DNS Integration

DecDNS provides a mode in which it resolves a query using real DNS name servers, for which it only needs a list of root name server addresses, root apex NS records, and a set of trusted DS records. This mode uses the resolution rule as described in § 4.2.2 and works as follows.

We compile an initial CLP from the root hints, which identify a set s0s_0 of root name servers, and the supplied trust anchors k0k_0. Then, we attempt to solve the DNS query for query type qt\mathit{qt} and query name qn\mathit{qn} by solving the CLP query resolves⁡(name⁡(s0),qt,_,D,_,T,_),\operatorname{resolves}(\operatorname{name}(s_0),\mathit{qt},\_,\mathit{D},\_,\mathit{T},\_), i.e., we check whether we can obtain some data DD at the root name servers for the given query type and name while performing validation, but disregarding the particular zone, whether an alias was followed, and the final authentication status, thus allowing both authenticated answers and answers accepted as insecure.

During resolution in the CLP, we record all failed goals, i.e., those for which there is no solution. These failed goals encode potential follow-up queries. Concretely, for every failed goal, we extract the goal’s name server set, query name, and query type, which encodes a query to one of the name servers for that query name and type. Initially, the goal resolves(name(s0s_0),qt,_,name(qn),DD,_,⊤\top,_) will fail, which triggers the first query to a root name server.

Once we obtain all failed goals, we sort them according to a simple heuristic and send the respective queries to the respective name servers. For the example above, this would initially be a query to one of the root name servers, which would likely return referral data. We compile this new data to further CLP rules, add those to our CLP, and attempt again to solve the initial CLP query. We iterate until we find an answer to the query.

We used an existing library for DNS query encoding and parsing, but all recursive resolution logic is handled by the CLP and the query sorting heuristic.

SWI-Prolog Integration

SWI-Prolog is a popular Prolog interpreter [32], which also supports CLPs. We provide an integration for SWI-Prolog so that it can reason about CLPs compiled by DecDNS. SWI-Prolog already supports inequality constraints natively. For all other constraints, we provide a Haskell foreign-function interface, which allows Haskell code to be called from C code. For full SWI-Prolog integration, we provide a small C module that provides support for isName and DNSSEC-related constraints by linking their interpretation to our Haskell code.

Evaluation

In this section, we present our evaluation of DecDNS. First, we evaluate whether DecDNS’s reasoning is faithful to the DNS standards, both when reasoning offline about zone files in § 11.1 and when querying the live DNS infrastructure in § 11.2. Second, we show which kinds of configuration errors DecDNS can detect (§ 11.3). We discuss limitations of DecDNS in this regard later in § 13. Finally, we measure DecDNS’s performance in § 11.4.

Static Evaluation

We use the Ferret dataset [20] to evaluate whether our model of recursive resolution is faithful to the DNS standards. The Ferret dataset was created to test name server RFC compliance and contains zones and queries to those zones that exhibit corner cases of the DNS. It does not, however, contain signed zones. For each zone in the dataset, we analyze which queries are resolvable according to DecDNS and compare the results with those of BIND [17] and Knot [11].

Concretely, for a given zone and set of queries QQ in the Ferret dataset, we test the following combinations and queries:

  • We consider the zone once unsigned and once signed. The Ferret dataset also includes some invalid zones, which we only consider unsigned.

  • We load the zone into BIND or Knot as the authoritative name server.

  • We resolve each query in QQ with BIND or Knot as the recursive resolver. Resolver queries are directly forwarded to the name server serving the respective zone.

  • We also generate random queries and resolve them with either BIND or Knot as the recursive resolver.

It can occur that a name server rejects loading a zone because it considers it malformed. This can also occur for DecDNS whenever well-formedness checks fail. When a zone is loaded by both the respective name server and DecDNS, we check whether QresolvableQ_{\mathrm{resolvable}} contains a matching query if and only if the resolver returns a positive response, and we additionally compare DNSSEC validation results and response data. This comparison subsumes different reasons why a resolver may return no data, including an error such as SERVFAIL or NXDOMAIN and a successful response with no data. Overall, we evaluated 140,572 queries over 26,246 zones in four configurations (BIND/Knot name server ×\times BIND/Knot resolver).

Results We find that DecDNS’s output generally agrees with the real resolver software. We only find six types of discrepancies between DecDNS and the name servers or resolvers, which we accept as inconsistencies. During the evaluation, we found a number of errors in DecDNS, e.g., inconsistent serialization of record data for signature verification, incorrectly treating referral data as an answer, and incorrect handling of NS and DNAME records with the same owner name. We fixed these errors and iterated the evaluation until we decided that the remaining inconsistencies were acceptable.

Table 1 provides the details of the accepted inconsistencies. The largest source of inconsistencies is that the BIND name server rejects zones with missing name server addresses, but DecDNS does not. DecDNS assumes that the addresses of the name servers serving the common root of the input zones are available to the resolver. Only if a parent zone and delegation were considered would the lack of name server addresses become visible in DecDNS’s output.

Algorithm 1Algorithm to compute ϕ1\ϕ2\phi_1\backslash\phi_2. We assume that ϕ1\phi_1 and ϕ2\phi_2 share no variables.
1:Let ϕ1=h1←Ψ1\phi_1=h_1\leftarrow\Psi_1, ϕ2=h2←Ψ2\phi_2=h_2\leftarrow\Psi_2, θ=MGU⁡(h1,h2)\theta=\operatorname{MGU}(h_1,h_2).
2:if no such θ\theta exists then
3:return {ϕ1}\{\phi_1\}
4:else
5:Let u^={h1←{∀vars⁡(h2).h1≠h2}∪Ψ1}\hat{u}=\{h_1\leftarrow\{\forall\operatorname{vars}(h_2).h_1\ne h_2\}\cup\Psi_1\}.
6:Let u={θ(h1)←θ(Ψ1)∪{θ(¬c)}∣c∈Ψ2}u=\{\theta(h_1)\leftarrow\theta(\Psi_1)\cup\{\theta(\neg c)\}\mid c\in\Psi_2\}.
7:return u∪u^u\cup\hat{u}
8:end if

Table 1.

DecDNS rejects zones that contain non-referral data at or below a delegation, which Knot and BIND permit (see Appendix § 18). RFC 2181 [13 Section 6.1] only requires name servers to ignore such data at or below a zone cut. We choose to be stricter than the RFCs as we still argue that such data indicates a configuration error. DecDNS also does not synthesize CNAME records for queries that match DNAME records, but instead encodes their semantics directly in the model of recursive resolution.

Mismatch attributionQueriesZones
BIND name server rejects NS address configurations2,70038
DecDNS rejects data at or below delegation–1,556
DecDNS omits synthesized CNAME records77645
Resolver alias rewrite limits2597
Knot resolver loops on DS lookups99
Knot name server omits wildcard NSEC proofs33
Timeout–1

Table 1 (PDF p. 16). Categories of observed differences. For query counts, categories may overlap.

In some cases, DecDNS reported queries as being resolvable but the resolver did not provide a positive response. Mostly, this was due to rewrite limits of the respective resolver. For nine queries, though, Knot returned an error after it entered a loop in an attempt to resolve DS follow-up queries.

We also identified what we believe to be a Knot name server bug. For a few queries, Knot omitted the relevant NSEC proofs for a signed response synthesized from a wildcard owner name, leading to a failure in resolution by BIND and Knot while DecDNS reported the queries as resolvable.

Finally, one zone configuration from the evaluation led to a timeout. This zone allows for the resolution of approximately 2402^{40} queries due to DNAME rewrites, which cannot be represented efficiently with constraints.

Online Evaluation

We also evaluated DecDNS against real DNS infrastructure using a “100,000 queries” file, which the BIND [17] implementation provides and uses for A/B testing new releases. From this file, we randomly sampled 2,775 queries for record types supported by DecDNS. We resolved each query with both the dig utility and DecDNS in querying mode (see § 10.2), configured with a 30 s timeout and a limit of 100 queries to DNS name servers.

We show our results in Table 2. DecDNS timed out for approximately 67% of the queries. For 21% of the queries, DecDNS matched the result from dig. The results differed for around 12% of the queries.

CategoryReasonCount
Success–579
Timeout–1854
MismatchDifferent response20
Well-formedness errors8
Network error290
Query limit exhausted24

Table 2. Results of the online evaluation.

We attribute 20 of these mismatches to a name server returning different data to dig and DecDNS. This is common practice, e.g., for services using content-delivery networks. Both dig and DecDNS log all records used for resolution. After studying these logs, we concluded that both interpreted the data correctly but arrived at different results.

In all other cases, we attribute the mismatch to DecDNS raising a benign error when dig succeeds in resolving the

query. In some cases, DecDNS received records that violated well-formedness invariants. For example, it crashed upon receiving . NS localhost. In other cases, there was a network error in our testing environment affecting only DecDNS, or DecDNS exhausted its query limit.

We note, though, these results could be subject to a survivorship bias, as more complex queries are more likely to lead to a timeout but also more likely to exhibit diverging behavior between dig and DecDNS. Nevertheless, this evaluation shows that our approach provides some interoperability with real DNS infrastructure.

Detecting Configuration Errors

We evaluated whether DecDNS can detect configuration errors by introducing them into a number of example zones. Because DecDNS performs a change-impact analysis, it can detect configuration errors whenever they manifest as a change in resolvability. This, though, means that detecting configuration errors may require interpreting the results of the change-impact analysis.

Table 3 summarizes example configuration errors that we can detect. We can most easily detect errors introduced by changes that should preserve the resolvability of existing queries. This includes, for example, introducing a new zone cut or a DNSSEC key rollover, the kind of change that led to the DENIC outage [6]. For many other configuration errors, detection depends on whether the change introducing them deletes records. For example, when decommissioning name servers and moving the zone to new ones, the old name server addresses would be expected to become unresolvable, and thus there would be an expected loss of resolvability.

Performance

Static Evaluation

For the static evaluation as described in § 11.1, we measured DecDNS’s runtime per zone, including process startup and output collection, but excluding zone signing. We exclude configurations that fail well-formedness checks or time out. The average runtime is 38.0 ms for unsigned and 92.2 ms for signed zones, with medians of 31.0 ms and 76.0 ms, respectively. The 95th-percentile runtimes for original and signed configurations are 64.8 ms and 107.8 ms, respectively. To investigate outliers, we inspected the ten slowest signed and unsigned configurations, all of which contained DNAME loops, producing hundreds of derived facts from only four or five records. Note that the Ferret dataset is relatively homogeneous in structure, and that no zone configuration contains more than five records.

Configuration errorError descriptionInterpretation?
Cyclic zone dependenciesName server address resolution forms a cycle.•
Delegation inconsistencyThe parent’s delegation and the child’s authoritative name server information disagree.✓
DENIC outageDuring a rollover, multiple signing keys are used but only a subset is published as DNSKEY records, as in DENIC’s May 2026 outage [6].✗
Incomplete zone cutA new zone cut is introduced but some records are omitted.✗
Lame delegationA parent delegates a child zone to a name server that does not serve the zone.•
Missing glueA parent delegates a zone to a name server but does not include required glue records.•
Rewrite blackholingAlias rewriting terminates with a non-existent name.•
Rewrite loopAlias rewriting forms a cycle.•
Wildcard shadowingA newly added name blocks wildcard synthesis.✗

Table 3. Configuration errors that a resolvability regression analysis can detect. “Interpretation?” marks whether detecting the configuration error requires interpretation of the output. This is not the case when a change introducing that error is generally not expected to change the resolvability of data queries. “•” indicates that interpretation may only sometimes be required.

Figure 2. Runtime distribution per valid zone on a logarithmic scale. Boxes span the 25th–75th percentiles, and whiskers extend to minima and maxima excluding outliers. Outliers are shown as dots.

Online Evaluation

We also timed resolution by DecDNS during the online evaluation described in § 11.2. Figure 3 shows the distribution of runtimes for queries that did not time out and did not raise an error. The mean and median runtimes were both 7.1 s.

Figure 3. Runtime distribution for successful online queries, in seconds. Boxes span the 25th–75th percentiles, and whiskers extend to minima and maxima excluding outliers. Outliers are shown as dots.

Related Work

Many works tackled the issue of establishing properties of DNS zone configurations [12, 19, 23, 26, 31]. All these works, though, lack support for DNSSEC and suggest verifying the absence of particular types of configuration errors. Many of these works provide support for verifying other properties, so it would theoretically be possible to verify different, more constructive properties, but no such properties are suggested. In contrast, DecDNS performs a change-impact analysis, which allows for detecting configuration errors in a much more general way, and provides support for DNSSEC.

There is also prior work that suggested the use of logic programming for reasoning about the DNS [16]. Their model, however, lacks many features that we cover. For example, they do not cover DNSSEC, the following of referrals, obtaining name server addresses, and CNAME records with a wildcard owner name. The authors also leave it open what their model could be used for and handle wildcard synthesis and DNAME rewrites explicitly rather than symbolically as we do.

There are other works that studied DNSSEC formally [9, 33], but these works studied the security of the DNSSEC standards rather than the correctness of zones. For example, both works analyzed whether an attacker can trick a resolver into accepting attacker-supplied data as valid. Thus, these models are to some extent incomparable to ours. Both works consider only a fixed example zone for their security analyses and do not consider aliases, and both analyses include a model of recursive resolvers. The latter difference most clearly contrasts these works to ours. We do not model recursive resolvers since our model is the resolver.

Finally, a related but orthogonal work is “Topaz” [21]. Topaz is a formally verified name server architecture that correctly serves data associated with domain names, and was designed for use within content-delivery networks. Such networks often serve different IP addresses to clients, e.g., optimizing the server location with respect to the client location. In Topaz, such optimizations can be expressed in a verified policy language which administrators can use to configure which DNS data should be served to which clients.

Discussion & Conclusions

In this paper, we presented a new formal model for reasoning about recursive resolution in the DNS, as well as DecDNS, an implementation of that model. DecDNS was designed to perform a change-impact analysis of zone configuration updates, which can help detect zone configuration errors. Moreover, our formal model is so accurate and detailed that DecDNS can resolve DNS queries with the real DNS infrastructure.

Limitations Nevertheless, our work is not without limitations. First, DecDNS’s change-impact analysis does not detect all potential configuration errors. (a) DecDNS disregards the correctness of the data associated with names and thus cannot detect whether, e.g., the IP address associated with a name server is incorrect. (b) DecDNS cannot detect when name servers serve inconsistent data. We assume that all name servers configured at a zone’s apex indeed serve the respective zone. (c) DecDNS does not detect when the name servers serving a configuration’s topmost zone have no addresses configured. We assume resolvers are configured with those addresses. (d) DecDNS reasons about whether a resolution path exists, which means that we may not detect that a particular resolution path, potentially taken by many resolvers, does not return a response.

Second, our model and algorithm have some practical limitations. (a) It could occur that our change-impact analysis returns formulas containing contradictory residual constraints that our constraint solver fails to recognize as such. We, however, never encountered such a case. (b) DecDNS’s performance can be further improved; for example, it timed out when we attempted to reason about the root zone. (c) Our model currently omits some aspects of NSEC and NSEC3 records, particularly when validating responses synthesized from signed wildcard records.

Third and finally, our evaluation does not cover DNSSEC and multi-zone corner cases well. The Ferret dataset (see § 11.1) includes only corner cases for individual, unsigned zones, and there is no characterization as to which configurations are covered by our online evaluation (§ 11.2).

Future Work We plan to address many of the above limitations in future work. Concretely, we plan to improve performance, broaden the evaluation, and fully model NSEC and NSEC3. Moreover, we believe that the change-impact analysis computed by DecDNS can also be generalized to not only consider old and new zone configurations but also different compilations of zone configurations. For example, the same zone could be compiled for different versions of the DNS standards or the compilation could model that all resolution paths must succeed instead of modeling the existence of a resolution path.

DecDNS’s change-impact analysis currently requires complete knowledge of a zone and all its subzones. One could investigate treating unresolved resolves goals for unknown zones as residual constraints, which could allow reasoning with partial knowledge.

Finally, it would be worthwhile to analyze DecDNS’s security, particularly in querying mode. Such an analysis would strengthen DecDNS’s value as a potential reference implementation.

Acknowledgments

We thank Steve Crocker, Petr Špaček, and Peter Thomassen for their interest in this project and their valuable feedback.

References

Proofs for Change-Impact Analysis

We begin our proof of Theorem 2 by proving a lemma that allows us to rewrite our proof goal in simpler terms.

Lemma 1. Let FF be a set of rules only containing constraint formulas in their body. Then lfp⁡(TFE)=TFE(0)\operatorname{lfp}(T^{\mathcal{E}}_{F}) = T^{\mathcal{E}}_{F}(0).

Proof. Let FF be a set of rules only containing constraint formulas in their body. Observe that for such rules the definition of TFET^{\mathcal{E}}_{F} is independent of its argument, that is:

∀x,y. TFE(x)=TFE(y)\forall x,y.\,T^{\mathcal{E}}_{F}(x) = T^{\mathcal{E}}_{F}(y)

Thus, we obtain lfp⁡(TFE)=TFE(0)\operatorname{lfp}(T^{\mathcal{E}}_{F}) = T^{\mathcal{E}}_{F}(0).

We proceed to introduce two lemmas that relate lfp⁡(Tϕ1∖ϕ2E)\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1\setminus\phi_2}) to lfp⁡(Tϕ1E)\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1}) and lfp⁡(Tϕ2E)\operatorname{lfp}(T^{\mathcal{E}}_{\phi_2}), which will help prove that:

lfp⁡(Tϕ1∖ϕ2E)⊆lfp⁡(Tϕ1E)∖lfp⁡(Tϕ2E).\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1\setminus\phi_2}) \subseteq\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1}) \setminus\operatorname{lfp}(T^{\mathcal{E}}_{\phi_2}).

Lemma 2. Let ϕ1,ϕ2\phi_1,\phi_2 be two variable-disjoint facts. Then:

lfp⁡(Tϕ1∖ϕ2E)⊆lfp⁡(Tϕ1E).\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1\setminus\phi_2}) \subseteq\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1}).

Proof. Observe that in every case of Algorithm 1, we only strengthen ϕ1\phi_1, i.e., either add more conjuncts to its body or additionally apply a substitution to its head. This directly proves Lemma 2.

Lemma 3. Let ϕ1,ϕ2\phi_1,\phi_2 be two variable-disjoint and constraint-closed facts. Then:

lfp⁡(Tϕ1∖ϕ2E)∩lfp⁡(Tϕ2E)=∅.\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1\setminus\phi_2}) \cap\operatorname{lfp}(T^{\mathcal{E}}_{\phi_2}) = \varnothing.

We require that ϕ1\phi_1 and ϕ2\phi_2 are constraint-closed because Algorithm 1 might otherwise return incorrect results for cases corresponding to line 6. To realize that, consider the two facts ϕ1=p(X)\phi_1 = p(X) and ϕ2=p(f(Y))←c(Z)\phi_2 = p(f(Y)) \leftarrow c(Z) for some constraint c/1c/1. Observe that ϕ2\phi_2 is not constraint-closed. For those formulas, we obtain:

ϕ1∖ϕ2={p(X)←∀Y.p(X)≠p(f(Y)),ψ},\phi_1 \setminus\phi_2 = \{p(X) \leftarrow\forall Y.p(X) \ne p(f(Y)), \psi\},
ψ=p(f(Y))←¬c(Z).\psi= p(f(Y)) \leftarrow\neg c(Z).

As the heads of ϕ2\phi_2 and ψ\psi, which is obtained from Algorithm 1 line 6, are independent of the constraint c(Z)c(Z) or ¬c(Z)\neg c(Z) respectively, we can derive p(f(Y))p(f(Y)) for any ground instance of YY from both ϕ1∖ϕ2\phi_1 \setminus\phi_2 and ϕ2\phi_2 provided that cc is neither tautological nor contradictory. Clearly, this is not intended for ϕ1∖ϕ2\phi_1 \setminus\phi_2. We thus limit the application of Algorithm 1 to constraint-closed facts, which are the norm, and for which this problem does not arise, as we show below.

Proof. Let ϕ1,ϕ2\phi_1,\phi_2 be two variable-disjoint and constraint-closed facts such that

ϕ1=h1←Ψ1ϕ2=h2←Ψ2\phi_1 = h_1 \leftarrow\Psi_1 \qquad\phi_2 = h_2 \leftarrow\Psi_2

Let a∈lfp⁡(Tϕ2E)a \in\operatorname{lfp}(T^{\mathcal{E}}_{\phi_2}) and let σ\sigma be a valuation such that a=σ(h2)a = \sigma(h_2) and DE(σ(Ψ2))D_{\mathcal{E}}(\sigma(\Psi_2)). Presume, for a contradiction, that a∈lfp⁡(Tϕ1∖ϕ2E)a \in\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1\setminus\phi_2}). Since a∈lfp⁡(Tϕ1∖ϕ2E)a \in\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1\setminus\phi_2}), we have a∈Tϕ1∖ϕ2E(0)a \in T^{\mathcal{E}}_{\phi_1\setminus\phi_2}(0) by Lemma 1, and thus, there must be a rule ψ=h←Ψ\psi= h \leftarrow\Psi in ϕ1∖ϕ2\phi_1 \setminus\phi_2 such that a∈Tϕ1E(0)a \in T^{\mathcal{E}}_{\phi_1}(0), i.e., there must be a valuation σ′\sigma' such that a=σ′(h)a = \sigma'(h) and DE=σ′(Ψ)D_{\mathcal{E}} = \sigma'(\Psi). We proceed with a case distinction.

  • Let ψ\psi have the following shape, i.e., come from Algorithm 1 line 5:

h1←{∀vars⁡(h2).h1≠h2}∪Ψ1.h_1 \leftarrow\{\forall\operatorname{vars}(h_2).h_1 \ne h_2\} \cup\Psi_1.

Observe that:

σ′(∀vars⁡(h2).h1≠h2)=∀vars⁡(h2).a≠h2.\sigma'(\forall\operatorname{vars}(h_2).h_1 \ne h_2)=\forall\operatorname{vars}(h_2).a \ne h_2.

However, we have that DE⊭∀vars⁡(h2).a≠h2D_{\mathcal{E}} \not\models\forall\operatorname{vars}(h_2).a \ne h_2 as a=σ(h2)a=\sigma(h_2). Thus, ψ\psi cannot be of the above shape.

  • Let ψ\psi have the following shape for θ=MGU⁡(h1,h2)\theta=\operatorname{MGU}(h_1,h_2) and c∈Ψ2c\in\Psi_2, i.e., come from Algorithm 1 line 6:

θ(h1)←θ(Ψ1)∪{θ(¬c)}.\theta(h_1)\leftarrow\theta(\Psi_1)\cup\{\theta(\neg c)\}.

Observe that by assumption we have:

DE⊨σ′(Ψ)=σ′(θ(Ψ1)∪{θ(¬c)}).D_{\mathcal{E}}\models\sigma'(\Psi)=\sigma'(\theta(\Psi_1)\cup\{\theta(\neg c)\}).

Thus and in particular, we have that DE⊨σ′(θ(¬c))D_{\mathcal{E}}\models\sigma'(\theta(\neg c)) or equivalently DE⊭σ′(θ(c))D_{\mathcal{E}}\not\models\sigma'(\theta(c)).

Observe that since θ(h1)=θ(h2)\theta(h_1)=\theta(h_2), we have that vars⁡(θ(h1))=vars⁡(θ(h2))\operatorname{vars}(\theta(h_1))=\operatorname{vars}(\theta(h_2)). Consequently, we have that ψ\psi is constraint-closed, as ϕ2\phi_2 is constraint-closed and thus vars⁡(θ(c))⊆vars⁡(θ(h2))\operatorname{vars}(\theta(c))\subseteq\operatorname{vars}(\theta(h_2)).

As a=σ(h2)a=\sigma(h_2) and a=σ′(θ(h1))a=\sigma'(\theta(h_1)), and because both ϕ2\phi_2 and ψ\psi are constraint-closed, we can deduce that σ(c)=σ′(θ(c))\sigma(c)=\sigma'(\theta(c)). This means, though, that all of the following statements are true, which is a contradiction:

DE⊨σ(c),DE⊭σ′(θ(c)),σ(c)=σ′(θ(c)).D_{\mathcal{E}}\models\sigma(c),\qquad D_{\mathcal{E}}\not\models\sigma'(\theta(c)),\qquad\sigma(c)=\sigma'(\theta(c)).

In consequence of the above case distinction, we can deduce that a∉Tϕ1∖ϕ2E(∅)a\notin T^{\mathcal{E}}_{\phi_1\setminus\phi_2}(\varnothing), which contradicts our initial assumption.

Before we proceed to our proof of Theorem 2, we prove a helpful property about most general unifiers and their relationship to valuations.

Lemma 4. Let a1a_1 and a2a_2 be two variable-disjoint atoms and θ=MGU⁡(a1,a2)\theta=\operatorname{MGU}(a_1,a_2). If there exist valuations σ1,σ2\sigma_1,\sigma_2 such that σ1(a1)=σ2(a2)\sigma_1(a_1)=\sigma_2(a_2), then there also exists a valuation σ\sigma such that σ1(a1)=θσ(a1)=θσ(a2)=σ2(a2)\sigma_1(a_1)=\theta\sigma(a_1)=\theta\sigma(a_2)=\sigma_2(a_2).

Proof. Let a1,a2,σ1,σ2a_1,a_2,\sigma_1,\sigma_2 and θ\theta as per Lemma 4. Let θ′\theta' be a valuation such that:

θ′∣vars⁡(a1)∪vars⁡(a2)=σ1∣vars⁡(a1)∪σ2∣vars⁡(a2).\theta'|_{\operatorname{vars}(a_1)\cup\operatorname{vars}(a_2)} =\sigma_1|_{\operatorname{vars}(a_1)}\cup\sigma_2|_{\operatorname{vars}(a_2)}.

Observe that θ′\theta' is a unifier for a1a_1 and a2a_2. Thus, there must exist a valuation σ\sigma such that θ′=θσ\theta'=\theta\sigma, as θ\theta is a most general unifier.

Proof of Theorem 2. Let ϕ1,ϕ2\phi_1,\phi_2 be two variable-disjoint and constraint-closed facts such that:

ϕ1=h1←Ψ1,ϕ2=h2←Ψ2.\phi_1=h_1\leftarrow\Psi_1,\qquad\phi_2=h_2\leftarrow\Psi_2.

Presume that the heads of ϕ1\phi_1 and ϕ2\phi_2 do not unify. Then:

lfp⁡(Tϕ1∖ϕ2E)=lfp⁡(Tϕ1E)=lfp⁡(Tϕ1E)∖lfp⁡(Tϕ2E).\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1\setminus\phi_2}) =\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1}) =\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1})\setminus\operatorname{lfp}(T^{\mathcal{E}}_{\phi_2}).

The first equality follows from Algorithm 1, line 3. The second follows because the heads of ϕ1\phi_1 and ϕ2\phi_2 do not unify. As they do not unify, no atom in lfp⁡(Tϕ2E)\operatorname{lfp}(T^{\mathcal{E}}_{\phi_2}) can be contained in lfp⁡(Tϕ1E)\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1}).

Now presume that the heads of ϕ1\phi_1 and ϕ2\phi_2 do unify and let θ=MGU⁡(h1,h2)\theta=\operatorname{MGU}(h_1,h_2). We proceed to prove Theorem 2 by contradiction. Suppose that lfp⁡(Tϕ1∖ϕ2E)≠lfp⁡(Tϕ1E)∖lfp⁡(Tϕ2E)\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1\setminus\phi_2})\ne\operatorname{lfp}(T^{\mathcal{E}}_{\phi_1})\setminus\operatorname{lfp}(T^{\mathcal{E}}_{\phi_2}). By Lemma 1, we can rewrite this inequality to:

Tϕ1∖ϕ2E(∅)≠Tϕ1E(∅)∖Tϕ2E(∅).T^{\mathcal{E}}_{\phi_1\setminus\phi_2}(\varnothing)\ne T^{\mathcal{E}}_{\phi_1}(\varnothing)\setminus T^{\mathcal{E}}_{\phi_2}(\varnothing).

Thus, there must exist a ground atom aa such that:

a∈Tϕ1∖ϕ2E(∅)⟺a∉Tϕ1E(∅)∖Tϕ2E(∅).a\in T^{\mathcal{E}}_{\phi_1\setminus\phi_2}(\varnothing)\Longleftrightarrow a\notin T^{\mathcal{E}}_{\phi_1}(\varnothing)\setminus T^{\mathcal{E}}_{\phi_2}(\varnothing).

We proceed by case distinction.

  • Presume that a∈Tϕ1∖ϕ2E(∅)a\in T^{\mathcal{E}}_{\phi_1\setminus\phi_2}(\varnothing). Then, by the above statement, we have that either a∉Tϕ1E(∅)a\notin T^{\mathcal{E}}_{\phi_1}(\varnothing) or a∈Tϕ2E(∅)a\in T^{\mathcal{E}}_{\phi_2}(\varnothing).

    • Presume that a∉Tϕ1E(∅)a\notin T^{\mathcal{E}}_{\phi_1}(\varnothing). This is impossible by Lemma 2. Contradiction.

    • Presume that a∈Tϕ2E(∅)a\in T^{\mathcal{E}}_{\phi_2}(\varnothing). This is impossible by Lemma 3. Contradiction.

  • Now presume that a∈Tϕ1E(∅)∖Tϕ2E(∅)a\in T^{\mathcal{E}}_{\phi_1}(\varnothing)\setminus T^{\mathcal{E}}_{\phi_2}(\varnothing). Then, symmetrically to the case before, we must have that a∉Tϕ1∖ϕ2E(∅)a\notin T^{\mathcal{E}}_{\phi_1\setminus\phi_2}(\varnothing).

    • Presume that aa and h2h_2 unify. Then there must exist a valuation σ\sigma such that a=θσ(h1)=θσ(h2)a=\theta\sigma(h_1)=\theta\sigma(h_2) by Lemma 4.

      Since a∉Tϕ2E(∅)a\notin T^{\mathcal{E}}_{\phi_2}(\varnothing), there must be a constraint c∈Ψ2c\in\Psi_2 such that DE⊭θσ(c)D_{\mathcal{E}}\not\models\theta\sigma(c) or equivalently DE⊨θσ(¬c)D_{\mathcal{E}}\models\theta\sigma(\neg c). Also observe that since a∈Tϕ1E(∅)a\in T^{\mathcal{E}}_{\phi_1}(\varnothing), we have DE⊨θσ(Ψ1)D_{\mathcal{E}}\models\theta\sigma(\Psi_1). Thus:

DE⊨θσ(Ψ1∪{¬c}).D_{\mathcal{E}}\models\theta\sigma(\Psi_1\cup\{\neg c\}).

Then, for ψ=θ(h1)←θ(Ψ1∪{¬c})\psi=\theta(h_1)\leftarrow\theta(\Psi_1\cup\{\neg c\}), we have that a∈Tϕ1∖ϕ2E(∅)a\in T^{\mathcal{E}}_{\phi_1\setminus\phi_2}(\varnothing) under the valuation σ\sigma. The formula ψ\psi, though, is in ϕ1∖ϕ2\phi_1\setminus\phi_2 (see Algorithm 1 line 6), and thus a∈Tϕ1∖ϕ2E(∅)a\in T^{\mathcal{E}}_{\phi_1\setminus\phi_2}(\varnothing). Contradiction.

  • Now suppose that aa and h2h_2 do not unify. Let σ\sigma be a valuation such that a=σ(h1)a=\sigma(h_1) and DE⊨σ(Ψ1)D_{\mathcal{E}}\models\sigma(\Psi_1). As aa and h2h_2 do not unify, observe that for all valuations σ′\sigma' we have a≠σ′(h2)a\ne\sigma'(h_2). Hence DE⊨∀vars⁡(h2).a≠h2D_{\mathcal{E}}\models\forall\operatorname{vars}(h_2).a\ne h_2. Thus, σ\sigma is a valuation modeling ψ=h1←{∀vars⁡(h2).h1≠h2}∪Ψ1\psi=h_1\leftarrow\{\forall\operatorname{vars}(h_2).h_1\ne h_2\}\cup\Psi_1. The formula ψ\psi, though, is included in ϕ1∖ϕ2\phi_1\setminus\phi_2 (see Algorithm 1 line 5), and therefore a∈Tϕ1∖ϕ2E(∅)a\in T^{\mathcal{E}}_{\phi_1\setminus\phi_2}(\varnothing). Contradiction.

Simplifying Inequalities

Our constraint solver implementation simplifies inequality constraints as follows. It discards inequalities that are true, and it reduces inequalities on two of the same functors to a disjunction of inequalities between corresponding arguments. For example, it would reduce f(a,X,Y)≠f(a,Z,Z)f(a,X,Y) \ne f(a,Z,Z) to the disjunction X≠Z∨Y≠ZX \ne Z \lor Y \ne Z as when either inequality holds, the original inequality holds as well. Our constraint solver thereby maintains the invariant that inequalities always have a variable on their left-hand side.

Our constraint solver also supports simplifying universally quantified inequality constraints, which result from our change-impact analysis (see § 9.2). Observe that Algorithm 1 only emits universally quantified constraints of the shape ∀vars(tr).tl≠tr\forall vars(t_r).t_l \ne t_r, i.e., all variables on the inequality’s left-hand side are free, and all variables on the inequality’s right-hand side are quantified. Our solver simplifies these constraints in four cases and the constraint remains unchanged in any other case:

  • If tlt_l is ground, the constraint is solved by unification.

  • If trt_r is a variable, the constraint evaluates to ⊥\bot.

  • If tlt_l and trt_r do not unify, the constraint evaluates to ⊤\top.

  • If tlt_l and trt_r use the same function as the top-most symbol, we simplify their inequality to a disjunction of inequalities of their arguments. We then distribute the universal quantifier over this disjunction as much as possible. Afterwards, we recursively simplify each disjunct. For example, our solver simplifies the following inequality as follows:

∀X,Y.f(a,b,A,B)≠f(a,X,Y,Y)\forall X,Y. f(a,b,A,B) \ne f(a,X,Y,Y)

becomes a≠a∨∀X.b≠X∨∀Y.(A≠Y∨B≠Y)a \ne a \lor\forall X.b \ne X \lor\forall Y.(A \ne Y \lor B \ne Y)

becomes ∀Y.(A≠Y∨B≠Y)\forall Y.(A \ne Y \lor B \ne Y).

Well-Formedness Checks

DecDNS checks that zone files are well-formed before compiling them. Note that we could enforce stricter well-formedness requirements. For example, RFC 5155, Sec. 7.2, [8] requires that NSEC3 records in a given response must share all relevant parameters. We, though, decided to only enforce invariants that are required for the correctness of our formal model.

  • A zone must contain exactly one SOA record, which must occur at the apex.

  • A zone must contain at least one NS at the zone apex.

  • A zone must not contain DS records at the apex.

  • If an owner name has a CNAME record, only CNAME, NSEC, and RRSIG records may occur at that owner name [25 Sec. 3.6.2].

  • If a non-apex owner name has an NS record, only NS, DS, NSEC, RRSIG, A, and AAAA records may occur at that owner name, and only A and AAAA records may occur below it.

  • No owner name may have more than one CNAME, DNAME, or NSEC record.

  • If an owner name has a DNAME record, no records may occur below it [30 Sec. 2.4].

  • DNAME, DS, and NS records cannot have a wildcard owner name [22].

  • An RRSIG record’s signer name must be the owner name or one of its ancestors. If the signature covers an SOA record, the signer’s name must be equal to the owner name. If the signature covers a DS record, the signer’s name must be a strict ancestor.

  • An RRSIG record’s label count must be correct with respect to [29 Sec. 3.1.3].

  • DNSKEY records may only occur at the apex, except for non-DNSSEC keys.

DecDNS also generates warnings when records in an RRset have different TTLs (excluding RRSIG records from this check), or when an RRSIG record has a different TTL from any record in the RRset it covers.

References

  1. [1]The AFNIC Scientific Council shares its report on DNS-based Internet filtering. URL: https://www.afnic.fr/en/observatory-and-resources/news/the-afnic-scientific-council-shares-its-report-on-dns-based-internet-filtering/.
  2. [2]DNSViz. URL: https://github.com/dnsviz/dnsviz.
  3. [3]RFCs about DNS | RFC Editor. URL: https://www.rfc-editor.org/subjects/dns/.
  4. [4]SAC056 | Executive Summary for SSAC Advisory on Impacts of Content Blocking via the Domain Name System. URL: https://www.icann.org/en/ssac/publications/documents/sac056-executive-summary-for-ssac-advisory-on-impacts-of-content-blocking-via-the-domain-name-system-09-10-2012-en.
  5. [5]The Zonemaster Project. URL: https://github.com/zonemaster/zonemaster.
  6. [6]Final Report: DNS Outage of 5 May 2026, June 2026. URL: https://blog.denic.de/en/final-report-dns-outage-of-5-may-2026/.
  7. [7]When DNSSEC goes wrong: How we responded to the .de TLD outage, May 2026. URL: https://blog.cloudflare.com/de-tld-outage-dnssec/.
  8. [8]Roy Arends, Geoffrey Sisson, David Blacka, and Ben Laurie. DNS Security (DNSSEC) Hashed Authenticated Denial of Existence. Request for Comments RFC 5155, Internet Engineering Task Force, March 2008. doi: 10.17487/RFC5155.
  9. [9]Jason Bau and John C. Mitchell. A Security Evaluation of DNSSEC with NSEC3. In Network and Distributed System Security (NDSS), 2010. URL: https://www.ndss-symposium.org/ndss2010/security-evaluation-dnssec-nsec3/.
  10. [10]S. Ceri, G. Gottlob, and L. Tanca. What you always wanted to know about Datalog (and never dared to ask). IEEE Transactions on Knowledge and Data Engineering, 1(1), March 1989. doi:10.1109/69.43410.DOI
  11. [11]CZ.NIC. Knot Resolver. Accessed: 2026-10-31. URL: https://www.knot-resolver.cz/.
  12. [12]Haizhou Du, Kaiqiang Hu, Yao Wang, and Zhihao Guo. VeriDNS: Incremental distributed verification of DNS configurations. Computer Networks, 275, February 2026. doi:10.1016/j.comnet.2025.111929.DOI
  13. [13]Robert Elz and Randy Bush. Clarifications to the DNS Specification. Request for Comments RFC 2181, Internet Engineering Task Force, July 1997. doi:10.17487/RFC2181.DOI
  14. [14]Oliver Farnan, Alexander Darer, and Joss Wright. Poisoning the Well: Exploring the Great Firewall’s Poisoned DNS Responses. In Workshop on Privacy in the Electronic Society, October 2016. doi:10.1145/2994620.2994636.DOI
  15. [15]Nguyen Phong Hoang, Arian Akhavan Niaki, Jakub Dalek, Jeffrey Knockel, Pellaeon Lin, Bill Marczak, Masashi Crete-Nishihata, Phillipa Gill, and Michalis Polychronakis. How Great is the Great Firewall? Measuring China’s DNS Censorship. In 30th USENIX Security Symposium (USENIX Security 21), 2021. URL: https://www.usenix.org/conference/usenixsecurity21/presentation/hoang.arxiv.org/abs/2106.02167
  16. [16]Kaiqiang Hu, Haizhou Du, Kexin Yu, and Xiaoliang Wang. SemDNS: A Declarative Semantics for DNS Resolution. In Workshop on Formal Methods Aided Network Operation (FMANO ’26), August 2026. doi:10.1145/3789240.3822358.DOI
  17. [17]Internet Systems Consortium. BIND 9. Accessed: 2026-10-31. URL: https://www.isc.org/bind/.
  18. [18]Joxan Jaffar, Michael Maher, Kim Marriott, and Peter Stuckey. The semantics of constraint logic programs. The Journal of Logic Programming, 37(1), October 1998. doi:10.1016/S0743-1066(98)10002-X.
  19. [19]Siva Kesava Reddy Kakarla, Ryan Beckett, Behnaz Arzani, Todd Millstein, and George Varghese. GRooT: Proactive Verification of DNS Configurations. In SIGCOMM, July 2020. doi:10.1145/3387514.3405871.DOI
  20. [20]Siva Kesava Reddy Kakarla, Ryan Beckett, Todd Millstein, and George Varghese. SCALE: Automatically Finding RFC Compliance Bugs in DNS Nameservers. In 19th USENIX Symposium on Networked Systems Design and Implementation (NSDI 22), 2022. URL: https://www.usenix.org/conference/nsdi22/presentation/kakarla.
  21. [21]James Larisch, Timothy Alberding Thijm, Suleman Ahmad, Peter Wu, Tom Arnfeld, and Marwan Fayed. Topaz: Declarative and Verifiable Authoritative DNS at CDN-Scale. In Proceedings of the ACM SIGCOMM 2024 Conference, August 2024. doi:10.1145/3585119.3672240.DOI
  22. [22]Edward P. Lewis. The Role of Wildcards in the Domain Name System. Request for Comments RFC 4592, Internet Engineering Task Force, July 2006. doi:10.17487/RFC4592.DOI
  23. [23]Si Liu, Huayi Duan, Lukas Heimes, Marco Bearzi, Jodok Vieli, David Basin, and Adrian Perrig. A Formal Framework for End-to-End DNS Resolution. In SIGCOMM, September 2023. doi:10.1145/3603269.3604870.DOI
  24. [24]J. W. Lloyd. Foundations of Logic Programming. 1984.
  25. [25]P. Mockapetris. Domain names - concepts and facilities. Request for Comments RFC 1034, Internet Engineering Task Force, November 1987. doi:10.17487/RFC1034.
  26. [26]Dhruv Nevatia, Si Liu, and David Basin. Reachability Analysis of the Domain Name System. Proc. ACM Program. Lang., 9(POPL), January 2025. doi:10.1145/3704898.DOI
  27. [27]J. A. Robinson. A Machine-Oriented Logic Based on the Resolution Principle. Journal of the ACM (JACM), January 1965. doi:10.1145/321250.321253.DOI
  28. [28]Scott Rose, Matt Larson, Dan Massey, Rob Austin, and Roy Arends. Protocol Modifications for the DNS Security Extensions. Request for Comments RFC 4035, Internet Engineering Task Force, March 2005. doi:10.17487/RFC4035.DOI
  29. [29]Scott Rose, Matt Larson, Dan Massey, Rob Austin, and Roy Arends. Resource Records for the DNS Security Extensions. Request for Comments RFC 4034, Internet Engineering Task Force, March 2005. doi:10.17487/RFC4034.DOI
  30. [30]Scott Rose and Wouter Wijngaards. DNAME Redirection in the DNS. Request for Comments RFC 6672, Internet Engineering Task Force, June 2012. doi:10.17487/RFC6672.DOI
  31. [31]Yao Wang, Kexin Yu, Ziyi Wang, Kaiqiang Hu, Haizhou Du, Qiao Xiang, Xing Fang, Geng Li, Ruiting Zhou, Linghe Kong, and Jiwu Shu. Rethinking DNS Configuration Verification with a Distributed Architecture. In Proceedings of the 8th Asia-Pacific Workshop on Networking, August 2024. doi:10.1145/3663408.3663412.DOI
  32. [32]Jan Wielemaker, Tom Schrijvers, Markus Triska, and Torbjörn Lager. SWI-Prolog. Theory and Practice of Logic Programming, 12(1-2), January 2012. doi:10.1017/S1471068411000494.DOI
  33. [33]Qifan Zhang, Zilin Shen, Imtiaz Karim, Elisa Bertino, and Zhou Li. Proving DNSSEC Correctness: A Formal Approach to Secure Domain Name Resolution, December 2025. arXiv:2512.11431, doi:10.48550/arXiv.2512.11431.

Paper details

vlnc:W_z8x8yyt5
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 7

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents