]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
4 years agoAdd kasp test for #3302
Matthijs Mekking [Tue, 3 May 2022 10:24:58 +0000 (12:24 +0200)] 
Add kasp test for #3302

Add a test case that triggers a keymgr run that will not trigger any
metadata changes. Ensure that the last status change of the key files
is unmodified.

4 years agoMerge branch 'ondrej-fix-trampoline-locking' into 'main'
Ondřej Surý [Fri, 13 May 2022 10:16:16 +0000 (10:16 +0000)] 
Merge branch 'ondrej-fix-trampoline-locking' into 'main'

Lock the trampoline when attaching

See merge request isc-projects/bind9!6257

4 years agoLock the trampoline when attaching
Ondřej Surý [Wed, 4 May 2022 07:26:34 +0000 (09:26 +0200)] 
Lock the trampoline when attaching

When attaching to the trampoline, the isc__trampoline_max was access
unlocked.  This would not manifest under normal circumstances because we
initialize 65 trampolines by default and that's enough for most
commodity hardware, but there are ARM machines with 128+ cores where
this would be reported by ThreadSanitizer.

Add locking around the code in isc__trampoline_attach().  This also
requires the lock to leak on exit (along with memory that we already)
because a new thread might be attaching to the trampoline while we are
running the library destructor at the same time.

4 years agoMerge branch 'ondrej-remove-isc_task-on-shutdown' into 'main'
Ondřej Surý [Fri, 13 May 2022 08:04:49 +0000 (08:04 +0000)] 
Merge branch 'ondrej-remove-isc_task-on-shutdown' into 'main'

Remove isc_task_onshutdown()

See merge request isc-projects/bind9!6275

4 years agoAdd CHANGES note for [GL !6275]
Ondřej Surý [Tue, 10 May 2022 07:01:14 +0000 (09:01 +0200)] 
Add CHANGES note for [GL !6275]

4 years agoRemove isc_task_destroy() and isc_task_shutdown()
Ondřej Surý [Mon, 9 May 2022 10:58:34 +0000 (12:58 +0200)] 
Remove isc_task_destroy() and isc_task_shutdown()

After removing the isc_task_onshutdown(), the isc_task_shutdown() and
isc_task_destroy() became obsolete.

Remove calls to isc_task_shutdown() and replace the calls to
isc_task_destroy() with isc_task_detach().

Simplify the internal logic to destroy the task when the last reference
is removed.

4 years agoRemove isc_task_onshutdown()
Ondřej Surý [Mon, 9 May 2022 09:33:09 +0000 (11:33 +0200)] 
Remove isc_task_onshutdown()

The isc_task_onshutdown() was used to post event that should be run when
the task is being shutdown.  This could happen explicitly in the
isc_test_shutdown() call or implicitly when we detach the last reference
to the task and there are no more events posted on the task.

This whole task onshutdown mechanism just makes things more complicated,
and it's easier to post the "shutdown" events when we are shutting down
explicitly and the existing code already always knows when it should
shutdown the task that's being used to execute the onshutdown events.

Replace the isc_task_onshutdown() calls with explicit calls to execute
the shutdown tasks.

4 years agoMerge branch 'michal/drop-post-merge-pipelines' into 'main'
Michał Kępień [Wed, 11 May 2022 13:03:17 +0000 (13:03 +0000)] 
Merge branch 'michal/drop-post-merge-pipelines' into 'main'

Drop post-merge pipelines

See merge request isc-projects/bind9!6292

4 years agoDrop post-merge pipelines
Michał Kępień [Wed, 11 May 2022 12:59:47 +0000 (14:59 +0200)] 
Drop post-merge pipelines

Commit 24961f606882939b62f461f843933da9c2d44ea8 introduced the concept
of post-merge pipelines.  These were used to build documentation after
each merge to any of the maintained branches, to allow up-to-date
documentation to be subsequently published on the bind.isc.org
microsite.  As the latter no longer downloads documentation from GitLab,
instead linking to Read the Docs for all currently maintained branches,
post-merge pipelines have become redundant since running the
"autoreconf" and "docs" jobs after each merge is not necessary any more.
Drop the "release_branch_triggering_rules" YAML anchor and revert to
default triggering rules for the "autoconf" and "docs" jobs, effectively
preventing pipelines from being created after each merge to any of the
maintained branches.

4 years agoMerge branch '565-do-not-trigger-gitlab-pages-pipelines-any-more' into 'main'
Michał Kępień [Wed, 11 May 2022 12:10:48 +0000 (12:10 +0000)] 
Merge branch '565-do-not-trigger-gitlab-pages-pipelines-any-more' into 'main'

Do not trigger GitLab Pages pipelines any more

See merge request isc-projects/bind9!6285

4 years agoDo not set up ccache in CI jobs building docs
Michał Kępień [Wed, 11 May 2022 12:10:17 +0000 (14:10 +0200)] 
Do not set up ccache in CI jobs building docs

Building documentation for Automake-based BIND 9 versions does not
require running "make all" beforehand.  Drop ccache setup code from the
definitions of GitLab CI jobs building documentation as it is redundant.

4 years agoDo not trigger GitLab Pages pipelines any more
Michał Kępień [Wed, 11 May 2022 12:10:17 +0000 (14:10 +0200)] 
Do not trigger GitLab Pages pipelines any more

The bind.isc.org microsite no longer downloads documentation from
GitLab, instead linking to Read the Docs for all currently maintained
branches.  This makes it redundant to trigger GitLab Pages pipelines
after each merge to any of the maintained branches.  Revert changes
introduced by commit 31bde118db8cae4a0f5a9484e3beead66fcc24d0: remove
the "push:docs" job along with the "push" stage it is associated with
and revert artifact expiry time for the "docs" job to the default value.

4 years agoMerge branch '3335-confusing-parental-source-documentation' into 'main'
Matthijs Mekking [Wed, 11 May 2022 11:17:54 +0000 (11:17 +0000)] 
Merge branch '3335-confusing-parental-source-documentation' into 'main'

Remove confusing parental-source line

Closes #3335

See merge request isc-projects/bind9!6272

4 years agoRemove confusing parental-source line
Matthijs Mekking [Fri, 6 May 2022 12:53:58 +0000 (14:53 +0200)] 
Remove confusing parental-source line

Remove the line "This address must appear in the secondary server’s
parental-agents zone clause". This line is a copy paste error from
notify-source.

Rewrap.

4 years agoMerge branch 'pspacek/arm-remove-solaris251' into 'main'
Petr Špaček [Wed, 11 May 2022 09:02:29 +0000 (09:02 +0000)] 
Merge branch 'pspacek/arm-remove-solaris251' into 'main'

Remove ARM notes about Solaris 2.5.1

See merge request isc-projects/bind9!6269

4 years agoRemove ARM notes about Solaris 2.5.1
Petr Špaček [Thu, 5 May 2022 11:22:26 +0000 (13:22 +0200)] 
Remove ARM notes about Solaris 2.5.1

It was released in May 1996 and hopefully is not used to run BIND
anymore.

4 years agoMerge branch '3169-arm-restructuring' into 'main'
Petr Špaček [Wed, 11 May 2022 09:01:01 +0000 (09:01 +0000)] 
Merge branch '3169-arm-restructuring' into 'main'

Restructure ARM

Closes #1223

See merge request isc-projects/bind9!6156

4 years agoAdd RPZ section to the ARM
Suzanne Goldlust [Thu, 21 Apr 2022 13:49:16 +0000 (13:49 +0000)] 
Add RPZ section to the ARM

Closes: #1223
4 years agoRewrite Configurations and Zone Files section in the ARM
Ron Aitchison [Mon, 4 Apr 2022 20:37:36 +0000 (20:37 +0000)] 
Rewrite Configurations and Zone Files section in the ARM

4 years agoTweak zones.inc.rst now separated from Reference section
Ron Aitchison [Tue, 5 Apr 2022 06:30:26 +0000 (06:30 +0000)] 
Tweak zones.inc.rst now separated from Reference section

4 years agoMove zone file material from Reference to new subsection of chapter 3
Ron Aitchison [Fri, 1 Apr 2022 16:47:03 +0000 (16:47 +0000)] 
Move zone file material from Reference to new subsection of chapter 3

4 years agoMinor DNSSEC guide tweaks
Ron Aitchison [Tue, 22 Mar 2022 01:21:33 +0000 (01:21 +0000)] 
Minor DNSSEC guide tweaks

4 years agoRestructure includes for chapter 9 Troubleshooting
Ron Aitchison [Tue, 22 Mar 2022 01:11:02 +0000 (01:11 +0000)] 
Restructure includes for chapter 9 Troubleshooting

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 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