]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
4 years agoSplit chapter Advanced DNS Features in the ARM into chapters 5, 6, 7
Ron Aitchison [Tue, 22 Mar 2022 00:38:26 +0000 (00:38 +0000)] 
Split chapter Advanced DNS Features in the ARM into chapters 5, 6, 7

4 years agoSplit Configuration chapter in the ARM into chapters 3 and 4
Ron Aitchison [Mon, 21 Mar 2022 22:13:29 +0000 (22:13 +0000)] 
Split Configuration chapter in the ARM into chapters 3 and 4

4 years agoAdd new ARM section Installing BIND 9
Ron Aitchison [Mon, 21 Mar 2022 21:41:50 +0000 (21:41 +0000)] 
Add new ARM section Installing BIND 9

4 years agoRewrite Introduction chapters of the ARM
Ron Aitchison [Sun, 20 Mar 2022 18:41:11 +0000 (18:41 +0000)] 
Rewrite Introduction chapters of the ARM

4 years agoLicense PNG and DIA images in the ARM under MPL-2.0 as usual
Petr Špaček [Thu, 21 Apr 2022 16:10:19 +0000 (18:10 +0200)] 
License PNG and DIA images in the ARM under MPL-2.0 as usual

4 years agoRemove build from chapter 2 and move it to the end of ARM
Petr Špaček [Thu, 21 Apr 2022 06:14:42 +0000 (08:14 +0200)] 
Remove build from chapter 2 and move it to the end of ARM

4 years agoChange title and add extra link to Resource Requirements in the ARM
Ron Aitchison [Thu, 31 Mar 2022 12:51:57 +0000 (12:51 +0000)] 
Change title and add extra link to Resource Requirements in the ARM

4 years agoAdd link anchors into Configuration Reference section of the ARM
Ron Aitchison [Sat, 2 Apr 2022 01:06:19 +0000 (01:06 +0000)] 
Add link anchors into Configuration Reference section of the ARM

4 years agoRestructure includes for ARM chapters 1 (Intro) and 2 (Requirements)
Petr Špaček [Wed, 16 Mar 2022 09:49:17 +0000 (10:49 +0100)] 
Restructure includes for ARM chapters 1 (Intro) and 2 (Requirements)

We have had perpetual problem with Sphinx implicitly double-including
files. To avoid that problem all files with name suffix .inc.rst are now
ignored by Sphinx, and writter can conveniently include them without
modifying conf.py for each and every file.

4 years agoMerge branch 'mnowak/set-up-version-and-release-notes-for-bind-9.19.2' into 'main'
Michal Nowak [Wed, 11 May 2022 08:49:33 +0000 (08:49 +0000)] 
Merge branch 'mnowak/set-up-version-and-release-notes-for-bind-9.19.2' into 'main'

Set up version and release notes for BIND 9.19.2

See merge request isc-projects/bind9!6281

4 years agoSet up release notes for BIND 9.19.2
Michal Nowak [Tue, 12 Apr 2022 11:41:18 +0000 (13:41 +0200)] 
Set up release notes for BIND 9.19.2

4 years agoUpdate BIND version to 9.19.2-dev
Michal Nowak [Wed, 11 May 2022 08:39:00 +0000 (10:39 +0200)] 
Update BIND version to 9.19.2-dev

4 years agoUpdate BIND 9 version for release v9.19.1
Michal Nowak [Mon, 9 May 2022 09:01:20 +0000 (11:01 +0200)] 
Update BIND 9 version for release

4 years agoAdd a CHANGES marker
Michal Nowak [Mon, 9 May 2022 08:50:09 +0000 (10:50 +0200)] 
Add a CHANGES marker

4 years agoMerge branch 'mnowak/prepare-documentation-for-bind-9.19.1' into 'security-main'
Michal Nowak [Mon, 9 May 2022 08:41:49 +0000 (08:41 +0000)] 
Merge branch 'mnowak/prepare-documentation-for-bind-9.19.1' into 'security-main'

Prepare documentation for BIND 9.19.1

See merge request isc-private/bind9!402

4 years agoReorder release notes
Michal Nowak [Mon, 9 May 2022 07:44:59 +0000 (09:44 +0200)] 
Reorder release notes

4 years agoTweak and reword release notes
Michal Nowak [Thu, 5 May 2022 09:43:04 +0000 (11:43 +0200)] 
Tweak and reword release notes

4 years agoPrepare release notes for BIND 9.19.1
Michal Nowak [Thu, 5 May 2022 08:57:16 +0000 (10:57 +0200)] 
Prepare release notes for BIND 9.19.1

4 years agoMerge branch '3216-sslyze-crash-fix' into 'security-main'
Michal Nowak [Thu, 5 May 2022 08:45:59 +0000 (08:45 +0000)] 
Merge branch '3216-sslyze-crash-fix' into 'security-main'

[CVE-2022-1183] Fix a crash by avoiding destroying TLS stream socket too early

See merge request isc-private/bind9!400

4 years agoAdd release note entry for [GL #3216]
Artem Boldariev [Thu, 24 Mar 2022 11:18:39 +0000 (13:18 +0200)] 
Add release note entry for [GL #3216]

4 years agoAdd CHANGES entry for [GL #3216]
Artem Boldariev [Wed, 23 Mar 2022 15:06:34 +0000 (17:06 +0200)] 
Add CHANGES entry for [GL #3216]

4 years agoFix a crash by avoiding destroying TLS stream socket too early
Artem Boldariev [Tue, 22 Mar 2022 18:24:46 +0000 (20:24 +0200)] 
Fix a crash by avoiding destroying TLS stream socket too early

This commit fixes a crash in generic TLS stream code, which could be
reproduced during some runs of the 'sslyze' tool.

The intention of this commit is twofold.

Firstly, it ensures that the TLS socket object cannot be destroyed too
early. Now it is being deleted alongside the underlying TCP socket
object.

Secondly, it ensures that the TLS socket object cannot be destroyed as
a result of calling 'tls_do_bio()' (the primary function which
performs encryption/decryption during the IO) as the code did not
expect that. This code path is fixed now.

4 years agoMerge branch 'mnowak/add-placeholder-for-issue-3216' into 'main'
Michal Nowak [Wed, 4 May 2022 17:35:43 +0000 (17:35 +0000)] 
Merge branch 'mnowak/add-placeholder-for-issue-3216' into 'main'

Add placeholder entry for [GL #3216]

See merge request isc-projects/bind9!6264

4 years agoAdd placeholder entry for [GL #3216]
Michal Nowak [Fri, 29 Apr 2022 11:13:10 +0000 (13:13 +0200)] 
Add placeholder entry for [GL #3216]

4 years agoMerge branch '3232-rpz-rpz-nsip-rules-seem-not-to-understand-stub-and-static-stub...
Mark Andrews [Wed, 4 May 2022 13:51:07 +0000 (13:51 +0000)] 
Merge branch '3232-rpz-rpz-nsip-rules-seem-not-to-understand-stub-and-static-stub-zones-and-don-t-handle' into 'main'

Resolve "RPZ rpz-nsip rules seem not to understand stub and static-stub zones and don't handle DNS_R_GLUE result well ..."

Closes #3232

See merge request isc-projects/bind9!6037

4 years agoAdd CHANGES entry for [GL #3232]
Mark Andrews [Tue, 29 Mar 2022 03:21:40 +0000 (14:21 +1100)] 
Add CHANGES entry for [GL #3232]

4 years agoAllow DNS_RPZ_POLICY_ERROR to be converted to a string
Mark Andrews [Wed, 4 May 2022 07:03:15 +0000 (17:03 +1000)] 
Allow DNS_RPZ_POLICY_ERROR to be converted to a string

4 years agoCheck the cache as well when glue NS are returned processing RPZ
Mark Andrews [Wed, 4 May 2022 07:08:27 +0000 (17:08 +1000)] 
Check the cache as well when glue NS are returned processing RPZ

4 years agoProcess learned records as well as glue
Mark Andrews [Wed, 4 May 2022 05:40:53 +0000 (15:40 +1000)] 
Process learned records as well as glue

4 years agoProcess the delegating NS RRset when checking rpz rules
Mark Andrews [Wed, 4 May 2022 04:45:19 +0000 (14:45 +1000)] 
Process the delegating NS RRset when checking rpz rules

4 years agoAdd test cases using static and static-stub zones
Mark Andrews [Mon, 28 Mar 2022 05:36:03 +0000 (16:36 +1100)] 
Add test cases using static and static-stub zones

RPZ NSIP and NSDNAME checks were failing with "unrecognized NS
rpz_rrset_find() failed: glue" when static or static-stub zones
where used to resolve the query name.

Add tests using stub and static-stub zones that are expected to
be filtered and not-filtered against NSIP and NSDNAME rules.

stub and static-stub queries are expected to be filtered

stub-nomatch and static-stub-nomatch queries are expected to be passed

4 years agoMerge branch 'ondrej-add-missing-void-in-named_config_default' into 'main'
Ondřej Surý [Wed, 4 May 2022 11:05:26 +0000 (11:05 +0000)] 
Merge branch 'ondrej-add-missing-void-in-named_config_default' into 'main'

Add missing void in named_config_getdefault() definition

See merge request isc-projects/bind9!6259

4 years agoAdd missing void in named_config_getdefault() definition
Ondřej Surý [Wed, 4 May 2022 10:59:04 +0000 (12:59 +0200)] 
Add missing void in named_config_getdefault() definition

The named_config_getdefault() was missing void in the function
definition.  This broke clang-15 that didn't match the declaration that
had the void in the argument with the definition that hadn't.

4 years agoMerge branch '3321-libisc-so-undefined-reference-to-uv_os_getenv-on-stretch' into...
Ondřej Surý [Wed, 4 May 2022 11:01:07 +0000 (11:01 +0000)] 
Merge branch '3321-libisc-so-undefined-reference-to-uv_os_getenv-on-stretch' into 'main'

Restore the implementation of uv_os_getenv() shim

Closes #3321

See merge request isc-projects/bind9!6258

4 years agoRestore the implementation of uv_os_getenv() shim
Ondřej Surý [Wed, 4 May 2022 10:31:46 +0000 (12:31 +0200)] 
Restore the implementation of uv_os_getenv() shim

Somewhere in the move from netmgr/uv-compat.h to uv.c, the
uv_os_getenv() implementation was lost in the process.  Restore the
implementation, so we can support Debian stretch for couple more months.

4 years agoMerge branch 'ondrej-use--Wl,--export-dynamic' into 'main'
Ondřej Surý [Tue, 3 May 2022 19:13:56 +0000 (19:13 +0000)] 
Merge branch 'ondrej-use--Wl,--export-dynamic' into 'main'

Add -Wl,--export-dynamic to AM_LDFLAGS

See merge request isc-projects/bind9!6196

4 years agoAdd -Wl,--export-dynamic to standard LDFLAGS if supported
Ondřej Surý [Wed, 27 Apr 2022 14:41:27 +0000 (16:41 +0200)] 
Add -Wl,--export-dynamic to standard LDFLAGS if supported

From the ld man page:

  When creating a dynamically linked executable, using the -E option or
  the --export-dynamic option causes the linker to add all symbols to
  the dynamic symbol table.  The dynamic symbol table is the set of
  symbols which are visible from dynamic objects at run time.

This should allow the backtrace(3) to fully resolve the symbols when
creating backtrace on an assertion failure.

4 years agoMerge branch 'aram/catz-schema-v2-release-note' into 'main'
Arаm Sаrgsyаn [Tue, 3 May 2022 17:05:55 +0000 (17:05 +0000)] 
Merge branch 'aram/catz-schema-v2-release-note' into 'main'

Add release note for catalog zones schema version 2 support

See merge request isc-projects/bind9!6248

4 years agoAdd release note for catalog zones schema version 2 support
Aram Sargsyan [Tue, 3 May 2022 09:28:26 +0000 (09:28 +0000)] 
Add release note for catalog zones schema version 2 support

4 years agoMerge branch 'artem-rename-tls-hostname-to-tls-remote-hostname' into 'main'
Petr Špaček [Tue, 3 May 2022 14:31:14 +0000 (14:31 +0000)] 
Merge branch 'artem-rename-tls-hostname-to-tls-remote-hostname' into 'main'

Rename "hostname" to "remote-hostname" within "tls"

See merge request isc-projects/bind9!6252

4 years agoRename "hostname" to "remote-hostname" within "tls"
Artem Boldariev [Tue, 3 May 2022 13:51:33 +0000 (16:51 +0300)] 
Rename "hostname" to "remote-hostname" within "tls"

This commit renames "hostname" to "remote-hostname" within "tls"
options to avoid semantic conflicts with generic "options"
configuration.

4 years agoMerge branch 'fanf-string-hpux' into 'main'
Tony Finch [Tue, 3 May 2022 12:39:40 +0000 (12:39 +0000)] 
Merge branch 'fanf-string-hpux' into 'main'

Clean up #include <isc/string.h>

See merge request isc-projects/bind9!6220

4 years agoClean up #include <isc/string.h>
Tony Finch [Mon, 11 Apr 2022 14:53:34 +0000 (15:53 +0100)] 
Clean up #include <isc/string.h>

It isn't just about HP/UX any more.

4 years agoMerge branch 'fanf-adb-cleanup' into 'main'
Tony Finch [Tue, 3 May 2022 12:37:38 +0000 (12:37 +0000)] 
Merge branch 'fanf-adb-cleanup' into 'main'

A couple of small ADB cleanups

See merge request isc-projects/bind9!6219

4 years agoCHANGES entry for [GL !6219]
Tony Finch [Thu, 28 Apr 2022 14:02:15 +0000 (15:02 +0100)] 
CHANGES entry for [GL !6219]

[cleanup] Reduce struct padding in ADB address entries, and use a
binary hash function to find addresses.

4 years agoUse a case-sensitive hash table for ADB address entries
Tony Finch [Wed, 6 Apr 2022 17:52:18 +0000 (18:52 +0100)] 
Use a case-sensitive hash table for ADB address entries

The key for the ADB `entrybuckets` hash table is a binary `struct
isc_sockaddr` so it seems wrong to use a case-insensitive hash.

4 years agoReduce padding in ADB address entries
Tony Finch [Wed, 6 Apr 2022 17:37:54 +0000 (18:37 +0100)] 
Reduce padding in ADB address entries

Saves a couple of bytes in `struct dns_adbentry`.

4 years agoMerge branch 'artem-update-arm-tls-warnings' into 'main'
Artem Boldariev [Tue, 3 May 2022 11:17:29 +0000 (11:17 +0000)] 
Merge branch 'artem-update-arm-tls-warnings' into 'main'

Update TLS-related warnings within ARM

See merge request isc-projects/bind9!6249

4 years agoUpdate TLS-related warnings within ARM
Artem Boldariev [Tue, 3 May 2022 10:19:26 +0000 (13:19 +0300)] 
Update TLS-related warnings within ARM

This commit updates TLS-related warnings so that the fact that Strict
and Mutual TLS are implemented is taken into consideration.

4 years agoMerge branch 'fanf-rdataslab-cpp' into 'main'
Tony Finch [Tue, 3 May 2022 09:30:48 +0000 (09:30 +0000)] 
Merge branch 'fanf-rdataslab-cpp' into 'main'

Two small preprocessor cleanups in rdataslab.c

See merge request isc-projects/bind9!6221

4 years agoTidy up some DNS_RDATASET_FIXED conditional compilation
Tony Finch [Mon, 11 Apr 2022 11:34:47 +0000 (12:34 +0100)] 
Tidy up some DNS_RDATASET_FIXED conditional compilation

Add a #if to make it clear that struct xrdata->order is only used
in DNS_RDATASET_FIXED mode.

Re-order some variable declarations to merge two #if blocks into one.

4 years agoDitch a couple of unused `#define`s
Tony Finch [Fri, 8 Apr 2022 15:47:02 +0000 (16:47 +0100)] 
Ditch a couple of unused `#define`s

These were added by mistake in CHANGES 2349 and were not removed when
the mistake was corrected.

4 years agoMerge branch 'ondrej-move-uv-compat.c-to-uv.c' into 'main'
Ondřej Surý [Tue, 3 May 2022 08:24:41 +0000 (08:24 +0000)] 
Merge branch 'ondrej-move-uv-compat.c-to-uv.c' into 'main'

Move netmgr/uv-compat.h to <isc/uv.h>

See merge request isc-projects/bind9!6199

4 years agoAdd CHANGES note for [GL !6199]
Ondřej Surý [Tue, 3 May 2022 08:04:23 +0000 (10:04 +0200)] 
Add CHANGES note for [GL !6199]

4 years agoMove netmgr/uv-compat.h to <isc/uv.h>
Ondřej Surý [Wed, 27 Apr 2022 15:41:47 +0000 (17:41 +0200)] 
Move netmgr/uv-compat.h to <isc/uv.h>

As we are going to use libuv outside of the netmgr, we need the shims to
be readily available for the rest of the codebase.

Move the "netmgr/uv-compat.h" to <isc/uv.h> and netmgr/uv-compat.c to
uv.c, and as a rule of thumb, the users of libuv should include
<isc/uv.h> instead of <uv.h> directly.

Additionally, merge netmgr/uverr2result.c into uv.c and rename the
single function from isc__nm_uverr2result() to isc_uverr2result().

4 years agoMove socket related functions to netmgr/socket.c
Ondřej Surý [Wed, 27 Apr 2022 15:41:47 +0000 (17:41 +0200)] 
Move socket related functions to netmgr/socket.c

Move the netmgr socket related functions from netmgr/netmgr.c and
netmgr/uv-compat.c to netmgr/socket.c, so they are all present all in
the same place.  Adjust the names of couple interal functions
accordingly.

4 years agoMerge branch 'fanf-rbt64-gone' into 'main'
Mark Andrews [Tue, 3 May 2022 01:57:26 +0000 (01:57 +0000)] 
Merge branch 'fanf-rbt64-gone' into 'main'

Remove remaining checks for rbt64

See merge request isc-projects/bind9!6218

4 years agoRemove remaining checks for rbt64
Tony Finch [Wed, 6 Apr 2022 10:39:27 +0000 (11:39 +0100)] 
Remove remaining checks for rbt64

These checks have been redundant since the `rbtdb64` implementation
was removed in 2018 (commit 784087390ae8). It isn't possible to create
a zone that uses `database "rbt64"` now that the `rbt64` database
implementation has been removed, so the checks will always fail.

4 years agoMerge branch 'fanf-log-no-newlines' into 'main'
Tony Finch [Mon, 2 May 2022 23:37:53 +0000 (23:37 +0000)] 
Merge branch 'fanf-log-no-newlines' into 'main'

Remove several superfluous newlines in log messages

See merge request isc-projects/bind9!6217

4 years agoRemove several superfluous newlines in log messages
Tony Finch [Tue, 5 Apr 2022 12:16:00 +0000 (13:16 +0100)] 
Remove several superfluous newlines in log messages

4 years agoMerge branch 'fanf-zt-comments' into 'main'
Tony Finch [Mon, 2 May 2022 22:39:30 +0000 (22:39 +0000)] 
Merge branch 'fanf-zt-comments' into 'main'

Clarify a few zonetree API comments

See merge request isc-projects/bind9!6216

4 years agoClarify a few zonetree API comments
Tony Finch [Tue, 5 Apr 2022 09:09:38 +0000 (10:09 +0100)] 
Clarify a few zonetree API comments

Replace a load-bearing semicolon with some more explanatory words,
and correct a couple of parameter names.

4 years agoMerge branch 'fanf-zoneverify-boolinit' into 'main'
Tony Finch [Mon, 2 May 2022 21:48:05 +0000 (21:48 +0000)] 
Merge branch 'fanf-zoneverify-boolinit' into 'main'

Eliminate a variable that can confuse the compiler

See merge request isc-projects/bind9!6212

4 years agoEliminate a variable that can confuse the compiler
Tony Finch [Thu, 28 Apr 2022 11:01:28 +0000 (12:01 +0100)] 
Eliminate a variable that can confuse the compiler

Sometimes the compiler is unable to see that the `empty` variable was
initialized by the call to is_empty(), which can cause a build
failure; I encountered this with CFLAGS=-Os. So get rid of it and use
the result from `is_empty()` instead.

4 years agoMerge branch 'fanf-unused-rbtnode-rpz' into 'main'
Tony Finch [Mon, 2 May 2022 20:09:36 +0000 (20:09 +0000)] 
Merge branch 'fanf-unused-rbtnode-rpz' into 'main'

Remove unused rbtnode->rpz flag

See merge request isc-projects/bind9!6215

4 years agoRemove unused rbtnode->rpz flag
Tony Finch [Fri, 1 Apr 2022 17:22:13 +0000 (18:22 +0100)] 
Remove unused rbtnode->rpz flag

The rbtnode->rpz flag was left behind when rbt and rpz were disentangled
by CHANGES #4576. Removing it makes the comment above correct again.

This reduces the flags so they fit in a 32 bit word again. On 64
bit systems there is still padding so it doesn't change the size
of an rbtnode. On 32 bit systems it reduces an rbtnode by 4 bytes.

4 years agoMerge branch 'pspacek/fix-rtd-file-path-substitution' into 'main'
Petr Špaček [Mon, 2 May 2022 15:11:12 +0000 (15:11 +0000)] 
Merge branch 'pspacek/fix-rtd-file-path-substitution' into 'main'

Fix default file path substitution in the ARM and man pages

See merge request isc-projects/bind9!6189

4 years agoFix default file path substitution in the ARM and man pages
Petr Špaček [Tue, 26 Apr 2022 16:23:38 +0000 (18:23 +0200)] 
Fix default file path substitution in the ARM and man pages

Default paths were not substituted correctly when Python-only build was
used, i.e. it affected only ReadTheDocs. The incorrect rst_epilog was
overriden by Makefile for all "ordinary" builds.

This error was introduced by 3f78c6053947900b5bf5a06483c5dac42f4882c7.

Related: !5815

4 years agoMerge branch '3266-rndc-system-test-fails-due-to-rate-limit-of-built-in-_bind-view...
Mark Andrews [Mon, 2 May 2022 14:16:02 +0000 (14:16 +0000)] 
Merge branch '3266-rndc-system-test-fails-due-to-rate-limit-of-built-in-_bind-view' into 'main'

improve forensics in rndc system test

See merge request isc-projects/bind9!6098

4 years agoImprove forensics for the querylog section of rndc system test
Mark Andrews [Thu, 7 Apr 2022 07:14:54 +0000 (17:14 +1000)] 
Improve forensics for the querylog section of rndc system test

The dig commands appear to be failing unexpectedly on some platforms
when rate limiting kicks in and the response is dropped.  Correct
behaviour should be for dig to retry the query.  Set +qr and capture
stdout and stderr of each of the dig commands involved.

4 years agoMerge branch '3317-cid-352554-1-of-1-dereference-before-null-check-reverse_inull...
Mark Andrews [Mon, 2 May 2022 13:56:57 +0000 (13:56 +0000)] 
Merge branch '3317-cid-352554-1-of-1-dereference-before-null-check-reverse_inull' into 'main'

Resolve "CID 352554 (#1 of 1): Dereference before null check (REVERSE_INULL)"

Closes #3317

See merge request isc-projects/bind9!6239

4 years agoRemove unnecessary NULL pointer check
Mark Andrews [Mon, 2 May 2022 02:12:36 +0000 (12:12 +1000)] 
Remove unnecessary NULL pointer check

    3034                next = ISC_LIST_NEXT(query, link);
    3035        } else {
    3036                next = NULL;
    3037        }

    CID 352554 (#1 of 1): Dereference before null check (REVERSE_INULL)
    check_after_deref: Null-checking connectquery suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
    3038        if (connectquery != NULL) {
    3039                query_detach(&connectquery);
    3040        }

4 years agoMerge branch 'bug/main/dlz-modules' into 'main'
Mark Andrews [Mon, 2 May 2022 05:04:34 +0000 (05:04 +0000)] 
Merge branch 'bug/main/dlz-modules' into 'main'

Fix few warnings in DLZ modules

See merge request isc-projects/bind9!5778

4 years agoAdd CHANGES entry for [GL !5778]
Mark Andrews [Mon, 2 May 2022 04:46:36 +0000 (14:46 +1000)] 
Add CHANGES entry for [GL !5778]

4 years agoFix few warnings in DLZ modules
Petr Mensik [Fri, 28 Jan 2022 22:53:07 +0000 (23:53 +0100)] 
Fix few warnings in DLZ modules

Also make similar change to ldap module. Change few public functions in
module to dlz_<module> prefix, so they cannot collide with used library.

4 years agoMerge branch '3318-typo-in-rndc-man-page' into 'main'
Mark Andrews [Mon, 2 May 2022 02:58:36 +0000 (02:58 +0000)] 
Merge branch '3318-typo-in-rndc-man-page' into 'main'

Resolve "typo in rndc man page"

Closes #3318

See merge request isc-projects/bind9!6240

4 years agoFix typo, withdraw should be withdrawn
Mark Andrews [Mon, 2 May 2022 02:50:46 +0000 (12:50 +1000)] 
Fix typo, withdraw should be withdrawn

4 years agoMerge branch 'matthijs-kasp-system-test-failure' into 'main'
Matthijs Mekking [Fri, 29 Apr 2022 11:56:30 +0000 (11:56 +0000)] 
Merge branch 'matthijs-kasp-system-test-failure' into 'main'

Fix kasp system test failures

See merge request isc-projects/bind9!6223

4 years agoFix a kasp system test bug
Matthijs Mekking [Thu, 28 Apr 2022 14:45:33 +0000 (16:45 +0200)] 
Fix a kasp system test bug

In '_check_apex_dnskey' we check for each key (KEY1 to KEY4) if they
are present in the DNSKEY RRset if they should be.

However, we only grep the dig output for the first seven fields (owner,
ttl, class, type, flags, protocol, algorithm). This can be the same
for different keys.

For example, KEY1 may be KSK predecessor and KEY2 a KSK successor,
both DNSKEY records for these keys are the same up to the public key
field. This can cause test failures if KEY1 needs to be present, but
KEY2 not, because when grepping for KEY2 we will falsely detect the
key to be present (because the grep matches KEY1).

Fix the function by grepping looking for the first seven fields in the
corresponding key file and retrieve the public key part. Grep for this
in the dig output.

4 years agoMinor fixes in kasp system test
Matthijs Mekking [Thu, 28 Apr 2022 10:58:38 +0000 (12:58 +0200)] 
Minor fixes in kasp system test

Fix two typos and two grep calls.

4 years agoMerge branch '3278-placeholder' into 'main'
Arаm Sаrgsyаn [Fri, 29 Apr 2022 08:59:50 +0000 (08:59 +0000)] 
Merge branch '3278-placeholder' into 'main'

Add placeholder for [GL #3278]

See merge request isc-projects/bind9!6234

4 years agoAdd placeholder for [GL #3278]
Aram Sargsyan [Fri, 29 Apr 2022 08:44:15 +0000 (08:44 +0000)] 
Add placeholder for [GL #3278]

4 years agoMerge branch 'feature/main/default-config-print' into 'main'
Petr Špaček [Fri, 29 Apr 2022 08:06:43 +0000 (08:06 +0000)] 
Merge branch 'feature/main/default-config-print' into 'main'

Export built-in default configuration for named binary

See merge request isc-projects/bind9!6016

4 years agoExport built-in default configuration for named binary
Petr Menšík [Wed, 23 Mar 2022 11:52:33 +0000 (12:52 +0100)] 
Export built-in default configuration for named binary

It might be useful to display built-in configuration with all its
values. It should make it easier to test what default values has changed
in a new release.

Related: #1326

4 years agoMerge branch '3241-cid-351290-control-flow-issues-deadcode' into 'main'
Mark Andrews [Fri, 29 Apr 2022 04:53:49 +0000 (04:53 +0000)] 
Merge branch '3241-cid-351290-control-flow-issues-deadcode' into 'main'

Resolve "CID 351290:  Control flow issues  (DEADCODE)"

Closes #3241

See merge request isc-projects/bind9!6232

4 years agoRemove dead code, result cannot be ISC_R_SUSPEND
Mark Andrews [Fri, 29 Apr 2022 02:25:25 +0000 (12:25 +1000)] 
Remove dead code, result cannot be ISC_R_SUSPEND

    *** CID 351290:  Control flow issues  (DEADCODE)
    /lib/dns/client.c: 1027 in dns_client_resolve()
    1021      if (!client->readydone) {
    1022      WAIT(&client->ready, &client->readylock);
    1023      }
    1024      UNLOCK(&client->readylock);
    1025
    1026      LOCK(&resarg->lock);
    >>>     CID 351290:  Control flow issues  (DEADCODE)
    >>>     Execution cannot reach the expression "result == ISC_R_SUSPEND" inside this statement: "if (result == ISC_R_SUCCESS...".
    1027      if (result == ISC_R_SUCCESS || result == ISC_R_SUSPEND) {
    1028      result = resarg->result;
    1029      }
    1030      if (result != ISC_R_SUCCESS && resarg->vresult != ISC_R_SUCCESS) {
    1031      /*
    1032       * If this lookup failed due to some error in DNSSEC

4 years agoMerge branch 'bug/main/new-zones-dir-null' into 'main'
Mark Andrews [Fri, 29 Apr 2022 01:42:02 +0000 (01:42 +0000)] 
Merge branch 'bug/main/new-zones-dir-null' into 'main'

Assorted coverity fixes

See merge request isc-projects/bind9!5735

4 years agoAdditional safety check for negative array index
Petr Menšík [Wed, 19 Jan 2022 16:05:00 +0000 (17:05 +0100)] 
Additional safety check for negative array index

inet_ntop result should always protect against empty string accepted
without an error. Make additional check to satisfy coverity scans.

4 years agoInitialize printed buffer
Petr Menšík [Wed, 19 Jan 2022 13:47:13 +0000 (14:47 +0100)] 
Initialize printed buffer

- var_decl: Declaring variable "tbuf" without initializer
- assign: Assigning: "target.base" = "tbuf", which points to
  uninitialized data
- assign: Assigning: "r.base" = "target.base", which points to
  uninitialized data

I expect it would correctly initialize length always. Add simple
initialization to silent coverity.

4 years agoEnsure diff variable is not read uninitialized
Petr Menšík [Wed, 19 Jan 2022 12:35:32 +0000 (13:35 +0100)] 
Ensure diff variable is not read uninitialized

Coverity detected issues:
- var_decl: Declaring variable "diff" without initializer.
- uninit_use_in_call: Using uninitialized value "diff.tuples.head" when
  calling "dns_diff_clear".

4 years agoDon't test new-zones-directory argument validity
Petr Menšík [Tue, 18 Jan 2022 11:46:22 +0000 (12:46 +0100)] 
Don't test new-zones-directory argument validity

Parser ensures new-zones-directory has qstring parameter before it can
reach this place. dir == NULL then should never happen on any
configuration. Replace silent check with insist.

4 years agoMerge branch '3306-undefined-macros-in-contrib-dlz-modules-wildcard-dlz_wildcard_dyna...
Mark Andrews [Fri, 29 Apr 2022 00:51:09 +0000 (00:51 +0000)] 
Merge branch '3306-undefined-macros-in-contrib-dlz-modules-wildcard-dlz_wildcard_dynamic-c' into 'main'

Resolve "Undefined macros in contrib/dlz/modules/wildcard/dlz_wildcard_dynamic.c"

Closes #3306

See merge request isc-projects/bind9!6203

4 years agoAdd CHANGES note for [GL #3306]
Mark Andrews [Wed, 27 Apr 2022 21:42:51 +0000 (07:42 +1000)] 
Add CHANGES note for [GL #3306]

4 years agoDefine local instances of FALLTHROUGH and UNREACHABLE
Mark Andrews [Wed, 27 Apr 2022 20:56:56 +0000 (06:56 +1000)] 
Define local instances of FALLTHROUGH and UNREACHABLE

FALLTHOUGH is a copy of how it is defined in <isc/util.h>

UNREACHABLE follows the model used in MacOS /usr/include/c++/v1/cstdlib
to determine if __builtin_ureachable is available

4 years agoMerge branch '3296-check-the-algorithm-name-oid-for-privatedns-and-privateoid-signatu...
Mark Andrews [Thu, 28 Apr 2022 23:32:14 +0000 (23:32 +0000)] 
Merge branch '3296-check-the-algorithm-name-oid-for-privatedns-and-privateoid-signatures' into 'main'

Resolve "Check the algorithm name / oid for PRIVATEDNS and PRIVATEOID signatures."

Closes #3296

See merge request isc-projects/bind9!6149

4 years agoAdd release note entry for [GL #3296]
Mark Andrews [Thu, 21 Apr 2022 14:42:18 +0000 (00:42 +1000)] 
Add release note entry for [GL #3296]

4 years agoAdd CHANGES entry for [GL #3296]
Mark Andrews [Thu, 21 Apr 2022 10:00:37 +0000 (20:00 +1000)] 
Add CHANGES entry for [GL #3296]

4 years agoCheck that SIG and RRSIG records for private algorithms are valid
Mark Andrews [Thu, 21 Apr 2022 09:49:29 +0000 (19:49 +1000)] 
Check that SIG and RRSIG records for private algorithms are valid

SIG and RRSIG records for private algorithms are supposed to contain
the name / OID of the algorithm used to generate them at the start
of the signature field.

4 years agoMerge branch '2813-build-named-with-dlz-is-broken-with-MariaDB-10' into 'main'
Ondřej Surý [Thu, 28 Apr 2022 16:01:30 +0000 (16:01 +0000)] 
Merge branch '2813-build-named-with-dlz-is-broken-with-MariaDB-10' into 'main'

Use MARIADB_BASE_VERSION instead of LIBMARIADB to detect Maria DB

Closes #2813

See merge request isc-projects/bind9!6213

4 years agoUse MARIADB_BASE_VERSION instead of LIBMARIADB to detect Maria DB
Ondřej Surý [Thu, 28 Apr 2022 11:37:40 +0000 (13:37 +0200)] 
Use MARIADB_BASE_VERSION instead of LIBMARIADB to detect Maria DB

It was discovered that MariaDB 10 didn't define LIBMARIADB leading
to compilation errors of MySQL DLZ modules on Debian stretch.

Use MARIADB_BASE_VERSION instead which is defined in all tested MariaDB
versions.