]> git.ipfire.org Git - thirdparty/bind9.git/commit
system test covering NS randomization
authorColin Vidal <colin@isc.org>
Tue, 24 Feb 2026 16:30:56 +0000 (17:30 +0100)
committerColin Vidal <colin@isc.org>
Wed, 25 Feb 2026 08:31:14 +0000 (09:31 +0100)
commitc67b52684f11652b07afaa75a917f6f0355dbca6
tree537173f776e3772080f8e4e8f323927e25145010
parentb78052119ab3f0355eeb9fb9a9ec199084fc186a
system test covering NS randomization

Add randomizens system test which ensures that NS are randomly selected.
The test relies of the fact that `getaddresses_allowed()` logic won't
allow to query more than 3 NS at the top-level. The `example.` zone has
4 NS and the 3 formers are lame. As a result, if the resolved doesn't
randomize the NS selection, it will only quiery the 3 formers, which
won't give an answer, and fails. With randomization enabled, there is a
chance that the resolver queries the fourth NS, and gets the result.
20 files changed:
bin/tests/system/randomizens/README [new file with mode: 0644]
bin/tests/system/randomizens/ns1/named.conf.j2 [new file with mode: 0644]
bin/tests/system/randomizens/ns1/root.db [new file with mode: 0644]
bin/tests/system/randomizens/ns2/1st.db [new file with mode: 0644]
bin/tests/system/randomizens/ns2/2nd.db [new file with mode: 0644]
bin/tests/system/randomizens/ns2/example.db [new file with mode: 0644]
bin/tests/system/randomizens/ns2/named.conf.j2 [new file with mode: 0644]
bin/tests/system/randomizens/ns2/xxx.db [new file with mode: 0644]
bin/tests/system/randomizens/ns3/1st.db [new file with mode: 0644]
bin/tests/system/randomizens/ns3/example.db [new file with mode: 0644]
bin/tests/system/randomizens/ns3/named.conf.j2 [new file with mode: 0644]
bin/tests/system/randomizens/ns4/example.db [new file with mode: 0644]
bin/tests/system/randomizens/ns4/named.conf.j2 [new file with mode: 0644]
bin/tests/system/randomizens/ns5/1st.db [new file with mode: 0644]
bin/tests/system/randomizens/ns5/2nd.db [new file with mode: 0644]
bin/tests/system/randomizens/ns5/3rd.db [new file with mode: 0644]
bin/tests/system/randomizens/ns5/example.db [new file with mode: 0644]
bin/tests/system/randomizens/ns5/named.conf.j2 [new file with mode: 0644]
bin/tests/system/randomizens/ns6/named.conf.j2 [new file with mode: 0644]
bin/tests/system/randomizens/tests_randomizens.py [new file with mode: 0644]