]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix RRL random failure 12322/head
authorColin Vidal <colin@isc.org>
Wed, 24 Jun 2026 16:52:41 +0000 (18:52 +0200)
committerColin Vidal <colin@isc.org>
Wed, 24 Jun 2026 19:56:16 +0000 (21:56 +0200)
RRL test were randomly failing because `ns2` hint files uses

```
. NS ns1.
ns1. A 10.53.0.1
```

Whereas `ns1` root zone didn't contains `ns1.` as NS (but only `ns.`).
This is a problem with the following scenario:

- A query starts before priming;
- It gets the root hints as zonecut (with `. NS ns1.`, and no glues, this
  is how parent-centric currently works);
- Priming starts and complete (so now rootdb contains the answer/glues
  from `ns1` root file);
- Then the query go to ADB to resolve `ns1.`.

Resolution of `ns1.` fails since it doesn't exists from the rootdb
anymore. This is a configuration issue (the resolver behavior is correct
and expected) whch is now fixed.

bin/tests/system/rrl/ns1/root.db

index 7c5e7935d211717b4ed3d650d52a9b9ac3aa5f74..763261c70bc82e77c38ca91bdcd4955f41116be0 100644 (file)
@@ -1,8 +1,7 @@
 $TTL   120
-@              SOA     ns. hostmaster.ns. ( 1 3600 1200 604800 60 )
-@              NS      ns.
-ns.            A       10.53.0.1
-.              A       10.53.0.1
+@              SOA     ns1. hostmaster.ns1. ( 1 3600 1200 604800 60 )
+@              NS      ns1.
+ns1.           A       10.53.0.1
 
 ; limit responses from here
 tld2.          NS      ns.tld2.