]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
17 months agoUse FIPS compatible DH-param files
Artem Boldariev [Tue, 3 Dec 2024 10:38:34 +0000 (12:38 +0200)] 
Use FIPS compatible DH-param files

When the tests were added, the files were generated without FIPS
compatibility in mind. That made the tests fail on recent OpenSSL
versions in FIPS mode.

So, the files were regenerated on a FIPS compliant system using the
following stanza:

$ openssl dhparam -out <file> 3072

Apparently, the old files are not valid for FIPS starting with OpneSSL
3.1.X release series as "FIPS 140-3 compliance changes" are mentioned
in the changelog:

https://openssl-library.org/news/openssl-3.1-notes/

17 months agonew: usr: Add Extended DNS Error Code 22 - No Reachable Authority
Colin Vidal [Wed, 4 Dec 2024 15:52:16 +0000 (15:52 +0000)] 
new: usr: Add Extended DNS Error Code 22 - No Reachable Authority

When the resolver is trying to query an authority server and eventually timed out, a SERVFAIL answer is given to the client. Add the Extended DNS Error Code 22 - No Reachable Authority to the response.

Closes #2268

Merge branch '2268/ede-no-reachable-authority' into 'main'

See merge request isc-projects/bind9!9743

17 months agoAdd EDE 22 No reachable authority code
Colin Vidal [Fri, 8 Nov 2024 17:18:30 +0000 (18:18 +0100)] 
Add EDE 22 No reachable authority code

Add support for Extended DNS Errors (EDE) error 22: No reachable
authority. This occurs when after a timeout delay when the resolver is
trying to query an authority server.

17 months agorem: dev: Remove the log message about incomplete IPv6 API
Ondřej Surý [Wed, 4 Dec 2024 15:19:21 +0000 (15:19 +0000)] 
rem: dev: Remove the log message about incomplete IPv6 API

The log message would not be ever reached, because the IPv6 API is
always considered to be complete.  Just remove the dead code.

Closes #5068

Merge branch '5068-remove-dead-code-from-ns_interface' into 'main'

See merge request isc-projects/bind9!9798

17 months agoRemove the log message about incomplete IPv6 API
Ondřej Surý [Thu, 28 Nov 2024 16:28:35 +0000 (17:28 +0100)] 
Remove the log message about incomplete IPv6 API

The log message would not be ever reached, because the IPv6 API is
always considered to be complete.  Just remove the dead code.

17 months agochg: doc: Set up version for BIND 9.21.4
Petr Špaček [Wed, 4 Dec 2024 15:10:58 +0000 (15:10 +0000)] 
chg: doc: Set up version for BIND 9.21.4

Merge branch 'pspacek/set-up-version-for-bind-9.21.4' into 'main'

See merge request isc-projects/bind9!9810

17 months agoUpdate BIND version to 9.21.4-dev
Petr Špaček [Wed, 4 Dec 2024 14:52:49 +0000 (15:52 +0100)] 
Update BIND version to 9.21.4-dev

17 months agoUpdate BIND version for release 209678 v9.21.3
Petr Špaček [Mon, 2 Dec 2024 16:57:42 +0000 (17:57 +0100)] 
Update BIND version for release

17 months agoAdd missing copyright header to Release Notes
Petr Špaček [Tue, 3 Dec 2024 09:43:02 +0000 (10:43 +0100)] 
Add missing copyright header to Release Notes

17 months agoAdd release note for GL #5022
Petr Špaček [Tue, 3 Dec 2024 09:36:58 +0000 (10:36 +0100)] 
Add release note for GL #5022

17 months agoAdd release note for GL #4986
Petr Špaček [Tue, 3 Dec 2024 09:19:17 +0000 (10:19 +0100)] 
Add release note for GL #4986

17 months agonew: doc: Prepare documentation for BIND 9.21.3
Petr Špaček [Mon, 2 Dec 2024 16:55:38 +0000 (16:55 +0000)] 
new: doc: Prepare documentation for BIND 9.21.3

Merge branch 'pspacek/prepare-documentation-for-bind-9.21.3' into 'v9.21.3-release'

See merge request isc-private/bind9!755

17 months agoTweak and reword release notes
Petr Špaček [Mon, 2 Dec 2024 15:24:43 +0000 (16:24 +0100)] 
Tweak and reword release notes

17 months agoAutomatically add hyperlinks to release notes for BIND 9.21.3
Petr Špaček [Mon, 2 Dec 2024 14:34:07 +0000 (15:34 +0100)] 
Automatically add hyperlinks to release notes for BIND 9.21.3

17 months agoPrepare release notes for BIND 9.21.3
Petr Špaček [Mon, 2 Dec 2024 14:29:59 +0000 (15:29 +0100)] 
Prepare release notes for BIND 9.21.3

17 months agoFix Sphinx build failures on generated changelog for BIND 9.21.3
Petr Špaček [Mon, 2 Dec 2024 14:13:30 +0000 (15:13 +0100)] 
Fix Sphinx build failures on generated changelog for BIND 9.21.3

17 months agoGenerate changelog for BIND 9.21.3
Petr Špaček [Mon, 2 Dec 2024 14:07:55 +0000 (15:07 +0100)] 
Generate changelog for BIND 9.21.3

17 months agochg: doc: gitchangelog: don't break lines on hyphens in relnotes
Petr Špaček [Mon, 2 Dec 2024 13:53:38 +0000 (13:53 +0000)] 
chg: doc: gitchangelog: don't break lines on hyphens in relnotes

When release notes are generated, the text is wrapped and line breaks
are inserted into each paragraph (sourced from the commit message's
body). Prevent line breaks after hyphens, as these are often used for
option names. This makes it possible to easily find the options
afterwards.

Merge branch 'nicki/gitchangelog-dont-break-on-hyphens' into 'main'

See merge request isc-projects/bind9!9801

17 months agogitchangelog: don't break lines on hyphens in relnotes
Nicki Křížek [Mon, 2 Dec 2024 10:10:01 +0000 (11:10 +0100)] 
gitchangelog: don't break lines on hyphens in relnotes

When release notes are generated, the text is wrapped and line breaks
are inserted into each paragraph (sourced from the commit message's
body). Prevent line breaks after hyphens, as these are often used for
option names. This makes it possible to easily find the options
afterwards.

17 months agonew: dev: Extended TCP accept() logging
Artem Boldariev [Wed, 27 Nov 2024 19:48:58 +0000 (19:48 +0000)] 
new: dev: Extended TCP accept() logging

Add extra log messages about TCP connection management.

Merge branch 'tcp-accept-extended-logging' into 'main'

See merge request isc-projects/bind9!9089

17 months agoExtended TCP accept()/close() logging
Artem Boldariev [Wed, 5 Jun 2024 10:15:04 +0000 (13:15 +0300)] 
Extended TCP accept()/close() logging

This commit adds extra log messages issued when accepting or closing a
TCP connection (provided that debugging logging level >=99 is
enabled).

17 months agofix: usr: Improve the memory cleaning in the SERVFAIL cache
Ondřej Surý [Wed, 27 Nov 2024 17:04:29 +0000 (17:04 +0000)] 
fix: usr: Improve the memory cleaning in the SERVFAIL cache

The SERVFAIL cache doesn't have a memory bound and the
cleaning of the old SERVFAIL cache entries was implemented
only in opportunistic manner.  Improve the memory cleaning
of the SERVFAIL cache to be more aggressive, so it doesn't
consume a lot of memory in the case the server encounters
many SERVFAILs at once.

Closes #5025

Merge branch '5025-improve-badcache-cleaning' into 'main'

See merge request isc-projects/bind9!9760

17 months agochg: dev: Optimize memory layout of core structs
Alessio Podda [Wed, 27 Nov 2024 17:02:08 +0000 (17:02 +0000)] 
chg: dev: Optimize memory layout of core structs

Reduce memory footprint by:
- Reordering struct fields to minimize padding.
- Using exact-sized atomic types instead of `*_least`/`*_fast` variants
- Downsizing integer fields where possible

Affected structs:
- dns_name_t
- dns_slabheader_t
- dns_rdata_t
- qpcnode_t
- qpznode_t

Closes #5022

Merge branch '5022-reduce-metadata-overhead-by-struct-packing' into 'main'

See merge request isc-projects/bind9!9721

17 months agoRemove dns_badcache usage in the resolver (lame-ttl)
Ondřej Surý [Fri, 22 Nov 2024 14:10:26 +0000 (15:10 +0100)] 
Remove dns_badcache usage in the resolver (lame-ttl)

The lame-ttl processing was overriden to be disabled in the config,
but the code related to the lame-ttl was still kept in the resolver
code.  More importantly, the DNS_RESOLVER_BADCACHETTL() macro would
cause the entries in the resolver badcache to be always cached for at
least 30 seconds even if the lame-ttl would be set to 0.

Remove the dns_badcache code from the dns_resolver unit, so we save some
processing time and memory in the resolver code.

17 months agoImprove the badcache cleaning by adding LRU and using RCU
Ondřej Surý [Thu, 14 Nov 2024 18:51:29 +0000 (19:51 +0100)] 
Improve the badcache cleaning by adding LRU and using RCU

Instead of cleaning the dns_badcache opportunistically, add per-loop
LRU, so each thread-loop can clean the expired entries.  This also
allows removal of the atomic operations as the badcache entries are now
immutable, instead of updating the badcache entry in place, the old
entry is now deleted from the hashtable and the LRU list, and the new
entry is inserted in the LRU.

17 months agoOptimize memory layout of core structs
alessio [Tue, 5 Nov 2024 08:36:24 +0000 (09:36 +0100)] 
Optimize memory layout of core structs

Reduce memory footprint by:

 - Reordering struct fields to minimize padding.
 - Using exact-sized atomic types instead of *_least/*_fast variants
 - Downsizing integer fields where possible

Affected structs:

 - dns_name_t
 - dns_slabheader_t
 - dns_rdata_t
 - qpcnode_t
 - qpznode_t

17 months agochg: dev: Assume IPv6 is universally available (on the kernel level)
Ondřej Surý [Wed, 27 Nov 2024 14:23:11 +0000 (14:23 +0000)] 
chg: dev: Assume IPv6 is universally available (on the kernel level)

Instead of various probing, just assume that IPv6 is universally available
and cleanup the various checks and defines that we have accumulated over
the years.

Merge branch 'ondrej/cleanup-IPv6-networking-support' into 'main'

See merge request isc-projects/bind9!9360

17 months agoRemove unused definition of ISC_CMSG_IP_TOS
Ondřej Surý [Tue, 20 Aug 2024 10:15:05 +0000 (12:15 +0200)] 
Remove unused definition of ISC_CMSG_IP_TOS

The #define was used before, but we forgot to clean it up when we
removed support for dscp.

17 months agoRemove the incomplete code for IPv6 pktinfo
Ondřej Surý [Tue, 20 Aug 2024 10:12:47 +0000 (12:12 +0200)] 
Remove the incomplete code for IPv6 pktinfo

The code that listens on individual interfaces is now stable and doesn't
require any changes.  The code that would bind to IPv6 wildcard address
and then use IPv6 pktinfo structure to get the source address is not
going to be completed, so it's better to just remove the dead cruft.

17 months agoAssume universal availability of socklen_t
Ondřej Surý [Tue, 20 Aug 2024 09:57:35 +0000 (11:57 +0200)] 
Assume universal availability of socklen_t

The SUSv2 defines accept(..., socklen_t), so we can safely require
socklen_t to be universally available.

17 months agoAssume that IPv4 and IPv6 is always available
Ondřej Surý [Tue, 20 Aug 2024 09:53:07 +0000 (11:53 +0200)] 
Assume that IPv4 and IPv6 is always available

In 2024, it is reasonable to assume that IPv4 and IPv6 is always
available on a socket() level.  We still keep the option to enable or
disable each IP version individually, as the routing might be broken or
undesirable for one of the versions.

17 months agoAssume IPV6_V6ONLY is universally available
Ondřej Surý [Tue, 20 Aug 2024 09:48:04 +0000 (11:48 +0200)] 
Assume IPV6_V6ONLY is universally available

In 2024, IPV6_V6ONLY socket option is either available or the operating
system is just not going to be supported.

17 months agofix: test: Fix the nslookup system test
Arаm Sаrgsyаn [Wed, 27 Nov 2024 13:34:29 +0000 (13:34 +0000)] 
fix: test: Fix the nslookup system test

The nslookup system test checks the count of resolved addresses in
the CNAME tests using a 'grep' match on the hostname, and ignoring
lines containing the 'canonical name' string. In order to protect
the check from intermittent failures like the 'address in use' warning
message, which then automatically resolves after a retry, edit the
'grep' matching string to also ignore the comments (as the mentioned
warning message is a comment which contains the hostname).

Closes #4948

Merge branch '4948-nslookup-test-fix' into 'main'

See merge request isc-projects/bind9!9523

17 months agoFix the nslookup system test
Aram Sargsyan [Thu, 19 Sep 2024 14:47:49 +0000 (14:47 +0000)] 
Fix the nslookup system test

The nslookup system test checks the count of resolved addresses in
the CNAME tests using a 'grep' match on the hostname, and ignoring
lines containing the 'canonical name' string. In order to protect
the check from intermittent failures like the 'address in use' warning
message, which then automatically resolves after a retry, edit the
'grep' matching string to also ignore the comments (as the mentioned
warning message is a comment which contains the hostname).

17 months agofix: dev: Make dns_validator_cancel() respect the data ownership
Ondřej Surý [Wed, 27 Nov 2024 13:00:33 +0000 (13:00 +0000)] 
fix: dev: Make dns_validator_cancel() respect the data ownership

There was a data race dns_validator_cancel() was called when the
offloaded operations were in progress.  Make dns_validator_cancel()
respect the data ownership and only set new .canceling variable when
the offloaded operations are in progress.  The cancel operation would
then finish when the offloaded work passes the ownership back to the
respective thread.

Closes #4926

Merge branch '4926-fix-data-race-in-dns_validator' into 'main'

See merge request isc-projects/bind9!9470

17 months agoMake dns_validator_cancel() respect the data ownership
Ondřej Surý [Tue, 10 Sep 2024 12:18:48 +0000 (14:18 +0200)] 
Make dns_validator_cancel() respect the data ownership

There was a data race dns_validator_cancel() was called when the
offloaded operations were in progress.  Make dns_validator_cancel()
respect the data ownership and only set new .shuttingdown variable when
the offloaded operations are in progress.  The cancel operation would
then finish when the offloaded work passes the ownership back to the
respective thread.

17 months agofix: usr: Fix trying the next primary server when the preivous one was marked as...
Arаm Sаrgsyаn [Wed, 27 Nov 2024 11:46:09 +0000 (11:46 +0000)] 
fix: usr: Fix trying the next primary server when the preivous one was marked as unreachable

In some cases (there is evidence only when XoT was used) `named` failed
to try the next primary server in the list when the previous one was
marked as unreachable. This has been fixed.

Closes #5038

Merge branch '5038-xfr-primary-next-fix' into 'main'

See merge request isc-projects/bind9!9781

17 months agoTest trying of the next primary server
Aram Sargsyan [Tue, 26 Nov 2024 12:09:57 +0000 (12:09 +0000)] 
Test trying of the next primary server

Add test cases which check that when a XoT primary server is
unreachable or is already marked as unreachble then the next
primary server in the list is used.

17 months agoxfrin: refactor and fix the ISC_R_CANCELED case handling
Aram Sargsyan [Tue, 26 Nov 2024 12:06:03 +0000 (12:06 +0000)] 
xfrin: refactor and fix the ISC_R_CANCELED case handling

Previously a ISC_R_CANCELED result code switch-case has been added to
the zone.c:zone_xfrdone() function, which did two things:

1. Schedule a new zone transfer if there's a scheduled force reload of
   the zone.

2. Reset the primaries list.

This proved to be not a well-thought change and causes problems,
because the ISC_R_CANCELED code is used not only when the whole transfer
is canceled, but also when, for example, a particular primary server is
unreachable, and named still needs to continue the transfer process by
trying the next server, which it now no longer does in some cases. To
solve this issue, three changes are made:

1. Make sure dns_zone_refresh() runs on the zone's loop, so that the
   sequential calls of dns_zone_stopxfr() and dns_zone_forcexfr()
   functions (like done in 'rndc retransfer -force') run in intended
   order and don't race with each other.

2. Since starting the new transfer is now guaranteed to run after the
   previous transfer is shut down (see the previous change), remove the
   special handling of the ISC_R_CANCELED case, and let the default
   handler to handle it like before. This will bring back the ability to
   try the next primary if the current one was interrupted with a
   ISC_R_CANCELED result code.

3. Change the xfrin.c:xfrin_shutdown() function to pass the
   ISC_R_SHUTTINGDOWN result code instead of ISC_R_CANCELED, as it makes
   more sense.

17 months agoClean up dns_zonemgr_unreachabledel()
Aram Sargsyan [Tue, 26 Nov 2024 11:36:33 +0000 (11:36 +0000)] 
Clean up dns_zonemgr_unreachabledel()

The results of isc_sockaddr_format() calls are not used, remove them
and the local variables.

17 months agochg: dev: Use default listening rules from config.c string
Evan Hunt [Wed, 27 Nov 2024 00:08:28 +0000 (00:08 +0000)] 
chg: dev: Use default listening rules from config.c string

Remove special code which creates default listeners, and use the normal named.conf configuration parser instead. This removes unneeded code and makes the built-in configuration text provide a true primary source of defaults. This change should be transparent to end-users and should not cause any visible change.

Closes #1424

Merge branch '1424-listen-builtin-config' into 'main'

See merge request isc-projects/bind9!2663

17 months agoRemove ns_listenlist_default()
Petr Menšík [Mon, 6 Dec 2021 12:44:51 +0000 (13:44 +0100)] 
Remove ns_listenlist_default()

It is not used anywhere in named and is no longer necessary
there.  It was called in some unit tests, but was not actually
needed by them.

17 months agoLoad default listen-on[-v6] values from config.c
Petr Menšík [Mon, 6 Dec 2021 12:42:53 +0000 (13:42 +0100)] 
Load default listen-on[-v6] values from config.c

Stop using ns_listenlist_default() to set the default listen-on
and listen-on-v6 configuration.  Instead, configure these options
using the default values in config.c.

17 months agochg: test: Rewrite emptyzones system test to pytest
Michal Nowak [Tue, 26 Nov 2024 15:15:51 +0000 (15:15 +0000)] 
chg: test: Rewrite emptyzones system test to pytest

Merge branch 'mnowak/pytest_rewrite_emptyzones' into 'main'

See merge request isc-projects/bind9!9154

17 months agoRewrite emptyzones system test to pytest
Michal Nowak [Wed, 17 Jul 2024 11:01:28 +0000 (13:01 +0200)] 
Rewrite emptyzones system test to pytest

17 months agoAdd isctest.check.refused()
Michal Nowak [Wed, 17 Jul 2024 13:35:05 +0000 (15:35 +0200)] 
Add isctest.check.refused()

17 months agochg: test: Rewrite database system test to pytest
Michal Nowak [Tue, 26 Nov 2024 12:11:30 +0000 (12:11 +0000)] 
chg: test: Rewrite database system test to pytest

Merge branch 'mnowak/pytest_rewrite_database' into 'main'

See merge request isc-projects/bind9!9156

17 months agoRewrite database system test to pytest
Michal Nowak [Thu, 18 Jul 2024 08:16:16 +0000 (10:16 +0200)] 
Rewrite database system test to pytest

17 months agorem: usr: Move contributed DLZ modules into a separate repository
Ondřej Surý [Tue, 26 Nov 2024 11:30:12 +0000 (11:30 +0000)] 
rem: usr: Move contributed DLZ modules into a separate repository

The DLZ modules are poorly maintained as we only ensure they can still
be compiled, the DLZ interface is blocking, so anything that blocks the
query to the database blocks the whole server and they should not be
used except in testing.  The DLZ interface itself is going to be scheduled
for removal.

The DLZ modules now live in https://gitlab.isc.org/isc-projects/dlz-modules
repository.

Closes #4865

Merge branch '4865-remove-contributed-DLZ-modules' into 'main'

See merge request isc-projects/bind9!9349

17 months agoMove contributed DLZ modules into a separate repository
Ondřej Surý [Mon, 19 Aug 2024 12:39:11 +0000 (14:39 +0200)] 
Move contributed DLZ modules into a separate repository

The DLZ modules are poorly maintained as we only ensure they can still
be compiled, the DLZ interface is blocking, so anything that blocks the
query to the database blocks the whole server and they should not be
used except in testing.  The DLZ interface itself should be scheduled
for removal.

17 months agorem: test: Revert "xfail upforwd system test if DNSTAP is enabled"
Michal Nowak [Tue, 26 Nov 2024 10:48:26 +0000 (10:48 +0000)] 
rem: test: Revert "xfail upforwd system test if DNSTAP is enabled"

This reverts commit 0579e0a4299d7d238997486c52c3e3c97ebd977d.

See isc-projects/bind9#4996

Merge branch 'mnowak/revert-xfail-upforwd-system-test' into 'main'

See merge request isc-projects/bind9!9681

17 months agoRevert "xfail upforwd system test if DNSTAP is enabled"
Michal Nowak [Wed, 23 Oct 2024 14:04:13 +0000 (16:04 +0200)] 
Revert "xfail upforwd system test if DNSTAP is enabled"

This reverts commit 0579e0a4299d7d238997486c52c3e3c97ebd977d.

17 months agochg: usr: Add new logging module for logging crypto errors in libisc
Ondřej Surý [Tue, 26 Nov 2024 10:23:11 +0000 (10:23 +0000)] 
chg: usr: Add new logging module for logging crypto errors in libisc

Add a new 'crypto' log module that will be used for a low-level
cryptographic operations.  The DNS related cryptography logs
are still logged in the 'dns/crypto' module.

Merge branch 'ondrej/add-ISC_LOGMODULE_CRYPTO' into 'main'

See merge request isc-projects/bind9!9287

17 months agoAdd new logging category for logging crypto errors in libisc
Ondřej Surý [Thu, 8 Aug 2024 09:26:27 +0000 (11:26 +0200)] 
Add new logging category for logging crypto errors in libisc

The libisc now includes sizeable chunks of cryptography, but the crypto
log module was missing.  Add the new ISC_LOGMODULE_CRYPTO to libisc and
use it in the isc_tls error logging.

17 months agofix: test: Ignore test artifacts in .libs
Nicki Křížek [Tue, 26 Nov 2024 09:05:28 +0000 (09:05 +0000)] 
fix: test: Ignore test artifacts in .libs

Some tests may leave artifacts in the .libs directory. Ignore this
directory when detecting expected artifacts.

Closes #5055

Merge branch '5055-ignore-libs-artifacts' into 'main'

See merge request isc-projects/bind9!9766

17 months agoIgnore test artifacts in .libs
Nicki Křížek [Mon, 25 Nov 2024 17:16:12 +0000 (18:16 +0100)] 
Ignore test artifacts in .libs

Some tests may leave artifacts in the .libs directory. Ignore this
directory when detecting expected artifacts.

17 months agochg: usr: Add none parameter to query-source and query-source-v6 to disable IPv4...
Colin Vidal [Tue, 26 Nov 2024 08:46:58 +0000 (08:46 +0000)] 
chg: usr: Add none parameter to query-source and query-source-v6 to disable IPv4 or IPv6 upstream queries

Add a none parameter to named configuration option `query-source` (respectively `query-source-v6`) which forbid usage of IPv4 (respectively IPv6) addresses when named is doing an upstream query.

Closes #4981 Turning-off upstream IPv6 queries while still listening to downstream queries on IPv6.

Merge branch 'colin/querysource-none' into 'main'

See merge request isc-projects/bind9!9727

17 months agoAdd a none parameter to query-source[-v6]
Colin Vidal [Tue, 5 Nov 2024 12:40:55 +0000 (13:40 +0100)] 
Add a none parameter to query-source[-v6]

This change adds a "none" parameter to the query-source[-v6]
options in named.conf, which forbid the usage of IPv4 or IPv6
addresses when doing upstream queries.

17 months agochg: usr: emit more helpful log for exceeding max-records-per-type
Mark Andrews [Tue, 26 Nov 2024 07:15:25 +0000 (07:15 +0000)] 
chg: usr: emit more helpful log for exceeding max-records-per-type

The new log message is emitted when adding or updating an RRset
fails due to exceeding the max-records-per-type limit. The log includes
the owner name and type, corresponding zone name, and the limit value.
It will be emitted on loading a zone file, inbound zone transfer
(both AXFR and IXFR), handling a DDNS update, or updating a cache DB.
It's especially helpful in the case of zone transfer, since the
secondary side doesn't have direct access to the offending zone data.

It could also be used for max-types-per-name, but this change
doesn't implement it yet as it's much less likely to happen
in practice.

Merge branch 'helpful-log-on-toomanyrecords' into 'main'

See merge request isc-projects/bind9!9509

17 months agoupdate system tests to confirm new log messages
JINMEI Tatuya [Thu, 26 Sep 2024 08:04:57 +0000 (17:04 +0900)] 
update system tests to confirm new log messages

17 months agouse more generic log module name for 'logtoomanyrecords'
JINMEI Tatuya [Wed, 18 Sep 2024 06:32:21 +0000 (15:32 +0900)] 
use more generic log module name for 'logtoomanyrecords'

DNS_LOGMODULE_RBTDB was simply inappropriate, and this
log message is actually dependent on db implementation
details, so DNS_LOGMODULE_DB would be the best choice.

17 months agoemit more helpful log for exceeding max-records-per-type
JINMEI Tatuya [Thu, 29 Aug 2024 07:24:48 +0000 (16:24 +0900)] 
emit more helpful log for exceeding max-records-per-type

The new log message is emitted when adding or updating an RRset
fails due to exceeding the max-records-per-type limit. The log includes
the owner name and type, corresponding zone name, and the limit value.
It will be emitted on loading a zone file, inbound zone transfer
(both AXFR and IXFR), handling a DDNS update, or updating a cache DB.
It's especially helpful in the case of zone transfer, since the
secondary side doesn't have direct access to the offending zone data.

It could also be used for max-types-per-name, but this change
doesn't implement it yet as it's much less likely to happen
in practice.

17 months agofix: usr: '{&dns}' is as valid as '{?dns}' in a SVCB's dohpath
Mark Andrews [Tue, 26 Nov 2024 03:40:57 +0000 (03:40 +0000)] 
fix: usr: '{&dns}' is as valid as '{?dns}' in a SVCB's dohpath

`dig` fails to parse a valid (as far as I can tell, and accepted by `kdig` and `Wireshark`) `SVCB` record with a `dohpath` URI template containing a `{&dns}`, like `dohpath=/some/path?key=value{&dns}"`. If the URI template contains a `{?dns}` instead `dig` is happy, but my understanding of rfc9461 and section 1.2. "Levels and Expression Types" of rfc6570 is that `{&dns}` is valid.
See for example section 1.2. "Levels and Expression Types" of rfc6570.

Note that Peter van Dijk suggested that `{dns}` and `{dns,someothervar}` might be valid forms as well, so my patch might be too restrictive, although it's anyone's guess how DoH clients would handle complex templates.

Closes https://gitlab.isc.org/isc-projects/bind9/-/issues/4922

Merge branch 'svcb-dohpath-uri-template' into 'main'

See merge request isc-projects/bind9!9455

17 months agoParse the URI template and check for a dns variable
Mark Andrews [Mon, 9 Sep 2024 05:59:30 +0000 (15:59 +1000)] 
Parse the URI template and check for a dns variable

The 'dns' variable in dohpath can be in various forms ({?dns},
{dns}, {&dns} etc.).  To check for a valid dohpath it ends up
being simpler to just parse the URI template rather than looking
for all the various forms if substring.

17 months ago'{&dns}' is as valid as '{?dns}' in a SVCB's dohpath
Remi Gacogne [Thu, 5 Sep 2024 13:11:21 +0000 (15:11 +0200)] 
'{&dns}' is as valid as '{?dns}' in a SVCB's dohpath

See for example section 1.2. "Levels and Expression Types" of rfc6570.

17 months agofix: usr: Provide more visibility into configuration errors
Mark Andrews [Tue, 26 Nov 2024 00:02:50 +0000 (00:02 +0000)] 
fix: usr: Provide more visibility into configuration errors

by logging SSL_CTX_use_certificate_chain_file and SSL_CTX_use_PrivateKey_file errors individually.

Closes #5008

Merge branch '5008-provide-more-visibility-into-ssl-errors' into 'main'

See merge request isc-projects/bind9!9683

17 months agoProvide more visibility into configuration errors
Mark Andrews [Wed, 18 Sep 2024 05:30:01 +0000 (15:30 +1000)] 
Provide more visibility into configuration errors

by logging SSL_CTX_use_certificate_chain_file and
SSL_CTX_use_PrivateKey_file errors

17 months agofix: test: Allow re-run of mkeys system test
Nicki Křížek [Mon, 25 Nov 2024 14:35:17 +0000 (14:35 +0000)] 
fix: test: Allow re-run of mkeys system test

On some slow systems, the test might intermittently fail due to inherent
timing issues. In our CI, this most often happens in the
system:gcc:8fips:amd64 jobs.

Closes #3098

Merge branch '3098-allow-re-run-of-mkeys-test' into 'main'

See merge request isc-projects/bind9!9732

17 months agoAllow re-run of mkeys system test
Nicki Křížek [Thu, 7 Nov 2024 15:15:54 +0000 (16:15 +0100)] 
Allow re-run of mkeys system test

On some slow systems, the test might intermittently fail due to inherent
timing issues. In our CI, this most often happens in the
system:gcc:8fips:amd64 jobs.

17 months agofix: ci: Fix paths to binaries in cross-version-config-tests job
Michal Nowak [Mon, 25 Nov 2024 12:11:02 +0000 (12:11 +0000)] 
fix: ci: Fix paths to binaries in cross-version-config-tests job

The cross-version-config-tests job has never functioned in CI because
the testing framework changed after the testing was completed. To run
the new "named" binary using the old configurations, paths in the test
framework must be updated to point to the location of the new binaries.

Closes #4977

Merge branch '4977-fix-cross-version-config-tests' into 'main'

See merge request isc-projects/bind9!9702

17 months agoFix paths to binaries in cross-version-config-tests job
Michal Nowak [Wed, 30 Oct 2024 20:15:44 +0000 (21:15 +0100)] 
Fix paths to binaries in cross-version-config-tests job

The cross-version-config-tests job has never functioned in CI because
the testing framework changed after the testing was completed. To run
the new "named" binary using the old configurations, paths in the test
framework must be updated to point to the location of the new binaries.

17 months agonew: usr: add separate query counters for new protocols
Aydın Mercan [Mon, 25 Nov 2024 10:09:26 +0000 (10:09 +0000)] 
new: usr: add separate query counters for new protocols

Add query counters for DoT, DoH, unencrypted DoH and their proxied
counterparts. The new protocols do not update their respective TCP/UDP
transport counter and is now for TCP/UDP over plain 53 only.

Closes #598

Merge branch '598-wishlist-statistics-for-dns-over-tcp-and-tls' into 'main'

See merge request isc-projects/bind9!9585

17 months agodocument protocol query counters in arm
Aydın Mercan [Sun, 24 Nov 2024 16:30:23 +0000 (19:30 +0300)] 
document protocol query counters in arm

ARM was missing the existing QryUDP and QryTCP documentation. Add them
alongside the new protocol counters.

17 months agoadd separate query counters for new protocols
Aydın Mercan [Fri, 4 Oct 2024 10:14:52 +0000 (13:14 +0300)] 
add separate query counters for new protocols

Add query counters for DoT, DoH, unencrypted DoH and their proxied
counterparts. The protocols don't increment TCP/UDP counters anymore
since they aren't the same as plain DNS-over-53.

17 months agowrap ns_nm_socket_type for testing
Evan Hunt [Thu, 10 Oct 2024 06:16:26 +0000 (23:16 -0700)] 
wrap ns_nm_socket_type for testing

The testing ns_client doesn't have a proper nmhandle.

17 months agorem: dev: Remove namedconf port/tls deprecated check on *-source[-v6] options
Colin Vidal [Fri, 22 Nov 2024 18:34:51 +0000 (18:34 +0000)] 
rem: dev: Remove namedconf port/tls deprecated check on *-source[-v6] options

The usage of port and tls arguments in *-source and *-source-v6 named configuration options has been previously removed. Remove various configuration check deprecating usage of those arguments.

Merge branch 'colin/querysource-check-cleanup' into 'main'

See merge request isc-projects/bind9!9738

17 months agoRemove namedconf port/tls deprecated check on *-source[-v6] options
Colin Vidal [Tue, 12 Nov 2024 09:10:12 +0000 (10:10 +0100)] 
Remove namedconf port/tls deprecated check on *-source[-v6] options

The usage of port and tls arguments in *-source and *-source-v6 named
configuration options has been previously removed. Remove
configuration check deprecating usage of those arguments.

17 months agochg: dev: Incrementally apply AXFR transfer
Alessio Podda [Fri, 22 Nov 2024 17:35:48 +0000 (17:35 +0000)] 
chg: dev: Incrementally apply AXFR transfer

Reintroduce logic to apply diffs when the number of pending tuples is
above 128. The previous strategy of accumulating all the tuples and
pushing them at the end leads to excessive memory consumption during
transfer.

This effectively reverts half of e3892805d6

Closes #4986

Merge branch '4986-axfr-chunked-insert' into 'main'

See merge request isc-projects/bind9!9740

17 months agoIncrementally apply AXFR transfer
alessio [Sun, 3 Nov 2024 20:25:15 +0000 (21:25 +0100)] 
Incrementally apply AXFR transfer

Reintroduce logic to apply diffs when the number of pending tuples is
above 128. The previous strategy of accumulating all the tuples and
pushing them at the end leads to excessive memory consumption during
transfer.

This effectively reverts half of e3892805d6

17 months agofix: nil: Fix alpine build by removing the need for LargestIntegralType in time_test
Alessio Podda [Fri, 22 Nov 2024 09:25:08 +0000 (09:25 +0000)] 
fix: nil: Fix alpine build by removing the need for LargestIntegralType in time_test

Fix alpine build by removing the need for `LargestIntegralType` use in `tests/isc/time_test.c`.

Merge branch 'alessio/fix-time-test' into 'main'

See merge request isc-projects/bind9!9758

17 months agoFix alpine build by removing LargestIntegralType in time_test
alessio [Fri, 22 Nov 2024 07:32:19 +0000 (08:32 +0100)] 
Fix alpine build by removing LargestIntegralType in time_test

Avoids using functions that require LargestIntegralType arguments in
time_test to resolve import issues on Alpine Linux. Using size_t instead
wasn't an option due to compatibility issues with 32-bit architectures.

17 months agonew: usr: Enable runtime selection of FIPS mode in dig and delv
Mark Andrews [Fri, 22 Nov 2024 00:12:02 +0000 (00:12 +0000)] 
new: usr: Enable runtime selection of FIPS mode in dig and delv

'dig -F' and 'delv -F' can now be used to select FIPS mode at runtime.

Closes #5046

Merge branch '5046-enable-runtime-selection-of-fips-mode-in-dig' into 'main'

See merge request isc-projects/bind9!9754

17 months agoDelv now supports selecting FIPS mode at runtime
Mark Andrews [Thu, 21 Nov 2024 05:22:51 +0000 (16:22 +1100)] 
Delv now supports selecting FIPS mode at runtime

To enable FIPS mode at runtime use 'delv -F'.  The operating system
must have FIPS support available for this to succeed.  This is on
by default when built with --enable-fips-mode.

17 months agoDig now supports selecting FIPS mode at runtime
Mark Andrews [Wed, 20 Nov 2024 22:46:24 +0000 (09:46 +1100)] 
Dig now supports selecting FIPS mode at runtime

To enable FIPS mode at runtime use 'dig -F'.  The operating system
must have FIPS support available for this to succeed.  This is on
by default when built with --enable-fips-mode.

17 months agofix: nil: Fix build of unit test on 32-bit architecture
Evan Hunt [Thu, 21 Nov 2024 04:31:08 +0000 (04:31 +0000)] 
fix: nil: Fix build of unit test on 32-bit architecture

Fix a unit test build failure on the i686 platform.

Merge branch 'bug/main/unittest-isc-time-32b' into 'main'

See merge request isc-projects/bind9!9753

17 months agoFix build of unit test on 32b architecture
Petr Menšík [Wed, 20 Nov 2024 12:08:54 +0000 (13:08 +0100)] 
Fix build of unit test on 32b architecture

Fixes unittest build failure on i686 platform.

In file included from tests/isc/time_test.c:24:
tests/isc/time_test.c: In function ‘run_test_isc_time_formatISO8601TZms_test’:
tests/isc/time_test.c:284:32: error: passing argument 2 of ‘_assert_in_set’ from incompatible pointer type [-Wincompatible-pointer-types]
  284 |         assert_in_set(buf[23], plus_minus, sizeof(plus_minus));
      |                                ^~~~~~~~~~
      |                                |
      |                                size_t * {aka unsigned int *}
/usr/include/cmocka.h:2369:64: note: expected ‘const long long unsigned int *’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
 2369 |     const LargestIntegralType value, const LargestIntegralType values[],

17 months agochg: nil: Re-split format strings lib/ns/update.c
Mark Andrews [Thu, 21 Nov 2024 04:21:34 +0000 (04:21 +0000)] 
chg: nil: Re-split format strings lib/ns/update.c

Re-split format strings that had been poorly split by multiple
clang-format runs using different versions of clang-format.

Closes #5043

Merge branch '5043-re-split-format-strings-lib-ns-update-c' into 'main'

See merge request isc-projects/bind9!9752

18 months agoRe-split format strings
Mark Andrews [Thu, 14 Nov 2024 01:34:11 +0000 (12:34 +1100)] 
Re-split format strings

Re-split format strings that had been poorly split by multiple
clang-format runs using different versions of clang-format.

18 months agochg: dev: Add two new clang-format options that help with code formatting
Ondřej Surý [Tue, 19 Nov 2024 13:21:40 +0000 (13:21 +0000)] 
chg: dev: Add two new clang-format options that help with code formatting

* Add new clang-format option to remove redundant semicolons
* Add new clang-format option to remove redundant parentheses

Merge branch 'ondrej/code-style-2024' into 'main'

See merge request isc-projects/bind9!9749

18 months agoIgnore clang-format reformatting commit
Ondřej Surý [Tue, 19 Nov 2024 09:52:38 +0000 (10:52 +0100)] 
Ignore clang-format reformatting commit

18 months agoRemove redundant semicolons after the closing braces of functions
Ondřej Surý [Tue, 19 Nov 2024 09:41:22 +0000 (10:41 +0100)] 
Remove redundant semicolons after the closing braces of functions

18 months agoAdd new clang-format option to remove redundant semicolons
Ondřej Surý [Tue, 19 Nov 2024 09:39:47 +0000 (10:39 +0100)] 
Add new clang-format option to remove redundant semicolons

The new clang-format options (since clang-format 16) removes semicolons
after the closing braces of functions and constructors/destructors.

18 months agoRemove redundant parentheses from the return statement
Ondřej Surý [Tue, 19 Nov 2024 09:38:03 +0000 (10:38 +0100)] 
Remove redundant parentheses from the return statement

18 months agoAdd new clang-format option to remove redundant parentheses
Ondřej Surý [Tue, 19 Nov 2024 09:35:40 +0000 (10:35 +0100)] 
Add new clang-format option to remove redundant parentheses

The new clang-format option (since 17) can remove redundant parentheses
in the return statement (with configuration value ReturnStatement).

18 months agonew: usr: Update bind.keys with the new 2025 IANA root key
Evan Hunt [Fri, 15 Nov 2024 22:28:38 +0000 (22:28 +0000)] 
new: usr: Update bind.keys with the new 2025 IANA root key

Add an 'initial-ds' entry to bind.keys for the new root key, ID
38696, which is scheduled for publication in January 2025.

Closes #4896

Merge branch '4896-update-bind-keys' into 'main'

See merge request isc-projects/bind9!9422

18 months agoAdd the DS for the new root key (38696)
Evan Hunt [Mon, 26 Aug 2024 19:13:09 +0000 (12:13 -0700)] 
Add the DS for the new root key (38696)

Add an 'initial-ds' entry to bind.keys for the new root key, ID
38696, scheduled for publication in January 2025.

18 months agochg: doc: Move Known Issues to BIND9 wiki
Petr Špaček [Fri, 15 Nov 2024 13:56:23 +0000 (13:56 +0000)] 
chg: doc: Move Known Issues to BIND9 wiki

Merge branch 'nicki/move-known-issues-to-wiki' into 'main'

See merge request isc-projects/bind9!9731

18 months agoMove Known Issues to BIND9 wiki
Nicki Křížek [Thu, 7 Nov 2024 14:01:40 +0000 (15:01 +0100)] 
Move Known Issues to BIND9 wiki

Keeping the Known Issues as part of the rendered docs has the issue that
the list can't be updated on the official docs website until the next
release. This is unpractical is a high-priority issue is discovered
shortly after a release. Keep the Known Issues in wiki and simply link
to the list from the rendered docs. The wiki article can be updated at
any time as needed.

18 months agofix: nil: Add REQUIREs to dns_xfrin_create()
Petr Špaček [Fri, 15 Nov 2024 13:21:47 +0000 (13:21 +0000)] 
fix: nil: Add REQUIREs to dns_xfrin_create()

Two `REQUIRE` assertions were accidentally deleted by the
dbf230650f74d40fc1e1b45e1445d174802ede1b commit earlier.
Bring them back.

Merge branch 'aram/dns_xfrin_create-bring-back-requires' into 'main'

See merge request isc-projects/bind9!9729

18 months agoAdd REQUIREs to dns_xfrin_create()
Aram Sargsyan [Thu, 7 Nov 2024 11:44:13 +0000 (11:44 +0000)] 
Add REQUIREs to dns_xfrin_create()

Two REQUIRE assertions were accidentally deleted by the
dbf230650f74d40fc1e1b45e1445d174802ede1b commit earlier.
Bring them back.