]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
7 years agoenforce known SSHFP finger print lengths
Mark Andrews [Fri, 1 Feb 2019 07:18:34 +0000 (18:18 +1100)] 
enforce known SSHFP finger print lengths

(cherry picked from commit 1722728c80671bb7a93944a3e8b37bc56061d5b7)

7 years agoMerge branch '991-provide-ixfr-should-only-be-tests-on-tcp-clients-v9_11' into 'v9_11'
Mark Andrews [Tue, 7 May 2019 04:46:17 +0000 (00:46 -0400)] 
Merge branch '991-provide-ixfr-should-only-be-tests-on-tcp-clients-v9_11' into 'v9_11'

Resolve "provide-ixfr should only be tested on TCP clients."

See merge request isc-projects/bind9!1901

7 years agoadd CHANGES
Mark Andrews [Tue, 7 May 2019 03:00:55 +0000 (13:00 +1000)] 
add CHANGES

(cherry picked from commit ba1d7f3a0709fe562162845f7792dfe5dd515fda)

7 years agoadd test for 'provide-ixfr no;' ; add forensics support
Mark Andrews [Wed, 24 Apr 2019 07:50:00 +0000 (17:50 +1000)] 
add test for 'provide-ixfr no;' ; add forensics support

(cherry picked from commit d547465af5a9f99d22d26e17999e16289148871d)

7 years agoonly test provideixfr if the transport is TCP
Mark Andrews [Tue, 23 Apr 2019 07:48:07 +0000 (17:48 +1000)] 
only test provideixfr if the transport is TCP

(cherry picked from commit 18c49853e37614f7a49fd47f51117b1df10f1ff5)

7 years agoMerge branch 'each-win32-parallel-tests-v9_11' into 'v9_11'
Evan Hunt [Tue, 7 May 2019 02:04:51 +0000 (22:04 -0400)] 
Merge branch 'each-win32-parallel-tests-v9_11' into 'v9_11'

enable parallel system tests on windows

See merge request isc-projects/bind9!1895

7 years agoCHANGES
Evan Hunt [Mon, 6 May 2019 21:20:25 +0000 (14:20 -0700)] 
CHANGES

(cherry picked from commit d3cd0729c97451c1ffb89417d51a9e665c79a8a1)

7 years agoenable parallel system tests on windows
Evan Hunt [Sat, 26 Jan 2019 18:36:47 +0000 (10:36 -0800)] 
enable parallel system tests on windows

this moves the creation of "parallel.mk" into a separate shell script
instead of bin/tests/system/Makefile. that shell script can now be
executed by runall.sh, allowing us to make use of the cygwin "make"
command, which supports parallel execution.

(cherry picked from commit bbae24c1402ea038b4f1662e993d4e15678f2f53)

7 years agoMerge branch 'each-fix-rpz-test-v9_11' into 'v9_11'
Evan Hunt [Tue, 7 May 2019 01:17:38 +0000 (21:17 -0400)] 
Merge branch 'each-fix-rpz-test-v9_11' into 'v9_11'

RPZ test had spurious references to DNSRPS, which isn't in 9.11

See merge request isc-projects/bind9!1898

7 years agoRPZ test had spurious references to DNSRPS, which isn't in 9.11
Evan Hunt [Tue, 7 May 2019 00:31:26 +0000 (17:31 -0700)] 
RPZ test had spurious references to DNSRPS, which isn't in 9.11

7 years agoMerge branch '983-delv-www-isc-org-any-rtrace-multiline-leaks-memory-v9_11' into...
Mark Andrews [Tue, 7 May 2019 00:52:47 +0000 (20:52 -0400)] 
Merge branch '983-delv-www-isc-org-any-rtrace-multiline-leaks-memory-v9_11' into 'v9_11'

Resolve "'delv www.isc.org ANY +rtrace +multiline' leaks memory"

See merge request isc-projects/bind9!1897

7 years agoadd CHANGES note
Mark Andrews [Wed, 17 Apr 2019 03:46:18 +0000 (13:46 +1000)] 
add CHANGES note

(cherry picked from commit ce5520b6958a6d3e16976c65858c2fafecb44700)

7 years agocheck that delv -t any works
Mark Andrews [Wed, 17 Apr 2019 03:41:07 +0000 (13:41 +1000)] 
check that delv -t any works

(cherry picked from commit 6999bee7ef894434f872cef3935b208fd7d99ef2)

7 years agofix whitespace
Mark Andrews [Wed, 17 Apr 2019 02:48:21 +0000 (12:48 +1000)] 
fix whitespace

(cherry picked from commit 32ba5a0494e26d49969c56e24865a858d4c3e9ac)

7 years agoreturn rdatasets when processing ANY queries in client_resfind
Mark Andrews [Tue, 16 Apr 2019 14:13:14 +0000 (00:13 +1000)] 
return rdatasets when processing ANY queries in client_resfind

(cherry picked from commit 127333c71f69b921f32571ae405600f44f2ffb34)

7 years agoMerge branch '1000-arm-doc-rpz-nodata-policy-says-ancount-1-v9_11' into 'v9_11'
Mark Andrews [Mon, 6 May 2019 08:06:56 +0000 (04:06 -0400)] 
Merge branch '1000-arm-doc-rpz-nodata-policy-says-ancount-1-v9_11' into 'v9_11'

Resolve "ARM doc RPZ NODATA policy says ANCOUNT=1"

See merge request isc-projects/bind9!1891

7 years agoA NODATA response has ANCOUNT of 0 assuming no CNAME/DNAMES
Mark Andrews [Mon, 6 May 2019 07:13:18 +0000 (17:13 +1000)] 
A NODATA response has ANCOUNT of 0 assuming no CNAME/DNAMES

(cherry picked from commit 4889e06c3a16a0c7c746519ab7b803f15b4181c4)

7 years agoMerge branch 'michal/simplify-trailing-period-handling-in-system-tests-v9_11' into...
Michał Kępień [Fri, 26 Apr 2019 19:12:12 +0000 (15:12 -0400)] 
Merge branch 'michal/simplify-trailing-period-handling-in-system-tests-v9_11' into 'v9_11'

[v9_11] Simplify trailing period handling in system tests

See merge request isc-projects/bind9!1878

7 years agoSimplify trailing period handling in system tests
Michał Kępień [Fri, 26 Apr 2019 18:38:02 +0000 (20:38 +0200)] 
Simplify trailing period handling in system tests

Windows systems do not allow a trailing period in file names while Unix
systems do.  When BIND system tests are run, the $TP environment
variable is set to an empty string on Windows systems and to "." on Unix
systems.  This environment variable is then used by system test scripts
for handling this discrepancy properly.

In multiple system test scripts, a variable holding a zone name is set
to a string with a trailing period while the names of the zone's
corresponding dlvset-* and/or dsset-* files are determined using
numerous sed invocations like the following one:

    dlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"

In order to improve code readability, use zone names without trailing
periods and replace sed invocations with variable substitutions.

To retain local consistency, also remove the trailing period from
certain other zone names used in system tests that are not subsequently
processed using sed.

(cherry picked from commit da2c1b74ada4f0899ff10d8f78b22beb4c4ce693)

7 years agoMerge branch 'prep-release-v9_11' into 'v9_11'
Ondřej Surý [Thu, 25 Apr 2019 14:09:51 +0000 (10:09 -0400)] 
Merge branch 'prep-release-v9_11' into 'v9_11'

Prep release v9 11

See merge request isc-projects/bind9!1865

7 years agodoc rebuild
Tinderbox User [Sat, 6 Apr 2019 01:47:20 +0000 (01:47 +0000)] 
doc rebuild

(cherry picked from commit 40b034f5b8e25bb762753f26dcfb64b6fdbc0e33)

7 years agoprep 9.11.6-P1
Tinderbox User [Sat, 6 Apr 2019 01:40:01 +0000 (01:40 +0000)] 
prep 9.11.6-P1

(cherry picked from commit 6195f229b66467324a993a2f70cac54e97f03137)

7 years agoMerge branch '999-tcp-client-crash-v9_11-locks' into 'v9_11'
Ondřej Surý [Thu, 25 Apr 2019 13:54:09 +0000 (09:54 -0400)] 
Merge branch '999-tcp-client-crash-v9_11-locks' into 'v9_11'

Replace atomic operations in bin/named/client.c with isc_refcount reference counting

See merge request isc-projects/bind9!1864

7 years agoReplace atomic operations in bin/named/client.c with isc_refcount reference counting
Ondřej Surý [Wed, 17 Apr 2019 13:22:27 +0000 (15:22 +0200)] 
Replace atomic operations in bin/named/client.c with isc_refcount reference counting

7 years agoMerge branch '615-tcp-client-crash-v9_11-v9_11_6_patch-v9_11' into 'v9_11'
Ondřej Surý [Thu, 25 Apr 2019 13:38:41 +0000 (09:38 -0400)] 
Merge branch '615-tcp-client-crash-v9_11-v9_11_6_patch-v9_11' into 'v9_11'

Resolve "tcp-clients mostly ineffective"

See merge request isc-projects/bind9!1863

7 years agoCHANGES, release note
Evan Hunt [Fri, 5 Apr 2019 23:27:36 +0000 (16:27 -0700)] 
CHANGES, release note

(cherry picked from commit 5e18ad05f43a5f40deadde9b230f8e5bfb0e5e13)

7 years agorestore allowance for tcp-clients < interfaces
Evan Hunt [Fri, 5 Apr 2019 23:26:19 +0000 (16:26 -0700)] 
restore allowance for tcp-clients < interfaces

in the "refactor tcpquota and pipeline refs" commit, the counting
of active interfaces was tightened in such a way that named could
fail to listen on an interface if there were more interfaces than
tcp-clients. when checking the quota to start accepting on an
interface, if the number of active clients was above zero, then
it was presumed that some other client was able to handle accepting
new connections. this, however, ignored the fact that the current client
could be included in that count, so if the quota was already exceeded
before all the interfaces were listening, some interfaces would never
listen.

we now check whether the current client has been marked active; if so,
then the number of active clients on the interface must be greater
than 1, not 0.

(cherry picked from commit 0b4e2cd4c3192ba88569dd344f542a8cc43742b5)
(cherry picked from commit d01023aaac35543daffbdf48464e320150235d41)

7 years agorefactor tcpquota and pipeline refs; allow special-case overrun in isc_quota
Evan Hunt [Fri, 5 Apr 2019 23:26:05 +0000 (16:26 -0700)] 
refactor tcpquota and pipeline refs; allow special-case overrun in isc_quota

- if the TCP quota has been exceeded but there are no clients listening
  for new connections on the interface, we can now force attachment to the
  quota using isc_quota_force(), instead of carrying on with the quota not
  attached.
- the TCP client quota is now referenced via a reference-counted
  'ns_tcpconn' object, one of which is created whenever a client begins
  listening for new connections, and attached to by members of that
  client's pipeline group. when the last reference to the tcpconn
  object is detached, it is freed and the TCP quota slot is released.
- reduce code duplication by adding mark_tcp_active() function.
- convert counters to atomic.

(cherry picked from commit 7e8222378ca24f1302a0c1c638565050ab04681b)
(cherry picked from commit 4939451275722bfda490ea86ca13e84f6bc71e46)
(cherry picked from commit 13f7c918b8720d890408f678bd73c20e634539d9)

7 years agobetter tcpquota accounting and client mortality checks
Evan Hunt [Fri, 5 Apr 2019 23:12:18 +0000 (16:12 -0700)] 
better tcpquota accounting and client mortality checks

- ensure that tcpactive is cleaned up correctly when accept() fails.
- set 'client->tcpattached' when the client is attached to the tcpquota.
  carry this value on to new clients sharing the same pipeline group.
  don't call isc_quota_detach() on the tcpquota unless tcpattached is
  set.  this way clients that were allowed to accept TCP connections
  despite being over quota (and therefore, were never attached to the
  quota) will not inadvertently detach from it and mess up the
  accounting.
- simplify the code for tcpquota disconnection by using a new function
  tcpquota_disconnect().
- before deciding whether to reject a new connection due to quota
  exhaustion, check to see whether there are at least two active
  clients. previously, this was "at least one", but that could be
  insufficient if there was one other client in READING state (waiting
  for messages on an open connection) but none in READY (listening
  for new connections).
- before deciding whether a TCP client object can to go inactive, we
  must ensure there are enough other clients to maintain service
  afterward -- both accepting new connections and reading/processing new
  queries.  A TCP client can't shut down unless at least one
  client is accepting new connections and (in the case of pipelined
  clients) at least one additional client is waiting to read.

(cherry picked from commit c7394738b2445c16f728a88394864dd61baad900)
(cherry picked from commit e965d5f11d3d0f6d59704e614fceca2093cb1856)
(cherry picked from commit 87d431161450777ea093821212abfb52d51b36e3)

7 years agouse reference counter for pipeline groups (v3)
Michał Kępień [Thu, 17 Jan 2019 14:53:38 +0000 (15:53 +0100)] 
use reference counter for pipeline groups (v3)

Track pipeline groups using a shared reference counter
instead of a linked list.

(cherry picked from commit 513afd33eb17d5dc41a3f0d2d38204ef8c5f6f91)
(cherry picked from commit 9446629b730c59c4215f08d37fbaf810282fbccb)

7 years agotcp-clients could still be exceeded (v2)
Witold Kręcicki [Fri, 4 Jan 2019 11:50:51 +0000 (12:50 +0100)] 
tcp-clients could still be exceeded (v2)

the TCP client quota could still be ineffective under some
circumstances.  this change:

- improves quota accounting to ensure that TCP clients are
  properly limited, while still guaranteeing that at least one client
  is always available to serve TCP connections on each interface.
- uses more descriptive names and removes one (ntcptarget) that
  was no longer needed
- adds comments

(cherry picked from commit 924651f1d5e605cd186d03f4f7340bcc54d77cc2)
(cherry picked from commit 55a7a458e30e47874d34bdf1079eb863a0512396)

7 years agofix enforcement of tcp-clients (v1)
Witold Kręcicki [Thu, 3 Jan 2019 13:17:43 +0000 (14:17 +0100)] 
fix enforcement of tcp-clients (v1)

tcp-clients settings could be exceeded in some cases by
creating more and more active TCP clients that are over
the set quota limit, which in the end could lead to a
DoS attack by e.g. exhaustion of file descriptors.

If TCP client we're closing went over the quota (so it's
not attached to a quota) mark it as mortal - so that it
will be destroyed and not set up to listen for new
connections - unless it's the last client for a specific
interface.

(cherry picked from commit f97131d21b97381cef72b971b157345c1f9b4115)
(cherry picked from commit 9689ffc485df8f971f0ad81ab8ab1f5389493776)

7 years agoMerge branch 'matthijs-fix-dnssec-test-intermittent-failure-kskonly-v9_11' into ...
Matthijs Mekking [Wed, 24 Apr 2019 07:54:42 +0000 (03:54 -0400)] 
Merge branch 'matthijs-fix-dnssec-test-intermittent-failure-kskonly-v9_11' into 'v9_11'

Fix dnssec test intermittent failure related to kskonly bugfix

See merge request isc-projects/bind9!1858

7 years agoWait for correct log message in dnssec/tests.sh
Matthijs Mekking [Wed, 24 Apr 2019 07:16:59 +0000 (09:16 +0200)] 
Wait for correct log message in dnssec/tests.sh

In 9.11 there are some log messages not existing, but the tests
rely on.  Adjust the grep call that gives confidence the rollover
step has occurred.

7 years agoHarden grep key ID calls
Matthijs Mekking [Fri, 19 Apr 2019 09:52:19 +0000 (11:52 +0200)] 
Harden grep key ID calls

Key IDs may accidentally match dig output that is not the key ID (for
example the RRSIG inception or expiration time, the query ID, ...).
Search for key ID + signer name should prevent that, as that is what
only should occur in the RRSIG record, and signer name always follows
the key ID.

(cherry picked from commit 83473b975830bd30b6f78b4a332585da37e6a8d3)

7 years agoRemove sleeps
Matthijs Mekking [Fri, 19 Apr 2019 09:38:24 +0000 (11:38 +0200)] 
Remove sleeps

Remove sleep calls from test, rely on wait_for_log().  Make
wait_for_log() and dnssec_loadkeys_on() fail the test if the
appropriate log line is not found.

Slightly adjust the echo_i() lines to print only the key ID (not the
key name).

(cherry picked from commit 67f0635f3cdfbdd53f0bf18b9b8a3c93d0802efd)

7 years agoMerge branch '995-dlz_open_driver-fix-build-failure-without-dlfcn-h-v9_11' into ...
Mark Andrews [Wed, 24 Apr 2019 01:02:25 +0000 (21:02 -0400)] 
Merge branch '995-dlz_open_driver-fix-build-failure-without-dlfcn-h-v9_11' into 'v9_11'

Resolve "dlz_open_driver: fix build failure without dlfcn.h"

See merge request isc-projects/bind9!1855

7 years agoadd CHANGES
Mark Andrews [Tue, 23 Apr 2019 23:07:19 +0000 (09:07 +1000)] 
add CHANGES

(cherry picked from commit 19e40981394093ba62eb6c656489b5ef7ed32406)

7 years agoconditionally include <dlfcn.h>
Mark Andrews [Tue, 23 Apr 2019 23:06:08 +0000 (09:06 +1000)] 
conditionally include <dlfcn.h>

(cherry picked from commit eee8084734d73588e76bab97ff7b8341519bf1a9)

7 years agoMerge branch 'michal/minor-nsupdate-system-test-tweaks-v9_11' into 'v9_11'
Michał Kępień [Tue, 23 Apr 2019 13:20:07 +0000 (09:20 -0400)] 
Merge branch 'michal/minor-nsupdate-system-test-tweaks-v9_11' into 'v9_11'

[v9_11] Minor "nsupdate" system test tweaks

See merge request isc-projects/bind9!1849

7 years agoWait more than 1 second for NSEC3 chain changes
Michał Kępień [Tue, 23 Apr 2019 12:59:05 +0000 (14:59 +0200)] 
Wait more than 1 second for NSEC3 chain changes

One second may not be enough for an NSEC3 chain change triggered by an
UPDATE message to complete.  Wait up to 10 seconds when checking whether
a given NSEC3 chain change is complete in the "nsupdate" system test.

(cherry picked from commit f8746cddbce838fec2a28f00617df6af1319fbc8)

7 years agoRemove redundant sleeps
Michał Kępień [Tue, 23 Apr 2019 12:59:05 +0000 (14:59 +0200)] 
Remove redundant sleeps

In the "nsupdate" system test, do not sleep before checking results of
changes which are expected to be processed synchronously, i.e. before
nsupdate returns.

(cherry picked from commit 1c8e5ea33366094dc77f63fa8e728bb0f7691c8c)

7 years agoMerge branch '962-bind-just-disables-gssapi-support-if-no-gssapi-krb5-headers-found...
Mark Andrews [Tue, 23 Apr 2019 03:15:15 +0000 (23:15 -0400)] 
Merge branch '962-bind-just-disables-gssapi-support-if-no-gssapi-krb5-headers-found-v9_11' into 'v9_11'

Resolve "Bind just disables GSSAPI support if no GSSAPI/KRB5 headers found"

See merge request isc-projects/bind9!1843

7 years agomake 'configure --with-gssapi=yes' fatal if support is not found
Mark Andrews [Wed, 17 Apr 2019 06:32:35 +0000 (16:32 +1000)] 
make 'configure --with-gssapi=yes' fatal if support is not found

(cherry picked from commit e420078c630e168a954c87562c9c25d34c60fe13)

7 years agoMerge branch 'incorrect-use-of-bool-v9_11' into 'v9_11'
Mark Andrews [Tue, 23 Apr 2019 01:58:46 +0000 (21:58 -0400)] 
Merge branch 'incorrect-use-of-bool-v9_11' into 'v9_11'

using 0 instead of false

See merge request isc-projects/bind9!1840

7 years agousing 0 instead of false
Mark Andrews [Thu, 18 Apr 2019 03:02:30 +0000 (13:02 +1000)] 
using 0 instead of false

(cherry picked from commit da7f683abfffa806763aa89062412e640ce906e3)

7 years agoMerge branch 'michal/win32-system-test-fixes-v9_11' into 'v9_11'
Michał Kępień [Fri, 19 Apr 2019 09:52:17 +0000 (05:52 -0400)] 
Merge branch 'michal/win32-system-test-fixes-v9_11' into 'v9_11'

[v9_11] Miscellaneous Windows system test fixes

See merge request isc-projects/bind9!1835

7 years agoUpdate interface lists in ifconfig scripts
Michał Kępień [Fri, 19 Apr 2019 09:21:43 +0000 (11:21 +0200)] 
Update interface lists in ifconfig scripts

Make bin/tests/system/ifconfig.bat also configure addresses ending with
9 and 10, so that the script is in sync with its Unix counterpart.

Update comments listing the interfaces created by ifconfig.{bat,sh} so
that they do not include addresses whose last octet is zero (since an
address like 10.53.1.0/24 is not a valid host address and thus the
aforementioned scripts do not even attempt configuring them).

(cherry picked from commit b6c1cdfffe956d92f4b716262a7ca5ecf9141845)

7 years agoFix the "dnssec" system test on Windows
Michał Kępień [Fri, 19 Apr 2019 09:21:43 +0000 (11:21 +0200)] 
Fix the "dnssec" system test on Windows

On Windows, the bin/tests/system/dnssec/signer/example.db.signed file
contains carriage return characters at the end of each line.  Remove
them before passing the aforementioned file to the awk script extracting
key IDs so that the latter can work properly.

(cherry picked from commit e4280ed9f561bc22e5c4f7817536d344598fcf3a)

7 years agoDo not wait for lock file cleanup on Windows
Michał Kępień [Fri, 19 Apr 2019 09:21:43 +0000 (11:21 +0200)] 
Do not wait for lock file cleanup on Windows

As signals are currently not handled by named on Windows, instances
terminated using signals are not able to perform a clean shutdown, which
involves e.g. removing the lock file.  Thus, waiting for a given
instance's lock file to be removed beforing assuming it is shut down
is pointless on Windows, so do not even attempt it.

(cherry picked from commit 761ba4514f7eceab8019d71dc9cabd269d274597)

7 years agoMerge branch '979-win32-remove-lock-file-upon-shutdown-v9_11' into 'v9_11'
Michał Kępień [Fri, 19 Apr 2019 09:20:32 +0000 (05:20 -0400)] 
Merge branch '979-win32-remove-lock-file-upon-shutdown-v9_11' into 'v9_11'

[v9_11] win32: remove lock file upon shutdown

See merge request isc-projects/bind9!1833

7 years agoAdd CHANGES entry
Michał Kępień [Fri, 19 Apr 2019 08:59:41 +0000 (10:59 +0200)] 
Add CHANGES entry

5214. [bug] win32: named now removes its lock file upon shutdown.
[GL #979]

(cherry picked from commit e048436805b6301af5ec0197cdcdc799573627f8)

7 years agowin32: remove lock file upon shutdown
Michał Kępień [Fri, 19 Apr 2019 08:59:41 +0000 (10:59 +0200)] 
win32: remove lock file upon shutdown

Upon named shutdown, the lock file should not just be unlocked but also
removed.

(cherry picked from commit c506077da54e92ddb6220bd118ff817a9248c4e8)

7 years agoMerge branch '978-win32-fix-service-state-reported-during-shutdown-v9_11' into 'v9_11'
Michał Kępień [Fri, 19 Apr 2019 08:19:36 +0000 (04:19 -0400)] 
Merge branch '978-win32-fix-service-state-reported-during-shutdown-v9_11' into 'v9_11'

[v9_11] win32: fix service state reported during shutdown

See merge request isc-projects/bind9!1831

7 years agoAdd CHANGES entry
Michał Kępień [Fri, 19 Apr 2019 07:37:51 +0000 (09:37 +0200)] 
Add CHANGES entry

5213. [bug] win32: Eliminated a race which allowed named.exe running
as a service to be killed prematurely during shutdown.
[GL #978]

(cherry picked from commit e7332343ed8581607efbec2c0159e7f0eaa4a539)

7 years agowin32: fix service state reported during shutdown
Michał Kępień [Fri, 19 Apr 2019 07:37:51 +0000 (09:37 +0200)] 
win32: fix service state reported during shutdown

When a Windows service receives a request to stop, it should not set its
state to SERVICE_STOPPED until it is completely shut down as doing that
allows the operating system to kill that service prematurely, which in
the case of named may e.g. prevent the PID file and/or the lock file
from being cleaned up.

Set service state to SERVICE_STOP_PENDING when named begins its shutdown
and only report the SERVICE_STOPPED state immediately before exiting.

(cherry picked from commit 964749dfdbb51b4f1626edf1eb97df33600c10ae)

7 years agoMerge branch '757-unsupported-algorithms-v9_11' into 'v9_11'
Matthijs Mekking [Fri, 19 Apr 2019 07:14:15 +0000 (03:14 -0400)] 
Merge branch '757-unsupported-algorithms-v9_11' into 'v9_11'

Resolve "Investigate and fix what happens when managed-key algorithm is not supported"

See merge request isc-projects/bind9!1825

7 years agoUpdate copyrights
Matthijs Mekking [Thu, 18 Apr 2019 09:56:01 +0000 (11:56 +0200)] 
Update copyrights

7 years agoAdd documentation
Matthijs Mekking [Wed, 16 Jan 2019 14:21:24 +0000 (15:21 +0100)] 
Add documentation

(cherry picked from commit a67dac5d2170c33fb254f626d59666e2629fc0bd)

7 years agoDLV tests unsupported/disabled algorithms
Matthijs Mekking [Tue, 15 Jan 2019 13:12:14 +0000 (14:12 +0100)] 
DLV tests unsupported/disabled algorithms

This tests both the cases when the DLV trust anchor is of an
unsupported or disabled algorithm, as well as if the DLV zone
contains a key with an unsupported or disabled algorithm.

(cherry picked from commit 3b7c849a3fe7e0c62b77ae501b40c11f2104f1c7)

7 years agoIgnore unsupported trust anchors
Matthijs Mekking [Tue, 15 Jan 2019 10:32:53 +0000 (11:32 +0100)] 
Ignore unsupported trust anchors

(cherry picked from commit 1d45ad8f39dcd66f7e664e5d05d4ac553fdcbc0b)

Some adaptations were made to make the code compile and tests pass.

7 years agoAdd inline test related to unsupported algorithms
Matthijs Mekking [Mon, 14 Jan 2019 15:02:30 +0000 (16:02 +0100)] 
Add inline test related to unsupported algorithms

(cherry picked from commit 924fdad0e59c9d74eafab11b6fe0e49dbdd115c6)

7 years agoSystem tests for tools and unsupported algorithms
Matthijs Mekking [Mon, 14 Jan 2019 13:53:27 +0000 (14:53 +0100)] 
System tests for tools and unsupported algorithms

(cherry picked from commit dfcf9bb0edc8d0f75e01cd643dbba176066e478e)

7 years agoMerge branch '989-check-for-typeof-extension-v9_11' into 'v9_11'
Ondřej Surý [Thu, 18 Apr 2019 11:34:19 +0000 (07:34 -0400)] 
Merge branch '989-check-for-typeof-extension-v9_11' into 'v9_11'

(v9_11) Use uintmax_t instead of typeof(x) in the ISC_ALIGN macro on non-GNUC systems

See merge request isc-projects/bind9!1828

7 years agoOn non-GNUC systems, use uintmax_t in the ISC_ALIGN macro
Ondřej Surý [Thu, 18 Apr 2019 09:49:10 +0000 (11:49 +0200)] 
On non-GNUC systems, use uintmax_t in the ISC_ALIGN macro

(cherry picked from commit 2e40cc94dc5ed7753c7e8a3ff128d60dbb4e3e2b)

7 years agoMerge branch 'ondrej/text-files-dont-need-copyright-v9_11' into 'v9_11'
Ondřej Surý [Thu, 18 Apr 2019 07:26:23 +0000 (03:26 -0400)] 
Merge branch 'ondrej/text-files-dont-need-copyright-v9_11' into 'v9_11'

(v9_11) Simple text files don't need copyright header

See merge request isc-projects/bind9!1823

7 years agoSimple text files with docs on build or design don't really need copyright on their own
Ondřej Surý [Tue, 16 Apr 2019 07:26:48 +0000 (09:26 +0200)] 
Simple text files with docs on build or design don't really need copyright on their own

(cherry picked from commit 1877139a3216ee0ce962734142455765a5cde17d)

7 years agoMerge branch 'ondrej/refactor-DNS_RDATASET_FIXED-code-flow-v9_11' into 'v9_11'
Ondřej Surý [Wed, 17 Apr 2019 09:50:25 +0000 (05:50 -0400)] 
Merge branch 'ondrej/refactor-DNS_RDATASET_FIXED-code-flow-v9_11' into 'v9_11'

(v9_11) Refactor the DNS_RDATASET_FIXED code to use macros instead of ifdefs

See merge request isc-projects/bind9!1818

7 years agoRefactor the DNS_RDATASET_FIXED code to use constants instead of ifdefs
Ondřej Surý [Tue, 16 Apr 2019 09:10:22 +0000 (11:10 +0200)] 
Refactor the DNS_RDATASET_FIXED code to use constants instead of ifdefs

(cherry picked from commit 4edbb773a172a7811d7af7a53a29841f23151b31)

7 years agoMerge branch '763-matthijs-active-zsk-but-ksk-only-v9_11' into 'v9_11'
Matthijs Mekking [Fri, 12 Apr 2019 14:21:15 +0000 (10:21 -0400)] 
Merge branch '763-matthijs-active-zsk-but-ksk-only-v9_11' into 'v9_11'

Don't sign DNSKEY RRset with ZSK if KSK is offline

See merge request isc-projects/bind9!1797

7 years agoFix dnssec test
Matthijs Mekking [Fri, 12 Apr 2019 13:41:48 +0000 (15:41 +0200)] 
Fix dnssec test

The following changes were needed:

* Remove dnskey-sig-validity option (added in 9.12)
* Replace rndccmd, dig_with_opts with export variables
* Remove tests for CDNSKEY and CDS (in 9.11 always signed with ZSK)

7 years agoFix copyrights
Matthijs Mekking [Fri, 12 Apr 2019 09:31:41 +0000 (11:31 +0200)] 
Fix copyrights

7 years agoWith update-check-ksk also consider offline keys
Matthijs Mekking [Fri, 22 Mar 2019 14:42:10 +0000 (15:42 +0100)] 
With update-check-ksk also consider offline keys

The option `update-check-ksk` will look if both KSK and ZSK are
available before signing records.  It will make sure the keys are
active and available.  However, for operational practices keys may
be offline.  This commit relaxes the update-check-ksk check and will
mark a key that is offline to be available when adding signature
tasks.

(cherry picked from commit 3cb8c49c73906b28921012619a3bb87805613b81)
(cherry picked from commit b508cffeee3bfb8bc7dcf39db59ec3782a5d9e4c)

7 years agoStyle: some curly brackets
Matthijs Mekking [Thu, 14 Mar 2019 08:44:01 +0000 (09:44 +0100)] 
Style: some curly brackets

(cherry picked from commit 2e83e3255a9c0096e1d386839ff2b72ea0185ac5)
(cherry picked from commit 42b0bf4d3bab180876d4803fe2ec1f6e93064b28)

7 years agoAdd detail on echo message in autosign test
Matthijs Mekking [Thu, 14 Mar 2019 08:43:14 +0000 (09:43 +0100)] 
Add detail on echo message in autosign test

(cherry picked from commit d330986374d434e8a5101478cc6b476b42fa588a)
(cherry picked from commit d281d9ae99985772db13fb3dce0c0e7e2fb5f5b8)

7 years agoAdd test for ZSK rollover while KSK offline
Matthijs Mekking [Thu, 14 Mar 2019 08:32:20 +0000 (09:32 +0100)] 
Add test for ZSK rollover while KSK offline

This commit adds a lengthy test where the ZSK is rolled but the
KSK is offline (except for when the DNSKEY RRset is changed).  The
specific scenario has the `dnskey-kskonly` configuration option set
meaning the DNSKEY RRset should only be signed with the KSK.

A new zone `updatecheck-kskonly.secure` is added to test against,
that can be dynamically updated, and that can be controlled with rndc
to load the DNSSEC keys.

There are some pre-checks for this test to make sure everything is
fine before the ZSK roll, after the new ZSK is published, and after
the old ZSK is deleted.  Note there are actually two ZSK rolls in
quick succession.

When the latest added ZSK becomes active and its predecessor becomes
inactive, the KSK is offline.  However, the DNSKEY RRset did not
change and it has a good signature that is valid for long enough.
The expected behavior is that the DNSKEY RRset stays signed with
the KSK only (signature does not need to change).  However, the
test will fail because after reconfiguring the keys for the zone,
it wants to add re-sign tasks for the new active keys (in sign_apex).
Because the KSK is offline, named determines that the only other
active key, the latest ZSK, will be used to resign the DNSKEY RRset,
in addition to keeping the RRSIG of the KSK.

The question is: Why do we need to resign the DNSKEY RRset
immediately when a new key becomes active?  This is not required,
only once the next resign task is triggered the new active key
should replace signatures that are in need of refreshing.

(cherry-picked from commit c48b85d0a3c34480179d44e736e3e535dbae1001)

7 years agoMerge branch '980-util-update_copyrights-now-needs-to-handle-files-with-cr-lf-endings...
Mark Andrews [Fri, 12 Apr 2019 04:45:20 +0000 (00:45 -0400)] 
Merge branch '980-util-update_copyrights-now-needs-to-handle-files-with-cr-lf-endings-v9_11' into 'v9_11'

Resolve "util/update_copyrights now needs to handle files with CR LF endings."

See merge request isc-projects/bind9!1802

7 years agosupport files which have CR LF ending like those in win32utils
Mark Andrews [Fri, 12 Apr 2019 04:09:01 +0000 (14:09 +1000)] 
support files which have CR LF ending like those in win32utils

(cherry picked from commit e76936fd85d2b05058f7de11ce1ca9e044b59c04)

7 years agoMerge branch '963-dnstap-check-ra-v9_14-v9_11' into 'v9_11'
Evan Hunt [Fri, 12 Apr 2019 02:26:22 +0000 (22:26 -0400)] 
Merge branch '963-dnstap-check-ra-v9_14-v9_11' into 'v9_11'

dnstap: if recursion is not available, log queries as AQ instead of CQ

See merge request isc-projects/bind9!1800

7 years agoCHANGES
Evan Hunt [Thu, 11 Apr 2019 22:20:46 +0000 (15:20 -0700)] 
CHANGES

(cherry picked from commit ded4650794b6444c605851dbdf06ef0ec2b22c51)

7 years agodnstap: if recursion is not available, log queries as AQ instead of CQ
Evan Hunt [Wed, 27 Mar 2019 16:45:45 +0000 (17:45 +0100)] 
dnstap: if recursion is not available, log queries as AQ instead of CQ

(cherry picked from commit 1f578cdb1252575f097a83a831bdfb59d346ef09)
(cherry picked from commit f6c3b135222b5207d5bca4522dc938bf4d2e742e)

7 years agoMerge branch '899-add-totext-fromtext-to-wirechecks-v9_11' into 'v9_11'
Mark Andrews [Thu, 11 Apr 2019 10:04:57 +0000 (06:04 -0400)] 
Merge branch '899-add-totext-fromtext-to-wirechecks-v9_11' into 'v9_11'

Run wire check through "totext" and "fromtext" methods including multi-line.

See merge request isc-projects/bind9!1790

7 years agoAdd CHANGES
Mark Andrews [Thu, 21 Mar 2019 11:36:02 +0000 (22:36 +1100)] 
Add CHANGES

(cherry picked from commit 307a1b563b1c771573ef97e52add98bcff0ea193)

7 years agoAdd debug printfs
Mark Andrews [Thu, 28 Feb 2019 07:04:02 +0000 (18:04 +1100)] 
Add debug printfs

(cherry picked from commit b78e128a2ff26950bb9ff186b0614279e6f450c2)

7 years agoPrevent WIRE_INVALID() being called without a argument
Mark Andrews [Thu, 28 Feb 2019 07:04:02 +0000 (18:04 +1100)] 
Prevent WIRE_INVALID() being called without a argument

(cherry picked from commit e73a5b0ce3c5364ab9ac66587be413bfe51080d8)

7 years agoCheck multi-line output from dns_rdata_tofmttext()
Mark Andrews [Thu, 28 Feb 2019 06:06:01 +0000 (17:06 +1100)] 
Check multi-line output from dns_rdata_tofmttext()

Check that multi-line output from dns_rdata_tofmttext() can be read
back in by dns_rdata_fromtext().

(cherry picked from commit b089f43b7a4f0c3b51dc88fbe60d9c79b87e9893)

7 years agoProcess master file comments and make input invalid again
Mark Andrews [Thu, 11 Apr 2019 08:54:24 +0000 (18:54 +1000)] 
Process master file comments and make input invalid again

(cherry picked from commit 1a75a5cee6a8c0157cb9ed86361ba4b3f179bdd1)

7 years agoSet 'specials' to match 'specials' in 'lib/dns/master.c'
Mark Andrews [Thu, 28 Feb 2019 06:00:15 +0000 (17:00 +1100)] 
Set 'specials' to match 'specials' in 'lib/dns/master.c'

(cherry picked from commit 7941a9554fe00697c81b52051b41912966a1e36a)

7 years agoFix whitespace so that the names align
Mark Andrews [Thu, 28 Feb 2019 05:58:56 +0000 (16:58 +1100)] 
Fix whitespace so that the names align

(cherry picked from commit cc5e16e4d3fcbde42d35ed6d6eec8dcab1482d71)

7 years agoAdd dns_rdata_totext() and dns_rdata_fromtext() to fromwire
Mark Andrews [Tue, 26 Feb 2019 23:21:33 +0000 (10:21 +1100)] 
Add dns_rdata_totext() and dns_rdata_fromtext() to fromwire

Add dns_rdata_totext() and dns_rdata_fromtext() to fromwire for
valid inputs to ensure that what we accept in dns_rdata_fromwire()
can be written out and read back in.

(cherry picked from commit 36f30f57313747c536ea9afcd037086edea3ecb0)

7 years agoMerge branch '965-delv-prints-weird-ttl-values-2-v9_11' into 'v9_11'
Mark Andrews [Wed, 10 Apr 2019 06:32:04 +0000 (02:32 -0400)] 
Merge branch '965-delv-prints-weird-ttl-values-2-v9_11' into 'v9_11'

Test that dig and delve print correct TTL values.

See merge request isc-projects/bind9!1787

7 years agoadd CHANGES
Mark Andrews [Wed, 10 Apr 2019 04:47:48 +0000 (14:47 +1000)] 
add CHANGES

(cherry picked from commit dfc485b02e17002d25548dec422cf6da82fb9a3a)

7 years agoCheck dig TTLs.
Matthijs Mekking [Fri, 5 Apr 2019 13:31:10 +0000 (15:31 +0200)] 
Check dig TTLs.

(cherry picked from commit 195277ca6df93be3c4d6721071011b9581e6f527)

7 years agoCheck delv TTLs.
Mark Andrews [Mon, 1 Apr 2019 07:46:41 +0000 (18:46 +1100)] 
Check delv TTLs.

(cherry picked from commit 146202d6a8ef4f27b99554aaf54530227b2cde9a)

7 years agoMerge branch '899-enforce-hash-in-ds-v9_11' into 'v9_11'
Mark Andrews [Wed, 10 Apr 2019 06:00:50 +0000 (02:00 -0400)] 
Merge branch '899-enforce-hash-in-ds-v9_11' into 'v9_11'

enforce DS hash exists

See merge request isc-projects/bind9!1784

7 years agoadd CHANGES
Mark Andrews [Thu, 21 Mar 2019 11:07:10 +0000 (22:07 +1100)] 
add CHANGES

(cherry picked from commit 97b7360ce1b1bf97204e9ef7783f2d08fe6f5c6a)

7 years agoadd ds unit test
Mark Andrews [Wed, 27 Feb 2019 04:33:37 +0000 (15:33 +1100)] 
add ds unit test

(cherry picked from commit 6eb28eda1e00c9f5cbd6a4d37cd06f888f688e3a)

7 years agoenforce DS hash exists
Mark Andrews [Tue, 26 Feb 2019 23:32:18 +0000 (10:32 +1100)] 
enforce DS hash exists

(cherry picked from commit b274f3fad77d7325650ee3d1e4fd7f94b92edebe)

7 years agoMerge branch '852-run-fromtext-through-fromwire-v9_11' into 'v9_11'
Mark Andrews [Wed, 10 Apr 2019 03:37:59 +0000 (23:37 -0400)] 
Merge branch '852-run-fromtext-through-fromwire-v9_11' into 'v9_11'

check that from fromtext produces valid towire input

See merge request isc-projects/bind9!1781

7 years agoadd CHANGES
Mark Andrews [Wed, 10 Apr 2019 01:16:55 +0000 (11:16 +1000)] 
add CHANGES

(cherry picked from commit d712b88048c5efa37f74acefb8515a734539efed)