]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agoRun autoreconf -fi in precheck phase and disable maintainer mode in build jobs
Ondřej Surý [Wed, 19 Jun 2019 12:30:32 +0000 (14:30 +0200)] 
Run autoreconf -fi in precheck phase and disable maintainer mode in build jobs

6 years agoAdd AM_MAINTAINER_MODE macro to configure.ac and enable it by default
Ondřej Surý [Wed, 19 Jun 2019 12:26:49 +0000 (14:26 +0200)] 
Add AM_MAINTAINER_MODE macro to configure.ac and enable it by default

AM_MAINTAINER_MODE macro adds ability to disable rebuilding build file
(Makefile.in, configure, ...) when the source file changes.  This is
important in the CI where the timestamps could get skewed and that
triggers the rebuild on every ./configure run.

6 years agoMerge branch 'ondrej/unify-unix-and-win32-app.c' into 'master'
Ondřej Surý [Fri, 21 Jun 2019 08:36:45 +0000 (04:36 -0400)] 
Merge branch 'ondrej/unify-unix-and-win32-app.c' into 'master'

Merge unix/app.c and win32/app.c

See merge request isc-projects/bind9!1970

6 years agoStop requiring same memory ordering in win32 atomic_compare_exchange functions
Ondřej Surý [Thu, 20 Jun 2019 16:51:36 +0000 (18:51 +0200)] 
Stop requiring same memory ordering in win32 atomic_compare_exchange functions

6 years agoisc_app_reload doesn't return value, don't use return() there
Ondřej Surý [Wed, 29 May 2019 11:37:10 +0000 (13:37 +0200)] 
isc_app_reload doesn't return value, don't use return() there

6 years agoMerge unix/app.c and win32/app.c
Ondřej Surý [Tue, 28 May 2019 21:15:38 +0000 (23:15 +0200)] 
Merge unix/app.c and win32/app.c

The differences between two files are very minimal and most of the
code is common.  Merge those two files and use #ifdef WIN32 to include
the right bits on Windows.

6 years agoMerge branch '1081-fix-statistics-in-x86-windows-builds' into 'master'
Ondřej Surý [Thu, 20 Jun 2019 16:07:28 +0000 (12:07 -0400)] 
Merge branch '1081-fix-statistics-in-x86-windows-builds' into 'master'

Fix statistics in x86 Windows builds

Closes #1081

See merge request isc-projects/bind9!2025

6 years agoAdd CHANGES entry
Michał Kępień [Fri, 7 Jun 2019 13:21:43 +0000 (15:21 +0200)] 
Add CHANGES entry

5249. [bug] Statistics were broken in x86 Windows builds.
[GL #1081]

6 years agoFix statistics for x86 Windows builds
Michał Kępień [Fri, 7 Jun 2019 13:21:43 +0000 (15:21 +0200)] 
Fix statistics for x86 Windows builds

Using atomic_int_fast64_t variables with atomic functions on x86 does
not cause Visual Studio to report build errors, but such operations
yield useless results.  Since the isc_stat_t type is unconditionally
typedef'd to atomic_int_fast64_t, any code performing atomic operations
on isc_stat_t variables is broken in x86 Windows builds.  Fix by using
the atomic_int_fast32_t type for isc_stat_t in x86 Windows builds.

6 years agoMerge branch '1094-bump-clientinfomethods-version' into 'master'
Ondřej Surý [Thu, 20 Jun 2019 11:12:59 +0000 (07:12 -0400)] 
Merge branch '1094-bump-clientinfomethods-version' into 'master'

Bump DNS_CLIENTINFOMETHODS VERSION and AGE

Closes #1094

See merge request isc-projects/bind9!2051

6 years agoBump DNS_CLIENTINFOMETHODS_VERSION/_AGE to 2/1 in clientinfo.h
Brian Conry [Tue, 18 Jun 2019 19:37:20 +0000 (14:37 -0500)] 
Bump DNS_CLIENTINFOMETHODS_VERSION/_AGE to 2/1 in clientinfo.h

BIND 9.11.0 has bumped DNS_CLIENTINFOMETHODS_VERSION and _AGE to
version 2 and 1 in the dlz_minimal.h because a member was addet to the
dnsclientinfo struct.  It was found out that the new member is not
used anywhere and there are no accessor functions therefore the change
was reverted.

Later on, it was found out that the revert caused some problems to the
users of BIND 9, and thus this changes takes a different approach by
syncing the values other way around.

6 years agoRevert "Downgrade the dns_clientinfomethod structure to the version in lib/dns/client...
Ondřej Surý [Thu, 20 Jun 2019 10:39:34 +0000 (12:39 +0200)] 
Revert "Downgrade the dns_clientinfomethod structure to the version in lib/dns/clientinfo.c"

This reverts commit a6f09b2255e323d8c49306ef0af6b4f7565baa61.

6 years agoMerge branch 'u/fanf2/rsa-1024-delenda-est' into 'master' 2064/head
Evan Hunt [Thu, 20 Jun 2019 03:31:48 +0000 (23:31 -0400)] 
Merge branch 'u/fanf2/rsa-1024-delenda-est' into 'master'

Use 2048 bits as the default ZSK RSA key size in dnssec-keygen

Closes #1097

See merge request isc-projects/bind9!2055

6 years agoCHANGES
Evan Hunt [Thu, 20 Jun 2019 02:45:06 +0000 (19:45 -0700)] 
CHANGES

6 years agoUse 2048 bits as the default ZSK RSA key size in dnssec-keygen
Tony Finch [Wed, 19 Jun 2019 10:31:43 +0000 (11:31 +0100)] 
Use 2048 bits as the default ZSK RSA key size in dnssec-keygen

6 years agoMerge branch 'security-master' into 'master'
Evan Hunt [Wed, 19 Jun 2019 23:14:43 +0000 (19:14 -0400)] 
Merge branch 'security-master' into 'master'

merge security-master

See merge request isc-projects/bind9!2061

6 years agoMerge branch 'prep-release' into security-master
Tinderbox User [Tue, 11 Jun 2019 07:33:50 +0000 (07:33 +0000)] 
Merge branch 'prep-release' into security-master

6 years agoprep 9.15.1
Tinderbox User [Mon, 3 Jun 2019 19:29:39 +0000 (19:29 +0000)] 
prep 9.15.1

6 years agoMerge branch '942-security-move-test-inside-lock' into security-master
Evan Hunt [Wed, 29 May 2019 05:14:11 +0000 (22:14 -0700)] 
Merge branch '942-security-move-test-inside-lock' into security-master

6 years agoCHANGES, release note
Evan Hunt [Thu, 9 May 2019 17:53:18 +0000 (10:53 -0700)] 
CHANGES, release note

6 years agomove item_out test inside lock in dns_dispatch_getnext()
Mark Andrews [Tue, 19 Mar 2019 03:14:21 +0000 (14:14 +1100)] 
move item_out test inside lock in dns_dispatch_getnext()

6 years agoMerge branch '161-fix-symbol-ordering-in-dns-update_test.c' into 'master'
Ondřej Surý [Wed, 19 Jun 2019 12:13:27 +0000 (08:13 -0400)] 
Merge branch '161-fix-symbol-ordering-in-dns-update_test.c' into 'master'

Fix lib/dns/tests/update_test spurious errors on macOS

Closes #161

See merge request isc-projects/bind9!2050

6 years agoRename mctx in dnstest.c to dt_mctx to prevent any global/local name clashes
Ondřej Surý [Tue, 18 Jun 2019 13:01:43 +0000 (15:01 +0200)] 
Rename mctx in dnstest.c to dt_mctx to prevent any global/local name clashes

The common construct seen in the BIND 9 source is func(isc_mem_t *mctx, ...).
Unfortunately, the dnstest.{h,c} has been using mctx as a global symbol, which
in turn generated a lot of errors when update.c got included in update_test.c.

As a rule of thumb, we should avoid naming global symbols with generic names
(like mctx) and we should prefix them with "namespace" (like dt_mctx).

6 years agoMake CHECK() macro local by moving it from dnstest.h to respective .c files
Ondřej Surý [Tue, 18 Jun 2019 12:56:41 +0000 (14:56 +0200)] 
Make CHECK() macro local by moving it from dnstest.h to respective .c files

The CHECK() macro has been defined both in dnstest.h and update.c
files.  This has created a conflict between macro definitions when
including both of the files in update_test.c.  While the CHECK() macro
is convenient for the tests, it has been really used in just two
files, so the MR moves them into those respective .c files.

6 years agoFix spurious lib/dns/tests/update_test errors on macOS
Ondřej Surý [Tue, 18 Jun 2019 12:48:00 +0000 (14:48 +0200)] 
Fix spurious lib/dns/tests/update_test errors on macOS

lib/dns/tests/update_test was failing on macOS on random occasions.  It
turned out this was a linker problem - it preferred isc_stdtime_get()
from libisc instead of the local version in lib/dns/tests/update_test.c.

Fix by including the original .c file in the unit test.  This has two
benefits:

 a) linking order may no longer cause issues as symbols found in the
    same compilation unit are always preferred,

 b) it allows writing tests for static functions in lib/dns/update.c.

6 years agoMerge branch 'ondrej/autoconf-use-more-convenience-macros-from-autoconf-archive'...
Ondřej Surý [Wed, 19 Jun 2019 11:21:10 +0000 (07:21 -0400)] 
Merge branch 'ondrej/autoconf-use-more-convenience-macros-from-autoconf-archive' into 'master'

Use couple more autoconf convenience macros to cleanup configure.ac

See merge request isc-projects/bind9!2054

6 years agoUse couple more autoconf convenience macros to cleanup configure.ac
Ondřej Surý [Wed, 19 Jun 2019 09:16:47 +0000 (11:16 +0200)] 
Use couple more autoconf convenience macros to cleanup configure.ac

Pull and use several autoconf archive convenience macros to simplify
configure.ac.

* AX_CHECK_COMPILE_FLAG(FLAG, ...) - check whether given CFLAG works
* AX_CHECK_LINK_FLAG(FLAG, ...) - check whether given LDFLAG works
* AX_CHECK_PREPROC_FLAG(FLAG, ...) - check whether give CPPFLAG works
* AX_SAVE_FLAGS/AX_RESTORE_FLAGS - save and restore *FLAGS

6 years agoMerge branch '1088-always-fail-a-system-test-if-crashes-are-detected' into 'master'
Michał Kępień [Tue, 18 Jun 2019 07:55:20 +0000 (03:55 -0400)] 
Merge branch '1088-always-fail-a-system-test-if-crashes-are-detected' into 'master'

Always fail a system test if crashes are detected

Closes #1088

See merge request isc-projects/bind9!2041

6 years agoAlways fail a system test if crashes are detected
Michał Kępień [Tue, 18 Jun 2019 07:14:07 +0000 (09:14 +0200)] 
Always fail a system test if crashes are detected

In certain situations (e.g. a named instance crashing upon shutdown in a
system test which involves shutting down a server and restarting it
afterwards), a system test may succeed despite a named crash being
triggered.  This must never be the case.  Extend run.sh to mark a test
as failed if core dumps or log lines indicating assertion failures are
detected (the latter is only an extra measure aimed at test environments
in which core dumps are not generated; note that some types of crashes,
e.g. segmentation faults, will not be detected using this method alone).

6 years agoMerge branch 'michal/fix-transfer-statistics-extraction' into 'master'
Michał Kępień [Tue, 18 Jun 2019 07:12:53 +0000 (03:12 -0400)] 
Merge branch 'michal/fix-transfer-statistics-extraction' into 'master'

Fix transfer statistics extraction

See merge request isc-projects/bind9!2038

6 years agoFix transfer statistics extraction
Michał Kępień [Tue, 18 Jun 2019 06:51:50 +0000 (08:51 +0200)] 
Fix transfer statistics extraction

Make the get_named_xfer_stats() helper shell function more precise in
order to prevent it from matching the wrong lines as that may trigger
false positives for the "ixfr" and "xfer" system tests.  As an example,
the regular expression responsible for extracting the number of bytes
transmitted throughout an entire zone transfer could also match a line
containing the following string:

    transfer of '<zone-name>/IN': sending TCP message of <integer> bytes

However, such a line is not one summarizing a zone transfer.

Also simplify both get_dig_xfer_stats() and get_named_xfer_stats() by
eliminating the need for "echo" statements in them.

6 years agoMerge branch 'marka-cleanup-builtin-config' into 'master'
Mark Andrews [Mon, 17 Jun 2019 13:35:58 +0000 (09:35 -0400)] 
Merge branch 'marka-cleanup-builtin-config' into 'master'

remove geoip-use-ecs from default config

See merge request isc-projects/bind9!2032

6 years agoremove geoip-use-ecs from default config
Mark Andrews [Wed, 12 Jun 2019 06:50:03 +0000 (16:50 +1000)] 
remove geoip-use-ecs from default config

6 years agoMerge branch 'michal/tkey-system-test-fix-key-id-processing' into 'master'
Michał Kępień [Mon, 17 Jun 2019 12:43:18 +0000 (08:43 -0400)] 
Merge branch 'michal/tkey-system-test-fix-key-id-processing' into 'master'

"tkey" system test: fix key ID processing

See merge request isc-projects/bind9!2033

6 years agoFix key ID processing
Michał Kępień [Mon, 17 Jun 2019 12:15:18 +0000 (14:15 +0200)] 
Fix key ID processing

If ns1/setup.sh generates a key with ID 0, the "KEYID" token in
ns1/named.conf.in will be replaced with an empty string, causing the
following broken statement to appear in ns1/named.conf:

    tkey-dhkey "server" ;

Such a statement triggers false positives for the "tkey" system test due
to ns1 being unable to start with a broken configuration file.  Fix by
tweaking the regular expression used for removing leading zeros from the
key ID, so that it removes at most 4 leading zeros.

6 years agoMerge branch '1067-underflow-recursing-clients-stats' into 'master'
Witold Krecicki [Thu, 13 Jun 2019 12:19:32 +0000 (08:19 -0400)] 
Merge branch '1067-underflow-recursing-clients-stats' into 'master'

Resolve "Underflow in Stats Channel RecursClients value?"

Closes #1067

See merge request isc-projects/bind9!2030

6 years agoCHANGES note
Witold Kręcicki [Tue, 11 Jun 2019 09:40:20 +0000 (11:40 +0200)] 
CHANGES note

6 years agoMake sure that recursclient gauge is calculated correctly.
Witold Kręcicki [Tue, 11 Jun 2019 09:32:35 +0000 (11:32 +0200)] 
Make sure that recursclient gauge is calculated correctly.

We increase recursclients when we attach to recursion quota,
decrease when we detach. In some cases, when we hit soft
quota, we might attach to quota without increasing recursclients
gauge. We then decrease the gauge when we detach from quota,
and it causes the statistics to underflow.
Fix makes sure that we increase recursclients always when we
succesfully attach to recursion quota.

6 years agoMerge branch 'michal/address-compilation-warnings-for-O3-builds' into 'master'
Michał Kępień [Tue, 11 Jun 2019 08:49:01 +0000 (04:49 -0400)] 
Merge branch 'michal/address-compilation-warnings-for-O3-builds' into 'master'

Address compilation warnings for -O3 builds

See merge request isc-projects/bind9!1994

6 years agoAddress GCC 9.1 -O3 compilation warnings
Michał Kępień [Fri, 31 May 2019 12:34:34 +0000 (14:34 +0200)] 
Address GCC 9.1 -O3 compilation warnings

Compiling with -O3 triggers the following warnings with GCC 9.1:

    task.c: In function ‘isc_taskmgr_create’:
    task.c:1384:43: warning: ‘%04u’ directive output may be truncated writing between 4 and 10 bytes into a region of size 6 [-Wformat-truncation=]
     1384 |   snprintf(name, sizeof(name), "isc-worker%04u", i);
          |                                           ^~~~
    task.c:1384:32: note: directive argument in the range [0, 4294967294]
     1384 |   snprintf(name, sizeof(name), "isc-worker%04u", i);
          |                                ^~~~~~~~~~~~~~~~
    task.c:1384:3: note: ‘snprintf’ output between 15 and 21 bytes into a destination of size 16
     1384 |   snprintf(name, sizeof(name), "isc-worker%04u", i);
          |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    private_test.c: In function ‘private_nsec3_totext_test’:
    private_test.c:110:9: warning: array subscript 4 is outside array bounds of ‘uint32_t[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
      110 |  while (*sp == '\0' && slen > 0) {
          |         ^~~
    private_test.c:103:11: note: while referencing ‘salt’
      103 |  uint32_t salt;
          |           ^~~~

Prevent these warnings from being triggered by increasing the size of
the relevant array (task.c) and reordering conditions (private_test.c).

6 years agoAddress GCC 8.3 -O3 compilation warning
Witold Kręcicki [Fri, 31 May 2019 08:43:53 +0000 (10:43 +0200)] 
Address GCC 8.3 -O3 compilation warning

Compiling with -O3 triggers the following warning with GCC 8.3:

    driver.c: In function ‘dlz_findzonedb’:
    driver.c:191:29: warning: ‘%u’ directive output may be truncated writing between 1 and 5 bytes into a region of size between 0 and 99 [-Wformat-truncation=]
      snprintf(buffer, size, "%s#%u", addr_buf, port);
                                 ^~
    driver.c:191:25: note: directive argument in the range [0, 65535]
      snprintf(buffer, size, "%s#%u", addr_buf, port);
                             ^~~~~~~
    driver.c:191:2: note: ‘snprintf’ output between 3 and 106 bytes into a destination of size 100
      snprintf(buffer, size, "%s#%u", addr_buf, port);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Increase the size of the relevant array to prevent this warning from
being triggered.

6 years agoMake some build jobs use -O3 optimizations
Michał Kępień [Fri, 31 May 2019 12:34:34 +0000 (14:34 +0200)] 
Make some build jobs use -O3 optimizations

Change the compiler optimization level for Debian sid build jobs from
-O2 to -O3 in order to enable triggering compilation warnings which are
not raised when -O2 is used.

6 years agoMerge branch '1070-fix-zonemgr-unreachablecache' into 'master'
Witold Krecicki [Tue, 11 Jun 2019 07:58:22 +0000 (03:58 -0400)] 
Merge branch '1070-fix-zonemgr-unreachablecache' into 'master'

Resolve "Use zonemgr unreachable cache more effectively"

Closes #1070

See merge request isc-projects/bind9!2017

6 years agoPut the items into unreachable LRU cache from first to last, not last to first
Ondřej Surý [Fri, 7 Jun 2019 12:41:05 +0000 (14:41 +0200)] 
Put the items into unreachable LRU cache from first to last, not last to first

6 years agoAdd Gitlab CI job with pthread_rwlock
Witold Kręcicki [Fri, 7 Jun 2019 07:46:14 +0000 (09:46 +0200)] 
Add Gitlab CI job with pthread_rwlock

6 years agoIn dns_zonemgr_unreachable use atomics to avoid unnecessary
Witold Kręcicki [Wed, 5 Jun 2019 20:07:50 +0000 (22:07 +0200)] 
In dns_zonemgr_unreachable use atomics to avoid unnecessary
write locking.

Unreachable cache in zonemgr is realized as an static LRU list.
When we 'use' an entry we need to update the last-used time, we
can use atomics to do so without the necessity to upgrading
read-lock to write-lock.

6 years agoMerge branch '1082-fix-symtab-error' into 'master'
Evan Hunt [Tue, 11 Jun 2019 01:56:54 +0000 (21:56 -0400)] 
Merge branch '1082-fix-symtab-error' into 'master'

allocate memory for symtab keys

Closes #1082

See merge request isc-projects/bind9!2026

6 years agoallocate memory for symtab keys
Evan Hunt [Mon, 10 Jun 2019 23:43:56 +0000 (16:43 -0700)] 
allocate memory for symtab keys

this prevents an intermittent failure when conflicts between
static and initializing keys are not detected by named-checkconf.

6 years agoMerge branch 'wpk/git-replay-merge-worktrees' into 'master'
Witold Krecicki [Mon, 10 Jun 2019 14:51:01 +0000 (10:51 -0400)] 
Merge branch 'wpk/git-replay-merge-worktrees' into 'master'

util/git-replay-merge.sh: make the tool compatible with git worktrees

See merge request isc-projects/bind9!1985

6 years agoutil/git-replay-merge.sh: make the tool compatible with git worktrees
Witold Kręcicki [Thu, 30 May 2019 08:08:36 +0000 (10:08 +0200)] 
util/git-replay-merge.sh: make the tool compatible with git worktrees

6 years agoMerge branch 'each-pandoc-args' into 'master'
Evan Hunt [Mon, 10 Jun 2019 04:29:24 +0000 (00:29 -0400)] 
Merge branch 'each-pandoc-args' into 'master'

specify title metadata and markdown format when calling pandoc

See merge request isc-projects/bind9!2022

6 years agospecify title metadata and markdown format when calling pandoc
Evan Hunt [Mon, 10 Jun 2019 04:26:55 +0000 (21:26 -0700)] 
specify title metadata and markdown format when calling pandoc

this change silences a warning message and prevents the unwanted
use of smart quotes when using pandoc 2.7.1 to generate human-readable
versions of README and other markdown files.

6 years agoMerge branch 'michal/minor-doc-fixes' into 'master'
Evan Hunt [Mon, 10 Jun 2019 04:21:21 +0000 (00:21 -0400)] 
Merge branch 'michal/minor-doc-fixes' into 'master'

Minor doc fixes

See merge request isc-projects/bind9!2018

6 years agoTweak paragraph style in release notes PDF
Stephen Morris [Thu, 6 Jun 2019 21:09:13 +0000 (22:09 +0100)] 
Tweak paragraph style in release notes PDF

6 years agoFix typos in README and release notes
Stephen Morris [Thu, 6 Jun 2019 21:09:13 +0000 (22:09 +0100)] 
Fix typos in README and release notes

7 years agoMerge branch 'marka-capture-checkconf-output' into 'master'
Mark Andrews [Thu, 6 Jun 2019 08:13:56 +0000 (04:13 -0400)] 
Merge branch 'marka-capture-checkconf-output' into 'master'

capture named-checkconf output

See merge request isc-projects/bind9!2014

7 years agocapture named-checkconf output
Mark Andrews [Thu, 6 Jun 2019 02:50:47 +0000 (12:50 +1000)] 
capture named-checkconf output

7 years agoMerge branch 'marka-rndc-manpage-fix' into 'master'
Mark Andrews [Wed, 5 Jun 2019 23:20:28 +0000 (19:20 -0400)] 
Merge branch 'marka-rndc-manpage-fix' into 'master'

add missing word 'includes'

See merge request isc-projects/bind9!2011

7 years agoadd missing word 'includes'
Mark Andrews [Wed, 5 Jun 2019 23:07:18 +0000 (09:07 +1000)] 
add missing word 'includes'

7 years agoMerge branch '1064-fix-pthread-rwlock' into 'master'
Evan Hunt [Wed, 5 Jun 2019 18:29:40 +0000 (14:29 -0400)] 
Merge branch '1064-fix-pthread-rwlock' into 'master'

Resolve "Adding --enable-pthread-rwlock broke Windows build"

Closes #1064

See merge request isc-projects/bind9!2009

7 years agoEnforce pthread rwlock to be only enabled in developer mode
Ondřej Surý [Tue, 4 Jun 2019 19:53:15 +0000 (21:53 +0200)] 
Enforce pthread rwlock to be only enabled in developer mode

7 years agoFix Windows build by moving #include <pthread.h> to correct #ifdef block
Ondřej Surý [Tue, 4 Jun 2019 08:13:45 +0000 (10:13 +0200)] 
Fix Windows build by moving #include <pthread.h> to correct #ifdef block

7 years agoFixup the atomic code in pthread_rwlock branch of lib/isc/rwlock.c
Ondřej Surý [Tue, 4 Jun 2019 08:10:46 +0000 (10:10 +0200)] 
Fixup the atomic code in pthread_rwlock branch of lib/isc/rwlock.c

7 years agoMerge branch '6-deprecate-trusted-keys' into 'master'
Evan Hunt [Wed, 5 Jun 2019 15:15:43 +0000 (11:15 -0400)] 
Merge branch '6-deprecate-trusted-keys' into 'master'

Resolve "Merge trusted-key and managed-keys"

Closes #6

See merge request isc-projects/bind9!659

7 years agoCHANGES, release notes
Evan Hunt [Wed, 3 Oct 2018 22:32:25 +0000 (15:32 -0700)] 
CHANGES, release notes

7 years agoupdate documentation
Evan Hunt [Wed, 3 Oct 2018 20:08:30 +0000 (13:08 -0700)] 
update documentation

- change references to trusted-keys to dnssec-keys with static-key
- rebuild doc/misc/options and other generated grammar doc
- add a "see MANAGED-KEYS" note when building named.conf.docbook

7 years agofail if using both dnssec-keys and managed-keys in the same config
Evan Hunt [Sat, 3 Nov 2018 01:57:23 +0000 (18:57 -0700)] 
fail if using both dnssec-keys and managed-keys in the same config

7 years agorename keyfile_to_*_keys system test shell functions
Evan Hunt [Wed, 5 Jun 2019 01:36:59 +0000 (18:36 -0700)] 
rename keyfile_to_*_keys system test shell functions

- keyfile_to_trusted_keys -> keyfile_to_static_keys
- keyfile_to_managed_keys -> keyfile_to_initial_keys

7 years ago"dnssec-keys" is now a synonym for "managed-keys"
Evan Hunt [Fri, 5 Oct 2018 19:00:42 +0000 (12:00 -0700)] 
"dnssec-keys" is now a synonym for "managed-keys"

- managed-keys is now deprecated as well as trusted-keys, though
  it continues to work as a synonym for dnssec-keys
- references to managed-keys have been updated throughout the code.
- tests have been updated to use dnssec-keys format
- also the trusted-keys entries have been removed from the generated
  bind.keys.h file and are no longer generated by bindkeys.pl.

7 years agoupdate irs_dnsconf_load() to read managed-keys statements
Evan Hunt [Wed, 3 Oct 2018 21:17:13 +0000 (14:17 -0700)] 
update irs_dnsconf_load() to read managed-keys statements

- this allows the use of both trusted-keys and managed-keys in files
  loaded by libirs, but managed-keys are always treated as static.

7 years agoupdate key checks in lib/bind9/check.c and fix checkconf test
Evan Hunt [Wed, 3 Oct 2018 18:46:06 +0000 (11:46 -0700)] 
update key checks in lib/bind9/check.c and fix checkconf test

- any use of trusted or static keys for the root zone will now
  elicit a warning, regardless of what the keys may be
- ditto for any use of a key for dlv.isc.org, static or managed

7 years agorevise system tests to use "static-key" syntax instead of "trusted-keys"
Evan Hunt [Wed, 3 Oct 2018 03:35:42 +0000 (20:35 -0700)] 
revise system tests to use "static-key" syntax instead of "trusted-keys"

7 years agodeprecate "trusted-keys"
Evan Hunt [Wed, 15 Aug 2018 23:59:45 +0000 (16:59 -0700)] 
deprecate "trusted-keys"

- trusted-keys is now flagged as deprecated, but still works
- managed-keys can be used to configure permanent trust anchors by
  using the "static-key" keyword in place of "initial-key"
- parser now uses an enum for static-key and initial-key keywords

7 years agoMerge branch 'u/fanf2/cleanup-cleaning-interval' into 'master'
Mark Andrews [Wed, 5 Jun 2019 03:54:57 +0000 (23:54 -0400)] 
Merge branch 'u/fanf2/cleanup-cleaning-interval' into 'master'

Remove `cleaning-interval` remnants.

See merge request isc-projects/bind9!1731

7 years agoRemove `cleaning-interval` remnants.
Tony Finch [Fri, 13 Apr 2018 16:09:16 +0000 (17:09 +0100)] 
Remove `cleaning-interval` remnants.

Since 2008, the cleaning-interval timer has been documented as
"effectively obsolete" and disabled in the default configuration with
a comment saying "now meaningless".

This change deletes all the code that implements the cleaning-interval
timer, except for the config parser in whcih it is now explicitly
marked as obsolete.

I have verified (using the deletelru and deletettl cache stats) that
named still cleans the cache after this change.

7 years agoMerge branch '1058-also-log-the-tsig-name-when-sending-notify' into 'master'
Mark Andrews [Wed, 5 Jun 2019 00:34:58 +0000 (20:34 -0400)] 
Merge branch '1058-also-log-the-tsig-name-when-sending-notify' into 'master'

Resolve "Also log the TSIG name when sending notify"

Closes #1058

See merge request isc-projects/bind9!1963

7 years agoadd CHANGES
Mark Andrews [Mon, 3 Jun 2019 05:45:29 +0000 (15:45 +1000)] 
add CHANGES

7 years agocheck that TSIG is logged in sending notify message
Mark Andrews [Mon, 3 Jun 2019 05:41:25 +0000 (15:41 +1000)] 
check that TSIG is logged in sending notify message

7 years agolog TSIG key name when sending notify
Mark Andrews [Mon, 27 May 2019 01:00:34 +0000 (11:00 +1000)] 
log TSIG key name when sending notify

7 years agoMerge branch '884-patches-to-review-6' into 'master'
Mark Andrews [Tue, 4 Jun 2019 23:19:22 +0000 (19:19 -0400)] 
Merge branch '884-patches-to-review-6' into 'master'

Check all RSA algorithms for weak keys.

Closes #884

See merge request isc-projects/bind9!1535

7 years agocheck all RSA algorithms for weak keys
Mark Andrews [Mon, 18 Feb 2019 01:34:44 +0000 (12:34 +1100)] 
check all RSA algorithms for weak keys

7 years agoMerge branch '1066-macports-uses-opt-local-as-its-openssl-location' into 'master'
Mark Andrews [Tue, 4 Jun 2019 08:13:29 +0000 (04:13 -0400)] 
Merge branch '1066-macports-uses-opt-local-as-its-openssl-location' into 'master'

Resolve "MacPorts uses /opt/local as its OpenSSL location"

Closes #1066

See merge request isc-projects/bind9!2005

7 years agoadd /opt/local to list of locations for OpenSSL
Mark Andrews [Tue, 4 Jun 2019 05:35:47 +0000 (15:35 +1000)] 
add /opt/local to list of locations for OpenSSL

7 years agoMerge branch '1063-pkcs11_test-is-not-being-expanded' into 'master'
Mark Andrews [Tue, 4 Jun 2019 07:57:43 +0000 (03:57 -0400)] 
Merge branch '1063-pkcs11_test-is-not-being-expanded' into 'master'

Resolve "@PKCS11_TEST@ is not being expanded"

Closes #1063

See merge request isc-projects/bind9!2000

7 years agomake PKCS11_TEST unix only
Mark Andrews [Tue, 4 Jun 2019 05:31:26 +0000 (15:31 +1000)] 
make PKCS11_TEST unix only

7 years agoMerge branch '1017-remove-dead-stores' into 'master'
Mark Andrews [Tue, 4 Jun 2019 05:39:24 +0000 (01:39 -0400)] 
Merge branch '1017-remove-dead-stores' into 'master'

Resolve "remove dead stores"

Closes #1017

See merge request isc-projects/bind9!1926

7 years agoPOST(optlen)
Mark Andrews [Tue, 4 Jun 2019 03:15:46 +0000 (13:15 +1000)] 
POST(optlen)

7 years agoMerge branch 'cppcheck-and-cmocka-false-positive' into 'master'
Mark Andrews [Tue, 4 Jun 2019 03:24:23 +0000 (23:24 -0400)] 
Merge branch 'cppcheck-and-cmocka-false-positive' into 'master'

teach clang analyser that _assert_int_equal and _assert_int_not_equal don't return on failure

See merge request isc-projects/bind9!1807

7 years agoteach cppcheck that _assert_int_equal and _assert_int_not_equal don't return on failure
Mark Andrews [Tue, 16 Apr 2019 05:03:18 +0000 (15:03 +1000)] 
teach cppcheck that _assert_int_equal and _assert_int_not_equal don't return on failure

7 years agoMerge branch '1048-make-isc-endian.h-more-portable' into 'master'
Michał Kępień [Mon, 3 Jun 2019 12:27:06 +0000 (08:27 -0400)] 
Merge branch '1048-make-isc-endian.h-more-portable' into 'master'

Make <isc/endian.h> more portable

Closes #1049, #1048, and #856

See merge request isc-projects/bind9!2001

7 years agoMake ifconfig.sh work on DragonFly BSD
Michał Kępień [Mon, 3 Jun 2019 12:13:23 +0000 (14:13 +0200)] 
Make ifconfig.sh work on DragonFly BSD

On DragonFly BSD, use the same commands for configuring network
interfaces used during system tests as on NetBSD and OpenBSD.

7 years agoRevise the Windows section of <isc/endian.h>
Ondřej Surý [Mon, 3 Jun 2019 12:13:23 +0000 (14:13 +0200)] 
Revise the Windows section of <isc/endian.h>

Add a comment and remove redundant definitions.

7 years agoRevise the macOS section of <isc/endian.h>
Ondřej Surý [Mon, 3 Jun 2019 12:13:23 +0000 (14:13 +0200)] 
Revise the macOS section of <isc/endian.h>

Move the macOS section of <isc/endian.h> to a lower spot as it is
believed not to be the most popular platform for running BIND.  Add a
comment and remove redundant definitions.

7 years agoMake <isc/endian.h> detect GNU rather than Linux
Ondřej Surý [Mon, 3 Jun 2019 12:13:23 +0000 (14:13 +0200)] 
Make <isc/endian.h> detect GNU rather than Linux

Instead of only supporting Linux, try making <isc/endian.h> support
other GNU platforms as well.  Since some compilers define __GNUC__ on
BSDs (e.g. Clang on FreeBSD), move the relevant section to the bottom of
the platform-specific part of <isc/endian.h>, so that it only gets
evaluated when more specific platform determination criteria are not
met.  Also include <byteswap.h> so that any byte-swapping macros which
may be defined in that file on older platforms are used in the fallback
definitions of the nonstandard hto[bl]e{16,32,64}() and
[bl]e{16,32,64}toh() conversion functions.

7 years agoAdd Solaris support for <isc/endian.h>
Ondřej Surý [Mon, 3 Jun 2019 12:13:23 +0000 (14:13 +0200)] 
Add Solaris support for <isc/endian.h>

While Solaris does not support the nonstandard hto[bl]e{16,32,64}() and
[bl]e{16,32,64}toh() conversion functions, it does have some
byte-swapping macros available in <sys/byteorder.h>.  Ensure these
macros are used in the fallback definitions of the aforementioned
nonstandard functions.

7 years agoAdd fallback definitions to <isc/endian.h>
Ondřej Surý [Mon, 3 Jun 2019 12:13:23 +0000 (14:13 +0200)] 
Add fallback definitions to <isc/endian.h>

Since the hto[bl]e{16,32,64}() and [bl]e{16,32,64}toh() conversion
functions are nonstandard, add fallback definitions of these functions
to <isc/endian.h>, so that their unavailability does not prevent
compilation from succeeding.

7 years agoFix <isc/endian.h> on BSD systems
Michał Kępień [Mon, 3 Jun 2019 12:13:23 +0000 (14:13 +0200)] 
Fix <isc/endian.h> on BSD systems

Current versions of DragonFly BSD, FreeBSD, NetBSD, and OpenBSD all
support the modern variants of functions converting values between host
and big-endian/little-endian byte order while older ones might not.
Ensure <isc/endian.h> works properly in both cases.

7 years agoMerge branch 'michal/smartsign-system-test-properly-detect-presence-of-cds-cdnskey...
Michał Kępień [Mon, 3 Jun 2019 11:59:08 +0000 (07:59 -0400)] 
Merge branch 'michal/smartsign-system-test-properly-detect-presence-of-cds-cdnskey-records' into 'master'

"smartsign" system test: properly detect presence of CDS/CDNSKEY records

See merge request isc-projects/bind9!1988

7 years agoProperly detect presence of CDS/CDNSKEY records
Michał Kępień [Mon, 3 Jun 2019 11:43:29 +0000 (13:43 +0200)] 
Properly detect presence of CDS/CDNSKEY records

Replace grep calls with awk scripts to more precisely detect presence of
CDS and CDNSKEY records in a signed zone file, in order to prevent rare
false positives for the "smartsign" system test triggered by the strings
"CDS" and/or "CDNSKEY" being accidentally present in the Base64 form of
DNSSEC-related data in the zone file being checked.

7 years agoMerge branch '1009-isc-support-13911-ixfr-requests-sometimes-have-ending-logged-but...
Mark Andrews [Mon, 3 Jun 2019 05:32:29 +0000 (01:32 -0400)] 
Merge branch '1009-isc-support-13911-ixfr-requests-sometimes-have-ending-logged-but-not-start' into 'master'

Resolve "[ISC-support #13911] IXFR requests sometimes have ending logged but not start"

Closes #1009

See merge request isc-projects/bind9!1887