Commit graph

43110 commits

Author SHA1 Message Date
Nicki Křížek
48e460e8d3 Add .sh extension to shell scripts
Use .sh(.in) file extension consistently for shell scripts
to allow more reliable detection of shell scripts based on their file
extension.

(cherry picked from commit 2d690499dd)
2025-09-18 15:40:26 +02:00
Colin Vidal
975aeda10b [9.20] fix: usr: preserve cache when reload fails and reload the server again
Fixes an issue where failing to reconfigure/reload the server would prevent to preserved the views caches on the subsequent server reconfiguration/reload.

Closes #5523

Backport of MR !10984

Merge branch 'backport-colin/fix-cache-revert-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10988
2025-09-18 09:45:18 +02:00
Colin Vidal
fe4d9d9e6a remove useless namedconf option in test
namedconf `request-zoneversion` option doesn't exists on 9.20, and was
actually useless for the purpose of the reload/fail/success cache test.
Remove this option so the test can run on 9.20
2025-09-18 09:06:31 +02:00
Colin Vidal
a4c3e6f3dd preserve cache when reload fails
If the server is reloaded, new views are created and preexisting cache
is attached to those _but_ something goes wrong later, the previous
views are restored but the previous cache list is destroyed. This makes
the subsequent reload to drop the existing cache. This fixes it by
avoiding a mutation of the old cache list.

(cherry picked from commit a1703fa35b)
2025-09-18 09:06:31 +02:00
Colin Vidal
56fa811fe5 test that cache is preserved on reconfing failure
A named bug scrap the cache on a second reload after an initial reload
failure. Adds a test checking that the cache is preserved between server
reconfiguration/reloads even if it fails at some point (after attempting
to re-use the cache) and the server is re-loaded later.

(cherry picked from commit 714693742e)
2025-09-18 09:06:31 +02:00
Petr Špaček
afb8abc236 [9.20] chg: test: Improve root zone loading into AsyncServer
Backport of MR !10981

Merge branch 'backport-pspacek/test-server-root-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10986
2025-09-17 21:19:17 +00:00
Petr Špaček
2f5e5c965d Add ability to load root zone into AsyncServer
We would prefer if explicit $ORIGIN is used only for root zone and
nothing else, solely to avoid zone files named "..db". For all other
zones the file name should match zone name.

(cherry picked from commit 339e5162d6)
2025-09-17 21:19:11 +00:00
Ondřej Surý
6c62e131cc [9.20] fix: nil: Fix dns_qpmulti_memusage() on empty dns_qpmulti_t instance
The dns_qpmulti_memusage() causes assertion failure when called on
freshly created qpmulti instance because the qp->usage hasn't been
allocated yet.

Backport of MR !10977

Merge branch 'backport-ondrej/fix-qpmulti_memusage-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10982
2025-09-17 15:29:53 +02:00
Ondřej Surý
f65c7b0c02
Fix dns_qpmulti_memusage() on empty dns_qpmulti_t instance
The dns_qpmulti_memusage() causes assertion failure when called on
freshly created qpmulti instance because the qp->usage hasn't been
allocated yet.

(cherry picked from commit b2f653b332)
2025-09-17 14:01:44 +02:00
Andoni Duarte
1cbd8b8556 chg: Merge 9.20.13 release branch
Merge branch 'v9.20.13-release' into 'bind-9.20'

See merge request isc-projects/bind9!10967
2025-09-12 06:53:15 +00:00
Andoni Duarte
4e92403ab6 Merge branch 'bind-9.20' into 'v9.20.13-release'
# Conflicts:
#   configure.ac
2025-09-12 06:52:40 +00:00
Petr Špaček
15beb635bf [9.20] chg: doc: ARM tweaks
Backport of MR !10960

Merge branch 'backport-pspacek/reorder-arm-toc-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10963
2025-09-11 11:56:20 +00:00
Petr Špaček
5ae34607ac Prevent Sphinx from messing up syntax with "smartquotes" feature
Sphinx's smartquotes feature was rewriting -- to en-dash, "" to proper
English quotes etc. This was messing up syntax at unpredictable places.
Disable this feature instead of attempting to escape all the places in
the manual.

(cherry picked from commit 66e58d3315)
2025-09-11 11:18:41 +00:00
Petr Špaček
2f2c312c4f Reorder appendices in ARM
The new order hopefully reflects likelihood of someone reading from start
to the end:

DNSSEC Guide
Manual Pages
General DNS Reference Information
Release Notes
Changelog
A Brief History of the DNS and BIND

(cherry picked from commit ed0db245be)
2025-09-11 11:18:41 +00:00
Mark Andrews
968a6be41f [9.20] fix: usr: Missing DNSSEC information when CD bit is set in query
The RRSIGs for glue records were not being cached correctly for CD=1 queries.  This has been fixed.

Closes #5502

Backport of MR !10938

Merge branch 'backport-5502-fix-missing-rrsig-with-cd-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10956
2025-09-11 18:47:33 +10:00
Mark Andrews
1d7046045f test that rrsigs are returned for glue with +cd
(cherry picked from commit b7e73edd12)
2025-09-10 17:29:31 +10:00
Mark Andrews
d471995445 Remove dns_rdataset_equals as unneeded
(cherry picked from commit 7d765a3514)
2025-09-10 17:09:14 +10:00
Mark Andrews
f8cafb9756 Fix missing RRSIGs for "glue" lookups with CD=1
The code to test whether to store the RRSIGs on DNS_R_UNCHANGED
with CD=1 was failing because the comparison methods of the two
rdatatset instances were not compatible.  Move the testing into
dns_db_addrdataset(), and request it by setting the DNS_ADD_EQUALOK
option.  If the option is set and the old and new rrsets compare
as equal, dns_db_addrdataset() returns ISC_R_SUCCESS instead of
DNS_R_UNCHANGED.

(cherry picked from commit b954a1df43)
2025-09-10 17:08:52 +10:00
Ondřej Surý
89edd7b45b [9.20] fix: nil: Replace .reuse/dep5 with REUSE.toml
Update to REUSE Specification 3.2+ that uses REUSE.toml instead of DEP5
based specification.

Backport of MR !10945

Merge branch 'backport-ondrej/cover-reuse-dep5-to-toml-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10949
2025-09-08 12:15:07 +02:00
Ondřej Surý
8a2d79f3c8 Replace .reuse/dep5 with REUSE.toml
Update to REUSE Specification 3.2+ that uses REUSE.toml instead of DEP5
based specification.

(cherry picked from commit 5d03261448)
2025-09-08 12:15:02 +02:00
Petr Špaček
ba2eef328e chg: doc: Set up version for BIND 9.20.14
Merge branch 'andoni/set-up-version-for-bind-9.20.14' into 'bind-9.20'

See merge request isc-projects/bind9!10951
2025-09-08 09:44:16 +00:00
Andoni Duarte Pintado
407edb1fc8 Update BIND version to 9.20.14-dev 2025-09-08 11:40:54 +02:00
Petr Špaček
1f79fb934e Update BIND version for release 2025-09-04 18:11:27 +02:00
Petr Špaček
fb27b7b976 new: doc: Prepare documentation for BIND 9.20.13
Two inconsequential bug fixes are not release note worthy.
Use more user-centric terminology about dnssec-policy manual-mode.
Add links, shorten notes.

Merge branch 'pspacek/prepare-documentation-for-bind-9.20.13' into 'v9.20.13-release'

See merge request isc-private/bind9!836
2025-09-04 16:10:31 +00:00
Petr Špaček
7177e4bc3f Tweak and reword release notes
Two inconsequential bug fixes are not release note worthy.
Use more user-centric terminology about dnssec-policy manual-mode.
Add links, shorten notes.
2025-09-04 18:02:57 +02:00
Petr Špaček
8a542e3a37 Prepare release notes for BIND 9.20.13 2025-09-04 18:01:20 +02:00
Petr Špaček
3a4a40cb9f Generate changelog for BIND 9.20.13 2025-09-04 17:59:40 +02:00
Petr Špaček
28bde42ed3 [9.20] chg: doc: Document rndc dnssec -step
Related to #4606

Backport of MR !10941

Merge branch 'backport-4606-document-rndc-dnssec-step-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10943
2025-09-04 14:00:04 +00:00
Matthijs Mekking
4efd3bc1f4 Document rndc dnssec -step
This documentation was missing from !10774.

(cherry picked from commit b1a9ce7104)
2025-09-04 13:51:12 +00:00
Petr Špaček
af2fb26325 [9.20] fix: dev: RPZ 'servfail-until-ready': skip updating SERVFAIL cache
In order to not pollute the SERVFAIL cache with the configured
SERVFAIL answers while RPZ is loading, set the NS_CLIENTATTR_NOSETFC
attribute for the client.

Backport of MR !10904

Merge branch 'backport-aram/rpz-servfail-until-ready-tunings-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10940
2025-09-03 20:01:36 +00:00
Aram Sargsyan
36ef759164 Log the servfail-until-ready message not faster than once per second
Since the log level has been raised, busy servers can "explode" from
the amount of log messages. Use the usual practice of logging "every
once in a while".

(cherry picked from commit 1962857ac4)
2025-09-03 15:43:37 +02:00
Aram Sargsyan
25e08a0cfe Change the "RPZ not ready yet" message and its log level
The "RPZ not ready yet" message is logged at debug 3 level. Use the
info level instead for better visibility.

After raising the log level, the rpz_log_fail_helper() function starts
appending " failed: " the the message. Change the log message so it
makes more sense.

(cherry picked from commit 49356ce944)
2025-09-03 15:43:37 +02:00
Aram Sargsyan
cf687c0bda RPZ 'servfail-until-ready': skip updating SERVFAIL cache
In order to not pollute the SERVFAIL cache with the configured
SERVFAIL answers while RPZ is loading, set the NS_CLIENTATTR_NOSETFC
attribute for the client.

(cherry picked from commit d9b5f6c502)
2025-09-03 15:43:37 +02:00
Petr Špaček
fe80c31859 [9.20] chg: doc: Clarify rrset-order random distribution
The randomized order of the records in the rrset is not uniform across
all permutations.  Clarify this in the documentation.

Closes #5485

Backport of MR !10909

Merge branch 'backport-ondrej/clarify-rrset-order-random-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10935
2025-09-03 12:47:41 +00:00
Ondřej Surý
0c28ec295b Clarify rrset-order random distribution
The randomized order of the records in the rrset is not uniform across
all permutations.  Clarify this in the documentation.

(cherry picked from commit 369c8dc388)
2025-09-03 06:53:03 +00:00
Mark Andrews
1f051af24d [9.20] new: usr: Support for parsing HHIT and BRID records has been added
Closes #5444

Backport of MR !10795

Merge branch 'backport-5444-add-hhit-and-brid-records-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10932
2025-09-03 11:37:31 +10:00
Mark Andrews
c0b39b9093 Add tests for BRID and HHIT
(cherry picked from commit 92621e6390)
2025-09-03 11:02:15 +10:00
Mark Andrews
e63501f5b0 Add support for parsing and displaying BRID rdata type
(cherry picked from commit 6b29da55fc)
2025-09-03 11:02:15 +10:00
Mark Andrews
f7dda7943a Add support for parsing and displaying HHIT rdata type
(cherry picked from commit 37041c3ec3)
2025-09-03 11:02:15 +10:00
Mark Andrews
d833676515 [9.20] fix: usr: RPZ canonical warning displays zone entry incorrectly
When an IPv6 rpz prefix entry is entered incorrectly the log
message was just displaying the prefix rather than the full
entry.  This has been corrected.

Closes #5491

Backport of MR !10890

Merge branch 'backport-5491-rpz-canonical-warning-displays-zone-entry-incorrectly-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10930
2025-09-03 10:57:28 +10:00
Mark Andrews
6fcbf2bc54 Add non canonical form entry to trigger log message
(cherry picked from commit 76db9e276f)
2025-09-02 23:43:40 +00:00
Mark Andrews
6440743bdc RPZ canonical warning displays zone entry incorrectly
Do not insert a NUL into ip_str too early as the full value
is needed later.  Only insert the NUL immediately before
displaying just the prefix string.

(cherry picked from commit 283da99f02)
2025-09-02 23:43:40 +00:00
Matthijs Mekking
ec484f6727 [9.20] chg: test: Wait for rekey_done log in rollover system tests
Waiting for "keymgr: done" logs caused some manual-mode tests to fail intermittently. Waiting for "rekey done" logs should be more reliable.

Closes #5493

Backport of MR !10923

Merge branch 'backport-5493-algoroll-csk-step3-manual-unstable-test-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10929
2025-09-02 13:40:47 +00:00
Matthijs Mekking
601c171a37 Wait for rekey_done log in rollover system tests
Waiting for "keymgr: done" logs caused some manual-mode tests to fail
intermittently. Waiting for "rekey done" logs should be more reliable.

(cherry picked from commit 4141ae1275)
2025-09-02 13:04:24 +00:00
Andoni Duarte
8540cde99c [9.20] new: test: Test another 'stale-answer-client-timeout 0' scenario
Add a test to check serve-stale with the 'stale-answer-client-timeout 0'
configuration option and with a delegation which is a CNAME to a auth
zone.

Closes #5372

Backport of MR !10920

Merge branch 'backport-5372-serve-stale-crash-on-insist-unreachable-test-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10927
2025-09-02 10:32:11 +00:00
Aram Sargsyan
7a03b59d0f Test another 'stale-answer-client-timeout 0' scenario
Add a test to check serve-stale with the 'stale-answer-client-timeout 0'
configuration option and with a delegation which is a CNAME to a auth
zone.

(cherry picked from commit 04ed44e7d7)
2025-09-02 08:50:52 +00:00
Michał Kępień
9352ae65d7 [9.20] rem: usr: Obsolete the "tkey-domain" statement
Mark the ``tkey-domain`` statement as obsolete, since it has not had any
effect on server behavior since support for TKEY Mode 2 (Diffie-Hellman)
was removed (in BIND 9.20.0).

See #4204

Backport of MR !10798

Merge branch 'backport-4204-obsolete-tkey-domain-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10926
2025-09-01 22:45:18 +02:00
Michał Kępień
cae623fa69
Obsolete the "tkey-domain" statement
The "tkey-domain" statement has effectively been a no-op since commit
bd4576b3ce, which removed the only bit of
code using it: the logic implementing TKEY Mode 2 (Diffie-Hellman).

A subsequent cleanup commit, 885c132f4a,
also missed the opportunity to remove the "tkey-domain" statement
altogether.

Mark the "tkey-domain" statement as obsolete and remove all code and
documentation related to it.

(cherry picked from commit 805f1c0f65)
2025-09-01 22:34:08 +02:00
Michał Kępień
b239a70cac [9.20] rem: usr: Deprecate the "tkey-gssapi-credential" statement
The :any:`tkey-gssapi-keytab` statement allows GSS-TSIG to be set up in
a simpler and more reliable way than using the
:any:`tkey-gssapi-credential` statement and setting environment
variables (e.g. ``KRB5_KTNAME``). Therefore, the
:any:`tkey-gssapi-credential` statement has been deprecated;
:any:`tkey-gssapi-keytab` should be used instead.

For configurations currently using a combination of both
:any:`tkey-gssapi-keytab` *and* :any:`tkey-gssapi-credential`, the
latter should be dropped and the keytab pointed to by
:any:`tkey-gssapi-keytab` should now only contain the credential
previously specified by :any:`tkey-gssapi-credential`.

See #4204

Backport of MR !10782

Merge branch 'backport-4204-deprecate-tkey-gssapi-credential-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10924
2025-09-01 22:00:59 +02:00
Michał Kępień
5700c77a6f Deprecate the "tkey-gssapi-credential" statement
The "tkey-gssapi-keytab" statement enables GSS-TSIG to be set up in a
simpler and more reliable way than using the "tkey-gssapi-credential"
statement and setting environment variables (e.g. KRB5_KTNAME).

Mark the "tkey-gssapi-credential" statement as deprecated to eventually
only have one method for setting up GSS-TSIG in named.  Do not mention
"tkey-gssapi-credential" in the section of the ARM on dynamic updates.

(cherry picked from commit 6de435c528)
2025-09-01 19:34:14 +00:00