]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
4 months agoFix a race condition in dnssec test
Nicki Křížek [Mon, 26 Jan 2026 09:45:34 +0000 (10:45 +0100)] 
Fix a race condition in dnssec test

When dumpdb command is executed, it might take a while until the file is
written. Rather than checking the file once, use the WatchLog mechanism
to allow the desired line to appear before a timeout happens.

This affected test_validation_recovery and test_cache tests which have
been intermittently failing on EL8 in our CI.

4 months agochg: test: Use isctest.asyncserver in the "resolver" system test
Štěpán Balážik [Sat, 24 Jan 2026 15:23:35 +0000 (15:23 +0000)] 
chg: test: Use isctest.asyncserver in the "resolver" system test

Depends on !11403, !11419

Merge branch 'stepan/resolver-asyncserver' into 'main'

See merge request isc-projects/bind9!11411

4 months agoFix bugs in 'resolver/ans2' and 'resolver/ans3'
Štěpán Balážik [Thu, 25 Dec 2025 20:48:33 +0000 (21:48 +0100)] 
Fix bugs in 'resolver/ans2' and 'resolver/ans3'

There were multiple typos and omissions regarding query minimization.

4 months agoReimplement 'resolver/ans10' server using AsyncDnsServer
Štěpán Balážik [Thu, 25 Dec 2025 16:03:20 +0000 (17:03 +0100)] 
Reimplement 'resolver/ans10' server using AsyncDnsServer

Ensure packet-for-packet compatibility with the old server.

4 months agoReimplement 'resolver/ans8' server using AsyncDnsServer
Štěpán Balážik [Thu, 25 Dec 2025 16:03:20 +0000 (17:03 +0100)] 
Reimplement 'resolver/ans8' server using AsyncDnsServer

Ensure packet-for-packet compatibility with the old server.

4 months agoReimplement 'resolver/ans3' server using AsyncDnsServer
Štěpán Balážik [Thu, 25 Dec 2025 16:03:20 +0000 (17:03 +0100)] 
Reimplement 'resolver/ans3' server using AsyncDnsServer

Ensure packet-for-packet compatibility with the old server including
bugs.

4 months agoReimplement 'resolver/ans2' server using AsyncDnsServer
Štěpán Balážik [Thu, 25 Dec 2025 16:03:20 +0000 (17:03 +0100)] 
Reimplement 'resolver/ans2' server using AsyncDnsServer

Ensure packet-for-packet compatibility with the old server including
bugs.

4 months agoAdd common parts of resolver test custom servers
Štěpán Balážik [Fri, 26 Dec 2025 00:06:28 +0000 (01:06 +0100)] 
Add common parts of resolver test custom servers

These will be shared by all the ans*/ans.py files.

4 months agoAdd StaticResponseHandler to isctest.asyncserver
Štěpán Balážik [Fri, 26 Dec 2025 00:03:33 +0000 (01:03 +0100)] 
Add StaticResponseHandler to isctest.asyncserver

It is used to prepare and yield one DNS response and avoid the
`get_responses` boiler-plate.

4 months agoAdd QnameQtypeHandler for matching QNAME, QTYPE pairs
Štěpán Balážik [Thu, 25 Dec 2025 22:53:26 +0000 (23:53 +0100)] 
Add QnameQtypeHandler for matching QNAME, QTYPE pairs

This is a pattern in the resolver system test and also elsewhere.

4 months agoDelete unused ResponseHandlers from statistics ans server
Štěpán Balážik [Thu, 25 Dec 2025 16:00:00 +0000 (17:00 +0100)] 
Delete unused ResponseHandlers from statistics ans server

Turns out the original ans.pl implementation before (!10928) was a copy
of an old version of the ans2 server from the resolver system test.

I reimplemented it fully, even though only two ResponseHandlers are
actually used in the statistics test.

4 months agoStore the most specific matched domain in DomainHandler
Štěpán Balážik [Thu, 25 Dec 2025 15:58:35 +0000 (16:58 +0100)] 
Store the most specific matched domain in DomainHandler

Store the most specific matching domain in DomainHandler and
expose it through the `matched_domain` property for subclasses
to use in their implementations of `get_responses`.

4 months agofix: test: unit test tsig_badsig was not being called
Mark Andrews [Fri, 23 Jan 2026 15:27:34 +0000 (02:27 +1100)] 
fix: test: unit test tsig_badsig was not being called

Additionally, the test was badly implemented. This has been fixed.

Closes #5712

Merge branch '5712-unit-test-tsig_badsig-was-not-being-called' into 'main'

See merge request isc-projects/bind9!11478

4 months agoFix and call tsig_badsig unit test
Mark Andrews [Fri, 23 Jan 2026 03:30:44 +0000 (14:30 +1100)] 
Fix and call tsig_badsig unit test

4 months agofix: usr: DSYNC record incorrectly used two octets for the Scheme Field
Mark Andrews [Fri, 23 Jan 2026 14:24:04 +0000 (01:24 +1100)] 
fix: usr: DSYNC record incorrectly used two octets for the Scheme Field

When creating the `DSYNC` record from a structure, `uint16_tobuffer` was used instead of `uint8_tobuffer` when adding the scheme, causing a `DSYNC` record that was one octet too long. This has been fixed.

Closes #5711

Merge branch '5711-dsync_fromstruct-produces-an-invalid-record' into 'main'

See merge request isc-projects/bind9!11477

4 months agoFix dsync unit test
Mark Andrews [Fri, 23 Jan 2026 02:38:16 +0000 (13:38 +1100)] 
Fix dsync unit test

The dsync unit test was not being run and the domain names in
the test data should have been fully qualified.

4 months agodsync_from struct produced an invalid record
Mark Andrews [Fri, 23 Jan 2026 02:32:41 +0000 (13:32 +1100)] 
dsync_from struct produced an invalid record

uint16_tobuffer was used instead of uint8_tobuffer when adding the
scheme to the buffer.  This produced a record that was one octet
too long.  This has been fixed.

4 months agochg: usr: Lowercase the NSEC next owner name when signing
Matthijs Mekking [Fri, 23 Jan 2026 12:46:51 +0000 (12:46 +0000)] 
chg: usr: Lowercase the NSEC next owner name when signing

When building the NSEC rdata, lowercase the next owner name before
storing it in the Next Domain Name Field.

Note that this is not required according to RFC 6840, but since there
is inconsistency in the documents over time, having uppercase next
owner names in the NSEC records may cause validation failures if
validators are not following RFC 6840.

Closes #5702

Merge branch '5702-lowercase-nsec-next-owner-name' into 'main'

See merge request isc-projects/bind9!11442

4 months agoAdd kasp test zone with uppercase characters
Matthijs Mekking [Fri, 9 Jan 2026 10:32:43 +0000 (11:32 +0100)] 
Add kasp test zone with uppercase characters

The test ensures that such zone is signed correctly.  In addition, test
that the next owner name field of the NSEC record is lowercased.

4 months agoLower case the NSEC next owner name when signing
Matthijs Mekking [Fri, 9 Jan 2026 11:19:42 +0000 (12:19 +0100)] 
Lower case the NSEC next owner name when signing

When building the NSEC rdata, lower case the next owner name before
storing it in the Next Domain Name Field.

Note that this is not required according to RFC 6840, Section 5.1:

  When canonicalizing DNS names (for both ordering and signing), DNS
  names in the RDATA section of NSEC resource records are not converted
  to lowercase.  DNS names in the RDATA section of RRSIG resource
  records are converted to lowercase.

  The guidance in the above paragraph differs from what has been
  published before but is consistent with current common practice.
  Item 3 of Section 6.2 of [RFC4034] says that names in both of these
  RR types should be converted to lowercase.  The earlier [RFC3755]
  says that they should not.

Since there is inconsistency in the documents over time, having
uppercase next owner names in the NSEC records may cause validation
failures if validators are not implementing RFC 6840.

Also, RFC 4034 section 6.2 is not about how NSEC record content is
created, but how RRset content is normalized in order to produce and
validate RRSIG records for a given RRset. Since the next owner name
of the NSEC record is about ordening, and the canonical DNS name order
requires that uppercase US-ASCII letters must be treated as if they
were lowercase US-ASCII letters, case is not meaningful for NSEC
next owner names, as it cannot be compressed on the wire, so we may
lowercase the next owner name in the NSEC rdata before signing, being
more kind to validators.

4 months agochg: ci: Use a small always-on runner for lightweight CI jobs
Andoni Duarte [Fri, 23 Jan 2026 11:33:53 +0000 (11:33 +0000)] 
chg: ci: Use a small always-on runner for lightweight CI jobs

Some CI jobs spend more time pulling the docker image and setting up their environment than running the script. This MR adds a tag `smalljob` to jobs considered lightweight in order to run them on a dedicated small VM.

Merge branch 'andoni/try-small-vm-for-lightweight-ci-jobs' into 'main'

See merge request isc-projects/bind9!11266

4 months agoAdd smalljob tag to small jobs not in the quick-checks stage
Andoni Duarte Pintado [Thu, 15 Jan 2026 11:16:30 +0000 (12:16 +0100)] 
Add smalljob tag to small jobs not in the quick-checks stage

Jobs using the "post_merge" and "manual_release_job_qa" anchors also
complete in less than a minute, so they now include the "smalljob" tag.

Since the "release" job is also a fast one, but without an anchor, the
"smalljob" tag is added to its definition.

4 months agoDe-duplicate yaml for "other-checks" jobs
Andoni Duarte Pintado [Tue, 13 Jan 2026 15:32:45 +0000 (16:32 +0100)] 
De-duplicate yaml for "other-checks" jobs

In .gitlab-ci.yml, since "&other_checks_job" has "needs: []", remove
that line from the jobs that use that anchor.

4 months agoMove "needs: []" to the "quick_checks_job" anchor
Andoni Duarte Pintado [Fri, 19 Dec 2025 10:55:30 +0000 (11:55 +0100)] 
Move "needs: []" to the "quick_checks_job" anchor

Most jobs in this stage have it by default, so it makes sense to
add it to their common anchor. Jobs with different "needs:" will
override it.

4 months agoGroup CI jobs in "quick-checks" stage together
Andoni Duarte Pintado [Mon, 15 Dec 2025 16:21:27 +0000 (17:21 +0100)] 
Group CI jobs in "quick-checks" stage together

Move the jobs in the "quick-checks" stage to the same place in
.gitlab-ci.yml.

4 months agoAdd faster CI jobs to the "quick-checks" stage
Andoni Duarte Pintado [Mon, 15 Dec 2025 16:19:28 +0000 (17:19 +0100)] 
Add faster CI jobs to the "quick-checks" stage

Given the short runtime (<1min) of the "linkcheck" and
"generate-tsan-stress-test-configs" CI jobs, move them to the
"quick-checks" stage.

4 months agoMove CI stage "other-checks" right after "quick-checks"
Andoni Duarte Pintado [Mon, 15 Dec 2025 16:01:58 +0000 (17:01 +0100)] 
Move CI stage "other-checks" right after "quick-checks"

Move CI stage "other-checks" right after "quick-checks" and get the jobs
in it as close to each other as possible in .gitlab-ci.yml.

Since no job is allowed to depend (via "needs") on any job that is
assigned to a stage later than its own, move the "tsan:stress" and
"gcov" jobs to the "system" stage.

4 months agoMove slower CI jobs out of "quick-checks" stage
Andoni Duarte Pintado [Mon, 15 Dec 2025 14:50:28 +0000 (15:50 +0100)] 
Move slower CI jobs out of "quick-checks" stage

Jobs with more than one minute of runtime are not considered for the
small VM.

The "tarball-create" job goes to the more appropriate "build" stage.

"coccinelle" and "checkbashisms" are moved to the generic
"other-checks".

4 months agoCreate "other_checks_job" anchor in CI yaml
Andoni Duarte Pintado [Mon, 15 Dec 2025 13:47:08 +0000 (14:47 +0100)] 
Create "other_checks_job" anchor in CI yaml

Use an anchor for the common parts of "other-checks" jobs in CI yaml.

4 months agoRename the "postcheck" stage to "other-checks" in CI
Andoni Duarte Pintado [Mon, 15 Dec 2025 13:49:59 +0000 (14:49 +0100)] 
Rename the "postcheck" stage to "other-checks" in CI

Rename the "postcheck" CI stage to the more generic "other-checks".
Slower jobs that still run in autoscaled runners belong here, as opposed
to the lightweight ones in "quick-checks".

4 months agoRename the "precheck" stage in CI to "quick-checks"
Andoni Duarte Pintado [Mon, 15 Dec 2025 12:08:44 +0000 (13:08 +0100)] 
Rename the "precheck" stage in CI to "quick-checks"

Most jobs in the "precheck" stage spend more time setting up their
environment than running the script (seconds), this allows us to add a
small always on dedicated runner instead of the autoscaled ones.

Hence, the stage is renamed to "quick-checks", and a tag "smalljob" is
added to the anchor so that these jobs are picked by the dedicated
runner.

4 months agochg: nil: Refactor kasp attach and detach code
Matthijs Mekking [Fri, 23 Jan 2026 10:37:48 +0000 (10:37 +0000)] 
chg: nil: Refactor kasp attach and detach code

Use the now more common `ISC_REFCOUNT_IMPL`.

Merge branch 'matthijs-refactor-kasp-attach' into 'main'

See merge request isc-projects/bind9!11466

4 months agoRefactor dns_kasp_attach/detach
Matthijs Mekking [Tue, 20 Jan 2026 15:11:48 +0000 (16:11 +0100)] 
Refactor dns_kasp_attach/detach

Replace implementation with ISC_REFCOUNT_IMPL.

4 months agofix: ci: Read the Docs picking old version when stable tag is updated
Andoni Duarte [Thu, 22 Jan 2026 18:40:33 +0000 (18:40 +0000)] 
fix: ci: Read the Docs picking old version when stable tag is updated

Read the Docs fails to pick the latest version when updating the `stable` tag, i.e. a build is triggered but it takes the previous version of it. This is a known bug in RtD: https://github.com/readthedocs/readthedocs.org/issues/10838.

The only approach that seems to solve this on our end, is to wait some time and trigger the build again so that it picks the latest version of the tag.

Merge branch 'andoni/fix-rtd-picking-old-version-when-stable-branch-update' into 'main'

See merge request isc-projects/bind9!11475

4 months agoFix Read the Docs stable branch update bug
Andoni Duarte Pintado [Thu, 22 Jan 2026 12:25:18 +0000 (13:25 +0100)] 
Fix Read the Docs stable branch update bug

Read the Docs fails to pick the latest version of the stable tag when
updated, i.e. a build is triggered but it takes the previous version.
This commit triggers a second build after 5 minutes to ensure that the
correct tag version is used for the documentation.

This is a known bug in RtD:
https://github.com/readthedocs/readthedocs.org/issues/10838.

4 months agofix: nil: Add missing sources to named-checkconf
Nicki Křížek [Thu, 22 Jan 2026 10:23:38 +0000 (11:23 +0100)] 
fix: nil: Add missing sources to named-checkconf

The included defaultconfig.h in named-checkconf uses bind.keys.h.

Closes #5709

Merge branch '5709-meson-freebsd-compilation' into 'main'

See merge request isc-projects/bind9!11474

4 months agoAdd missing sources to named-checkconf
Nicki Křížek [Thu, 22 Jan 2026 08:57:54 +0000 (09:57 +0100)] 
Add missing sources to named-checkconf

The included defaultconfig.h in named-checkconf uses bind.keys.h.

4 months agofix: ci: Apply black formatting changes
Nicki Křížek [Thu, 22 Jan 2026 08:41:31 +0000 (09:41 +0100)] 
fix: ci: Apply black formatting changes

Generated by black 26.1.0 which got updated in CI.

Merge branch 'nicki/python-black' into 'main'

See merge request isc-projects/bind9!11471

4 months agoApply black formatting changes
Nicki Křížek [Wed, 21 Jan 2026 21:31:15 +0000 (22:31 +0100)] 
Apply black formatting changes

Generated by black 26.1.0 which got updated in CI.

4 months agochg: nil: fix resolver doc in the response context
Colin Vidal [Thu, 22 Jan 2026 08:11:36 +0000 (09:11 +0100)] 
chg: nil: fix resolver doc in the response context

Fixes a couple of comment/documentation issues in the resolver.

Merge branch 'colin/resolver-doc' into 'main'

See merge request isc-projects/bind9!11465

4 months agoresolver: add comment when recursing
Colin Vidal [Mon, 19 Jan 2026 14:52:30 +0000 (15:52 +0100)] 
resolver: add comment when recursing

When a fetch result gets a delegation, `rctx_referral()` sets the
`rctx->get_nameserver = true`, which tells the resolver to retry another
server, not because of an error with the current server, but simply to
follow the delegation.

Update the comment of `rctx_nextserver()` which is quite confusing here
(as it's not immediately obvious from the code how we recurse when
getting a delegation back from a query).

Also add a log line, which helps figuring out this is happening.

4 months agofix resolver query response doc
Colin Vidal [Mon, 19 Jan 2026 12:46:03 +0000 (13:46 +0100)] 
fix resolver query response doc

In case on positive response, the `rctx_authority_positive()` function
is called to scan the AUTHORITY section to find NS servers and related
RR (glues) to be cached.

The doc says the function was called `rctx_authority_scan()`, but it is
called `rctx_authority_positive()`.

4 months agochg: pkg: Update requirements for system test suite
Nicki Křížek [Wed, 21 Jan 2026 15:11:25 +0000 (16:11 +0100)] 
chg: pkg: Update requirements for system test suite

Python 3.10 or newer is now required for running the system test suite. The required python packages and their version requirements are now tracked in `bin/tests/system/requirements.txt`.

Support for pytest 9.0.0 has been added its minimum supported version has been raised to 7.0.0. The minimum supported dnspython version has been raised to 2.3.0.

Closes #5690

Closes #5614

Merge branch 'nicki/pytest-9-compat' into 'main'

See merge request isc-projects/bind9!11415

4 months agoSilence incorrect pylint warnings for hypothesis.assume()
Nicki Křížek [Wed, 31 Dec 2025 09:53:23 +0000 (10:53 +0100)] 
Silence incorrect pylint warnings for hypothesis.assume()

With hypothesis>6.148.3, pylint generates

W0101: Unreachable code (unreachable)

when any code is present after hypothesis.assume(). Silence these until
it is fixed upstream.

See https://github.com/pylint-dev/pylint/issues/10785#issuecomment-3677224217

4 months agoRemove hypothesis version checks
Nicki Křížek [Tue, 30 Dec 2025 13:46:23 +0000 (14:46 +0100)] 
Remove hypothesis version checks

The minimum required hypothesis version has been set in requirements.txt
and no longer needs to be checked at runtime.

Since the hypothesis package is now a mandatory prerequisite, include it
in isctest as the other subpackages.

4 months agoRemove compatibility hacks for dnspython<2.7.0
Nicki Křížek [Tue, 30 Dec 2025 13:29:51 +0000 (14:29 +0100)] 
Remove compatibility hacks for dnspython<2.7.0

The minimum required dnspython version is now 2.7.0 and those
compatibility hacks can be dropped.

4 months agoPrefer Python 3.12 if available
Nicki Křížek [Tue, 30 Dec 2025 12:36:41 +0000 (13:36 +0100)] 
Prefer Python 3.12 if available

This ensures that python3.12 is used testing on older distributions
like EL8 and EL9, where the platform default python3 is older.

python3.11 was explicitly added due to FreeBSD, which doesn't have that
binary symlinked to any other name (like python3). Previously, it worked
only incidentally - when python3 was listed first, it triggered special
meson code for python detection, which is no longer the case when
python3.12 is listed first.

4 months agoBump the minimum required python version to 3.10
Nicki Křížek [Tue, 30 Dec 2025 12:45:50 +0000 (13:45 +0100)] 
Bump the minimum required python version to 3.10

Drop support of EoL python versions for running system tests. The
maintenance cost of supporting end of life ecosystem, especially Python
3.6 on EL8 and the related outdated packages (pytest, dnspython, ...),
has become unreasonable.

4 months agoRemove pytest<7 compatibility hacks
Nicki Křížek [Tue, 30 Dec 2025 12:42:53 +0000 (13:42 +0100)] 
Remove pytest<7 compatibility hacks

Minimum pytest version has been bumped to 7.0.0, thus these are no
longer needed.

4 months agoAdd support for pytest>=9.0.0
Nicki Křížek [Tue, 16 Dec 2025 16:48:04 +0000 (17:48 +0100)] 
Add support for pytest>=9.0.0

Use collection_path rather than the deprecated path argument for
pytest_ignore_collect() hook.

The collection_path argument was added in pytest 7.0.0, which is the
minimum supported pytest version from now on.

4 months agoAdd requirements.txt for system tests
Nicki Křížek [Tue, 16 Dec 2025 17:27:20 +0000 (18:27 +0100)] 
Add requirements.txt for system tests

This file lists the required Python packages and versions for running
system tests. The easiest way to obtain them is:

    pip install -r requirements.txt

The minimum dnspython version is 2.7.0 because it supports TSIG parsing
without validation (for tsig/tests_tsig_hypothesis.py) and wire() (for
names/tests_names.py).

The minimum pytest version was bumped to 7.0.0 because it supports the
collection hook API required by pytest 9.

The minimum hypothesis version was set to 4.41.2 as prior versions might
have issues on FIPS systems.

4 months agoMerge tag 'v9.21.17'
Nicki Křížek [Wed, 21 Jan 2026 14:35:17 +0000 (14:35 +0000)] 
Merge tag 'v9.21.17'

4 months agofix: dev: Fix a bug in qpzone.c:first_existing_header_indirect()
Arаm Sаrgsyаn [Wed, 21 Jan 2026 10:47:31 +0000 (10:47 +0000)] 
fix: dev: Fix a bug in qpzone.c:first_existing_header_indirect()

There is a bug in qpzone.c:first_existing_header_indirect() where
it does not advance the pointer in the FOREACH type loop.

Remove the static function altogether, as it was used only once and
had some other problems too, and use simpler custom code instead in
the place where it was used.

Closes #5691

Merge branch '5691-qpzone.c-first_existing_header_indirect-fix' into 'main'

See merge request isc-projects/bind9!11460

4 months agoAdd a new dbversion unit test
Aram Sargsyan [Tue, 20 Jan 2026 16:20:35 +0000 (16:20 +0000)] 
Add a new dbversion unit test

Test that closing a writer with a rollback, then opening another
writer and adding a rdataset (while still holding the node reference)
works correctly.

This test checks that the bugfix in the previous commit is correct.

4 months agoRemove qpzone.c:first_existing_header_indirect() which had bugs
Aram Sargsyan [Fri, 16 Jan 2026 14:07:39 +0000 (14:07 +0000)] 
Remove qpzone.c:first_existing_header_indirect() which had bugs

The first_existing_header_indirect() static function is used only
in one place and it has bugs:

1. It doesn't advance the pointer and can cause an infinite loop
   if it doesn't break out from the loop on the first iteration.
2. It doesn't check if the header EXISTS, though its name indicates
   that it should.
3. Even if the infinite loop bug is fixed, it would eventually
   return the last checked header's pointer even if all the
   candidates do not match the criteria of the selection.

Instead of fixing it, remove the function and use simpler code in
the place where it was being called.

4 months agofix: test: Fix timing issues in nsec3/tests_nsec3_reconfig.py
Mark Andrews [Wed, 21 Jan 2026 10:25:58 +0000 (21:25 +1100)] 
fix: test: Fix timing issues in nsec3/tests_nsec3_reconfig.py

`ns3/nsec3-ent.kasp.db` is regenerated too fast resulting in
the subsequent `rndc reload` call failing.  This has been
fixed.

Closes #5707

Merge branch '5707-timing-issues-in-nsec3-tests_nsec3_reconfig-py' into 'main'

See merge request isc-projects/bind9!11467

4 months agoFix timing issues in nsec3/tests_nsec3_reconfig.py
Mark Andrews [Wed, 21 Jan 2026 05:01:57 +0000 (16:01 +1100)] 
Fix timing issues in nsec3/tests_nsec3_reconfig.py

ns3/nsec3-ent.kasp.db is regenerated too fast resulting in
the subsequent 'rndc reload' call failing.  This has been
fixed.

4 months agofix: dev: Use const pointer with strchr of const pointer
Mark Andrews [Tue, 20 Jan 2026 06:00:11 +0000 (17:00 +1100)] 
fix: dev: Use const pointer with strchr of const pointer

Closes #5694

Merge branch '5694-fedora-builds-with-werror' into 'main'

See merge request isc-projects/bind9!11394

4 months agoUse const pointer with strchr of const pointer
Mark Andrews [Fri, 19 Dec 2025 01:32:33 +0000 (12:32 +1100)] 
Use const pointer with strchr of const pointer

C23 now has qualifier preserving standard functions for strchr,
bsearch, strpbrk, strrchr, strstr, memchr.  There where a few places
where the return value was not assigned to a const qualified pointer.
These have been fixed.

4 months agochg: dev: remove `sigrdataset` from `dns_view_findzonecut()`
Colin Vidal [Fri, 16 Jan 2026 07:29:45 +0000 (08:29 +0100)] 
chg: dev: remove `sigrdataset` from `dns_view_findzonecut()`

Since the `sigrdataset` "output" parameter of `dns_view_findzonecut()` is never used (always called with NULL), it is now removed. As the resolver is moving towards a parent-centric direction, there is no point having a signature for the NS record (which is not authoritative in the parent, so never signed) when `dns_view_findzonecut()` is called.

Also, rename `dns_view_findzonecut()` as `dns_view_bestzonecut()` as it is used only in the context where the closest name servers for a name need to be queried and to avoid ambiguities with other code flows using `dns_db_findzonecut()`.

Merge branch 'colin/findzonecut-removesig' into 'main'

See merge request isc-projects/bind9!11444

4 months agorename `dns_view_findzonecut()` into `dns_view_bestzonecut()`
Colin Vidal [Mon, 12 Jan 2026 08:23:01 +0000 (09:23 +0100)] 
rename `dns_view_findzonecut()` into `dns_view_bestzonecut()`

`dns_view_findzonecut()` is used only in the context where the closest
name servers for a name need to be queried.  In the future, this API
will also return the glues (if known) for those name servers, as well
as (exclusively, if both NS and DELEG exist) the DELEG record.

To avoid ambiguities with other code flows using `dns_db_findzonecut()`,
`dns_view_findzonecut()` has been renamed into `dns_view_bestzonecut()`.

4 months agoremove `sigrdataset` from `dns_view_findzonecut()`
Colin Vidal [Fri, 9 Jan 2026 14:47:52 +0000 (15:47 +0100)] 
remove `sigrdataset` from `dns_view_findzonecut()`

Since the `sigrdataset` "output" parameter of `dns_view_findzonecut()`
is never used (always called with NULL), it is now removed.

Also, since the resolver is moving towards a parent-centric direction,
there is no point having a signature for the NS record (which is not
authoritative in the parent, so never signed) in the contextes where
`dns_view_findzonecut()` is called.

4 months agofix: test: Fix a false positive compiler warning/error
Arаm Sаrgsyаn [Thu, 15 Jan 2026 17:50:33 +0000 (17:50 +0000)] 
fix: test: Fix a false positive compiler warning/error

When built with '-Doptimization=1', GCC produces a compiler warning:

    In file included from ../lib/isc/include/isc/lib.h:44,
                     from ../tests/dns/qp_test.c:26:
    ../tests/dns/qp_test.c: In function ‘check_predecessors_withchain’:
    ../lib/isc/include/isc/util.h:182:33: error: ‘ival’ may be used uninitialized [-Werror=maybe-uninitialized]
      182 |         (((a) == (b)) ? (void)0 : (_assert_int_equal(a, b, f, l), abort()))
          |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/include/cmocka.h:1234:5: note: in expansion of macro ‘_assert_int_equal’
     1234 |     _assert_int_equal(cast_to_largest_integral_type(a), \
          |     ^~~~~~~~~~~~~~~~~
    ../tests/dns/qp_test.c:859:18: note: ‘ival’ was declared here
      859 |         uint32_t ival;
          |                  ^~~~

This is apparently a false positive, because the qpiter_prev_with_name()
function, when returning ISC_R_SUCCESS, sets the 'ival' (passed to
it by a pointer), and the caller checks that the return value is
ISC_R_SUCCESS before using 'ival'.

Initialize the 'ival' variable to 0 anyway to avoid the build error.

Closes #5704

Merge branch '5704-qp_test-uninitialized-false-positive-error-fix' into 'main'

See merge request isc-projects/bind9!11455

4 months agoFix a false positive compiler warning/error
Aram Sargsyan [Thu, 15 Jan 2026 11:26:47 +0000 (11:26 +0000)] 
Fix a false positive compiler warning/error

When built with '-Doptimization=1', GCC produces a compiler warning:

    In file included from ../lib/isc/include/isc/lib.h:44,
                     from ../tests/dns/qp_test.c:26:
    ../tests/dns/qp_test.c: In function ‘check_predecessors_withchain’:
    ../lib/isc/include/isc/util.h:182:33: error: ‘ival’ may be used uninitialized [-Werror=maybe-uninitialized]
      182 |         (((a) == (b)) ? (void)0 : (_assert_int_equal(a, b, f, l), abort()))
          |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/include/cmocka.h:1234:5: note: in expansion of macro ‘_assert_int_equal’
     1234 |     _assert_int_equal(cast_to_largest_integral_type(a), \
          |     ^~~~~~~~~~~~~~~~~
    ../tests/dns/qp_test.c:859:18: note: ‘ival’ was declared here
      859 |         uint32_t ival;
          |                  ^~~~

This is apparently a false positive, because the qpiter_prev_with_name()
function, when returning ISC_R_SUCCESS, sets the 'ival' (passed to
it by a pointer), and the caller checks that the return value is
ISC_R_SUCCESS before using 'ival'.

Initialize the 'ival' variable to 0 anyway to avoid the build error.

4 months agonew: ci: Add minimal:gcc:trixie:amd64 jobs
Michal Nowak [Thu, 15 Jan 2026 13:31:15 +0000 (14:31 +0100)] 
new: ci: Add minimal:gcc:trixie:amd64 jobs

Closes #5544

Closes #5560

Merge branch '5544-add-gcc-minimal-amd64-jobs' into 'main'

See merge request isc-projects/bind9!11072

4 months agoDo not run unwritable dump-file check as root
Michal Nowak [Thu, 9 Oct 2025 16:43:25 +0000 (18:43 +0200)] 
Do not run unwritable dump-file check as root

When run as root, the "chmod -w" command is not an effective guard
against rndc dumping the DB to file.

4 months agoAdd minimal:gcc:trixie:amd64 jobs
Michal Nowak [Wed, 8 Oct 2025 18:41:51 +0000 (20:41 +0200)] 
Add minimal:gcc:trixie:amd64 jobs

4 months agoFix forward ns4 when statistics-channels is disabled
Michal Nowak [Wed, 8 Oct 2025 18:13:58 +0000 (20:13 +0200)] 
Fix forward ns4 when statistics-channels is disabled

With statistics-channels disabled, ns4 fails to start with:

    option 'statistics-channels' was not enabled at compile time

4 months agofix: test: Portions of two dnssec-malformed-dnskey tests need querytrace
Michal Nowak [Thu, 15 Jan 2026 13:07:25 +0000 (14:07 +0100)] 
fix: test: Portions of two dnssec-malformed-dnskey tests need querytrace

Without querytrace set, test_malformed_ecdsa and test_multiple_rrsigs
fail on the log_validation_failed string.

Merge branch 'mnowak/dnssec-malformed-dnskey-needs-querytrace' into 'main'

See merge request isc-projects/bind9!11454

4 months agoPortions of two dnssec-malformed-dnskey tests need querytrace
Michal Nowak [Wed, 14 Jan 2026 18:27:47 +0000 (19:27 +0100)] 
Portions of two dnssec-malformed-dnskey tests need querytrace

Without querytrace set, test_malformed_ecdsa and test_multiple_rrsigs
fail on the log_validation_failed string.

4 months agochg: test: Use isctest.asyncserver in the "ixfr" test
Štěpán Balážik [Wed, 14 Jan 2026 12:21:31 +0000 (12:21 +0000)] 
chg: test: Use isctest.asyncserver in the "ixfr" test

Merge branch 'stepan/ixfr-asyncserver' into 'main'

See merge request isc-projects/bind9!11403

4 months agoUse isctest.asyncserver in the "ixfr" system test
Štěpán Balážik [Tue, 23 Dec 2025 13:41:18 +0000 (14:41 +0100)] 
Use isctest.asyncserver in the "ixfr" system test

Replace the usage of the `bin/tests/system/ans.pl` server with an
instance of ControllableAsyncServer.

4 months agoAdd SwitchControlCommand for ControllableAsyncServer
Štěpán Balážik [Tue, 23 Dec 2025 13:36:56 +0000 (14:36 +0100)] 
Add SwitchControlCommand for ControllableAsyncServer

To provide feature parity with `bin/tests/system/ans.pl` add a control
command to allow easy switching between different sequences of
ResponseHandlers.

4 months agoUse variadic positional parameters for plural install_* methods
Štěpán Balážik [Wed, 17 Dec 2025 13:08:03 +0000 (14:08 +0100)] 
Use variadic positional parameters for plural install_* methods

It saves an indent and brackets on the call sites.

Also sort the handlers alphabetically where their order doesn't matter
and split the fallback handlers into a separate call to signify that
their position in the end matters.

4 months agofix: usr: Make catalog zone names and member zones' entry names case-insensitive alessio/no-fast-soa-baseline
Arаm Sаrgsyаn [Mon, 12 Jan 2026 12:59:35 +0000 (12:59 +0000)] 
fix: usr: Make catalog zone names and member zones' entry names case-insensitive

Previously, the catalog zone names and their member zones' entry
names were unintentionally case-sensitive. This has been fixed.

Closes #5693

Merge branch '5693-catz-case-sensitivity-fix' into 'main'

See merge request isc-projects/bind9!11410

4 months agoTest that catalog zones' entry names are case-insensitive
Aram Sargsyan [Thu, 25 Dec 2025 12:27:37 +0000 (12:27 +0000)] 
Test that catalog zones' entry names are case-insensitive

4 months agoMake catalog zones' entry names case-insensitive
Aram Sargsyan [Thu, 25 Dec 2025 12:25:48 +0000 (12:25 +0000)] 
Make catalog zones' entry names case-insensitive

Previously, the isc_ht hash table module was case-sensitive, but now
it supports case-insensitive mode. Use the case-insensitive mode
for the catalog zones' entry names.

4 months agoTest that catalog zone names are case-insensitive
Aram Sargsyan [Thu, 25 Dec 2025 11:39:54 +0000 (11:39 +0000)] 
Test that catalog zone names are case-insensitive

Change one of the existing catalog zone names to test that
catalog zones are now case-insensitive.

4 months agoMake catalog zone names case-insensitive
Aram Sargsyan [Fri, 19 Dec 2025 17:51:08 +0000 (17:51 +0000)] 
Make catalog zone names case-insensitive

Previously, the isc_ht hash table module was case-sensitive, but now
it supports case-insensitive mode. Use the case-insensitive mode
for catalog zone names.

4 months agochg: test: Replace digdelv ans.pl with AsyncDnsServer
Nicki Křížek [Mon, 12 Jan 2026 10:51:00 +0000 (11:51 +0100)] 
chg: test: Replace digdelv ans.pl with AsyncDnsServer

Rewrite ans servers in digdelv test to use AsyncDnsServer.

Merge branch 'nicki/asyncdnsserver-digdelv' into 'main'

See merge request isc-projects/bind9!11308

4 months agoRenumber ans7->ans6 and ans8->ans7 in digdelv test
Nicki Křížek [Wed, 7 Jan 2026 15:31:37 +0000 (16:31 +0100)] 
Renumber ans7->ans6 and ans8->ans7 in digdelv test

Since there was no 10.53.0.6 server in the test, renumber the remaining
ones so that there's no gap in the server names.

This commit simply moves the ans.py files without any changes and
renumbers the IP addresses in tests.

4 months agoAdd dnspython>=2.0.0 requirement for digdelv
Nicki Křížek [Fri, 28 Nov 2025 15:49:08 +0000 (16:49 +0100)] 
Add dnspython>=2.0.0 requirement for digdelv

Now that the test uses AsyncDnsServer, require the appropriate dnspython
version for the test.

4 months agoReplace digdelv/ans8 with AsyncDnsServer
Nicki Křížek [Fri, 28 Nov 2025 15:41:44 +0000 (16:41 +0100)] 
Replace digdelv/ans8 with AsyncDnsServer

Previously, the ans8 server had different response modes that applied to
all queries. Replace it with AsyncDnsServer that has serves the different
response modes under different domains without the need to change the
server behaviour at runtime.

Add the new queries that require an ns3 fallback to the ns3/example.db
zone.

4 months agoReplace digdelv/ans5 with ControllableAsyncDnsServer
Nicki Křížek [Fri, 28 Nov 2025 15:13:43 +0000 (16:13 +0100)] 
Replace digdelv/ans5 with ControllableAsyncDnsServer

The server has three modes of operation - either no response, a partial
AXFR or a complete AXFR. To test the fallback behaviour of dig, these
actions are be combined in a specific sequences. To set up the desired
server behaviour, use the _control queries for the server.

4 months agoRename ResponseDropAndCloseConnection action
Nicki Křížek [Fri, 28 Nov 2025 14:34:38 +0000 (15:34 +0100)] 
Rename ResponseDropAndCloseConnection action

The action can be used to close the connection even after some response
was sent, depending on the ordering of actions in the handler that uses
it. Rename it to CloseConnection to use a more fitting name.

4 months agoReplace digdelv/ans7 with AsyncDnsServer
Nicki Křížek [Fri, 28 Nov 2025 10:19:24 +0000 (11:19 +0100)] 
Replace digdelv/ans7 with AsyncDnsServer

ans7 server always replies with an UPDATE opcode in the message.

4 months agoReplace digdelv/ans4 with AsyncDnsServer
Nicki Křížek [Thu, 27 Nov 2025 17:12:55 +0000 (18:12 +0100)] 
Replace digdelv/ans4 with AsyncDnsServer

Configure the AsyncDnsServer to ignore all queries to ensure the same
behaviour as with "//" command for ans.pl.

4 months agoRemove unused digdelv/ans6 server
Nicki Křížek [Thu, 27 Nov 2025 16:48:16 +0000 (17:48 +0100)] 
Remove unused digdelv/ans6 server

This server receives no queries during the test and doesn't affect the
test outcome.

4 months agochg: test: Avoid sending manually created responses in asyncserver
Štěpán Balážik [Fri, 9 Jan 2026 15:22:31 +0000 (15:22 +0000)] 
chg: test: Avoid sending manually created responses in asyncserver

If at all possible, all the responses should be created by
AsyncDnsServer's internal methods. To ensure this, mark them with a
magic attribute and check it on send and crash the server if a manually
created response is detected.

Merge branch 'stepan/avoid-using-hand-rolled-responses-in-asyncserver' into 'main'

See merge request isc-projects/bind9!11420

4 months agoAvoid sending manually created responses in asyncserver
Štěpán Balážik [Fri, 2 Jan 2026 19:36:29 +0000 (20:36 +0100)] 
Avoid sending manually created responses in asyncserver

If at all possible, all the responses should be created by
AsyncDnsServer's internal methods. To ensure this, mark them with a
magic attribute and check it on send and crash the server if a manually
created response is detected.

Fix the qmin test server which uses `make_response`.

4 months agoUpdate BIND version for release v9.21.17
Nicki Křížek [Fri, 9 Jan 2026 13:24:57 +0000 (14:24 +0100)] 
Update BIND version for release

4 months agonew: doc: Prepare documentation for BIND 9.21.17
Nicki Křížek [Fri, 9 Jan 2026 13:23:24 +0000 (14:23 +0100)] 
new: doc: Prepare documentation for BIND 9.21.17

Merge branch 'nicki/prepare-documentation-for-bind-9.21.17' into 'v9.21.17-release'

See merge request isc-private/bind9!898

4 months agoTweak and reword release notes
Nicki Křížek [Thu, 8 Jan 2026 13:21:55 +0000 (14:21 +0100)] 
Tweak and reword release notes

4 months agoMove release note for EDE 13 to proper section
Nicki Křížek [Thu, 8 Jan 2026 13:17:44 +0000 (14:17 +0100)] 
Move release note for EDE 13 to proper section

4 months agoRemove release note for GL #5671
Nicki Křížek [Fri, 9 Jan 2026 09:54:54 +0000 (10:54 +0100)] 
Remove release note for GL #5671

This was already fixed in the previous release.

4 months agoRemove release note for GL #5675
Nicki Křížek [Thu, 8 Jan 2026 12:32:18 +0000 (13:32 +0100)] 
Remove release note for GL #5675

It is sufficient to leave this as a changelog entry.

4 months agoPrepare release notes for BIND 9.21.17
Nicki Křížek [Thu, 8 Jan 2026 12:30:34 +0000 (13:30 +0100)] 
Prepare release notes for BIND 9.21.17

4 months agochg: dev: Split and refactor dns_view_findzonecut()
Colin Vidal [Thu, 8 Jan 2026 20:01:22 +0000 (21:01 +0100)] 
chg: dev: Split and refactor dns_view_findzonecut()

The function `dns_view_findzonecut()` was previously a complex bit of code (multiple pages long with multiple gotos and mutating states) into a simpler main entry point making explicit the various steps and layers involved into the delegation lookup.

Separate helper functions are added for specific sub-tasks (lookup from the zones, from the cache, deciding which result to use if there are valid candidates from the zone or cache, etc.)

Finally, the range of result values returned by `dns_view_findzonecut()` is simplified and clearly specified. This simplifies a bit the callers code.

See #5681

Merge branch 'colin/refactor-findzonecut' into 'main'

See merge request isc-projects/bind9!11377

4 months agosimplify usage of dns_view_findzonecut()
Colin Vidal [Wed, 17 Dec 2025 14:27:39 +0000 (15:27 +0100)] 
simplify usage of dns_view_findzonecut()

As `dns_view_findzonecut()` only returns either ISC_R_SUCCESS or
DNS_R_NXDOMAIN, and since it automatically disassociates the rdatasets
in case of failure, some call sites are simplified.

4 months agofindzonecut: helper function to choose zone or cache
Colin Vidal [Tue, 16 Dec 2025 13:24:41 +0000 (14:24 +0100)] 
findzonecut: helper function to choose zone or cache

When a delegation is found at a zone level, the cache is also looked up,
in case a more specific delegation is found. If it is, then the records
from the zone are disassociated and then associated with those from the
cache.

There is no return value, because even if the cache lookup fails, there
is a valid delegation from the zone, so this is a success either way.

The main function `dns_view_findzonecut()` is also strongly refactored,
as `findzonecut_zoneorcache()` allows a sequential flow between the
various DB lookup attempts, instead of jumping back to the begining of
the lookup code using `goto`.

From the caller's point of view, the API is slightly simplified: the
return value can only be ISC_R_SUCCESS (a delegation is found) or
DNS_R_NXDOMAIN (no delegation is found). Also, if no delegation is
found, this guarantees that the rdatasets passed as parameter are
disassociated.