]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
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

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

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

7 years agoMerge branch 'each-win32-parallel-tests' into 'master'
Evan Hunt [Mon, 6 May 2019 22:53:32 +0000 (18:53 -0400)] 
Merge branch 'each-win32-parallel-tests' into 'master'

enable parallel system tests on windows

See merge request isc-projects/bind9!1401

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

7 years agomove the test lists into conf.sh.common
Evan Hunt [Thu, 31 Jan 2019 02:16:07 +0000 (18:16 -0800)] 
move the test lists into conf.sh.common

there is now a common list of tests in conf.sh.common, with the
tests that are either unique to windows or to unix, or which are
enabled or disabled by configure or Configure, being listed in
separate variables in conf.sh.in and conf.sh.win32.

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.

7 years agoMerge branch 'each-simplify-stats' into 'master'
Evan Hunt [Mon, 6 May 2019 20:08:34 +0000 (16:08 -0400)] 
Merge branch 'each-simplify-stats' into 'master'

simplify the isc_stat structure to take avantage of atomics

See merge request isc-projects/bind9!1493

7 years agoCHANGES
Evan Hunt [Thu, 14 Mar 2019 22:13:18 +0000 (15:13 -0700)] 
CHANGES

7 years agosimplify the isc_stat structure to take avantage of atomics
Evan Hunt [Fri, 8 Feb 2019 03:41:43 +0000 (19:41 -0800)] 
simplify the isc_stat structure to take avantage of atomics

7 years agoMerge branch '1000-arm-doc-rpz-nodata-policy-says-ancount-1' into 'master'
Mark Andrews [Mon, 6 May 2019 07:35:15 +0000 (03:35 -0400)] 
Merge branch '1000-arm-doc-rpz-nodata-policy-says-ancount-1' into 'master'

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

Closes #1000

See merge request isc-projects/bind9!1889

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

7 years agoMerge branch 'ondrej/update-dir-locals.el-for-config.h' into 'master'
Ondřej Surý [Thu, 2 May 2019 08:55:42 +0000 (04:55 -0400)] 
Merge branch 'ondrej/update-dir-locals.el-for-config.h' into 'master'

Adjust .dir-locals.el to make clang always include config.h

See merge request isc-projects/bind9!1888

7 years agoAdjust .dir-locals.el to make clang always include config.h
Ondřej Surý [Thu, 2 May 2019 08:52:08 +0000 (10:52 +0200)] 
Adjust .dir-locals.el to make clang always include config.h

7 years agoMerge branch '956-fix-dnstap-test' into 'master'
Evan Hunt [Fri, 26 Apr 2019 22:53:11 +0000 (18:53 -0400)] 
Merge branch '956-fix-dnstap-test' into 'master'

attach memory context sooner so that cleanup will work correctly

Closes #956

See merge request isc-projects/bind9!1882

7 years agoattach memory context sooner so that cleanup will work correctly
Evan Hunt [Fri, 26 Apr 2019 22:24:45 +0000 (15:24 -0700)] 
attach memory context sooner so that cleanup will work correctly

7 years agoMerge branch '999-tcp-client-crash-v9_11-locks-v9_14-master' into 'master'
Ondřej Surý [Fri, 26 Apr 2019 20:25:49 +0000 (16:25 -0400)] 
Merge branch '999-tcp-client-crash-v9_11-locks-v9_14-master' into 'master'

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

Closes #999

See merge request isc-projects/bind9!1881

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

(cherry picked from commit ef49780d30d3ddc5735cfc32561b678a634fa72f)
(cherry picked from commit e203d4d65a3bbba4303b9f185bd38314c0a3f77c)

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

Simplify trailing period handling in system tests

See merge request isc-projects/bind9!1860

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.

7 years agoMerge branch 'michal/fix-rare-allow-query-system-test-failures' into 'master'
Michał Kępień [Fri, 26 Apr 2019 09:31:25 +0000 (05:31 -0400)] 
Merge branch 'michal/fix-rare-allow-query-system-test-failures' into 'master'

Fix rare "allow-query" system test failures

See merge request isc-projects/bind9!1857

7 years agoMake root zone data match root hints
Michał Kępień [Fri, 26 Apr 2019 09:05:56 +0000 (11:05 +0200)] 
Make root zone data match root hints

In the "allow-query" system test, ns3 uses a root hints file which
contains a single entry for a.root-servers.nil (10.53.0.1).  This name
is not present in the root zone served by ns1, which means querying it
for that name and any type will yield an NXDOMAIN response.  When
combined with unfavorable thread scheduling, this can lead to ns3
caching an NXDOMAIN response for the only root server it is aware of and
thus to false positives for the "allow-query" system test caused by ns3
returning unexpected SERVFAIL responses.  Fix by modifying the root zone
served by ns1 so that authoritative responses to a.root-servers.nil
queries match the root hints file used by ns3.

7 years agoMerge branch '982-filter-aaaa-race' into 'master'
Evan Hunt [Fri, 26 Apr 2019 07:05:39 +0000 (03:05 -0400)] 
Merge branch '982-filter-aaaa-race' into 'master'

Resolve "filter-aaaa crash in 9.14.0"

Closes #982

See merge request isc-projects/bind9!1861

7 years agoCHANGES
Evan Hunt [Thu, 25 Apr 2019 04:54:03 +0000 (21:54 -0700)] 
CHANGES

7 years agoassociate a lock with the memory pool in the filter-aaaa plugin
Evan Hunt [Thu, 25 Apr 2019 04:52:06 +0000 (21:52 -0700)] 
associate a lock with the memory pool in the filter-aaaa plugin

7 years agoMerge branch '615-tcp-client-crash-v9_14-master' into 'master'
Ondřej Surý [Thu, 25 Apr 2019 15:14:50 +0000 (11:14 -0400)] 
Merge branch '615-tcp-client-crash-v9_14-master' into 'master'

Resolve "tcp-clients mostly ineffective"

Closes #615

See merge request isc-projects/bind9!1871

7 years agoCHANGES, release note
Evan Hunt [Thu, 3 Jan 2019 19:04:41 +0000 (11:04 -0800)] 
CHANGES, release note

(cherry picked from commit 244e44af432121a05e0a308b7ccce96a8ecd28ab)
(cherry picked from commit 79fad84bf6981dfd2a13971d966c0ebee057c448)

7 years agorestore allowance for tcp-clients < interfaces
Evan Hunt [Fri, 22 Feb 2019 22:53:30 +0000 (14:53 -0800)] 
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 02365b87ea0b1ea5ea8b17376f6734c811c95e61)
(cherry picked from commit cae79e1bab677ed1c2ce3adc5d54163a78f0d30b)

7 years agorefactor tcpquota and pipeline refs; allow special-case overrun in isc_quota
Evan Hunt [Wed, 6 Feb 2019 19:27:11 +0000 (11:27 -0800)] 
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 stdatomic

(cherry picked from commit a8dd133d270873b736c1be9bf50ebaa074f5b38f)
(cherry picked from commit 4a8fc979c49104534cf6be5d81dc54da5b6836c9)

7 years agobetter tcpquota accounting and client mortality checks
Evan Hunt [Wed, 6 Feb 2019 19:26:36 +0000 (11:26 -0800)] 
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 427a2fb4d17bc04ca3262f58a9dcf5c93fc6d33e)
(cherry picked from commit 08968412726d680777de6e596c836c6be07819a1)

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 31f392db20207a1b05d6286c3c56f76c8d69e574)
(cherry picked from commit 2211120222b5f008a96145474b7f6749d4307028)

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 9e74969f85329fe26df2fad390468715215e2edd)
(cherry picked from commit d7e84cee0bd7957a0707b86d47c29de4b798d350)

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 eafcff07c25bdbe038ae1e4b6660602a080b9395)
(cherry picked from commit 9e7617cc84f465769be1a3f426f30cd516220902)

7 years agoMerge branch '880-secure-asdfasdfasdf-abacadabra-crash-v9_14-master' into 'master'
Ondřej Surý [Thu, 25 Apr 2019 14:27:33 +0000 (10:27 -0400)] 
Merge branch '880-secure-asdfasdfasdf-abacadabra-crash-v9_14-master' into 'master'

Resolve "CVE-2019-6467: lib/ns/query.c:9176: INSIST(!qctx->is_zone) failed, back trace"

Closes #880

See merge request isc-projects/bind9!1868

7 years agoCHANGES, release note
Evan Hunt [Tue, 12 Mar 2019 22:21:10 +0000 (15:21 -0700)] 
CHANGES, release note

(cherry picked from commit ab5473007e91f011d003ff0ba5ab32fa0d56360c)
(cherry picked from commit 404be59527c95b4631f2c6cdf072d5c7e0e3240d)

7 years agoFix nxdomain-redirect assertion failure
Matthijs Mekking [Tue, 26 Feb 2019 14:55:29 +0000 (15:55 +0100)] 
Fix nxdomain-redirect assertion failure

- Always set is_zonep in query_getdb; previously it was only set if
  result was ISC_R_SUCCESS or ISC_R_NOTFOUND.
- Don't reset is_zone for redirect.
- Style cleanup.

(cherry picked from commit a85cc641d7a4c66cbde03cc4e31edc038a24df46)
(cherry picked from commit 486a201149ab7523e3b3089fc84f20d7f1a07a24)

7 years agoAdd test for nxdomain-redirect ncachenxdomain
Matthijs Mekking [Tue, 26 Feb 2019 14:38:18 +0000 (15:38 +0100)] 
Add test for nxdomain-redirect ncachenxdomain

(cherry picked from commit 2d65626630c19bb8159a025accb18e5179da5dc3)
(cherry picked from commit 05d29443eb422748eec0e359f03474bbb983d28c)

7 years agoMerge branch '995-dlz_open_driver-fix-build-failure-without-dlfcn-h' into 'master'
Mark Andrews [Tue, 23 Apr 2019 23:18:19 +0000 (19:18 -0400)] 
Merge branch '995-dlz_open_driver-fix-build-failure-without-dlfcn-h' into 'master'

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

Closes #995

See merge request isc-projects/bind9!1854

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

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

7 years agoMerge branch '996-wrong-key-id-is-displayed-for-rsamd5-keys' into 'master'
Mark Andrews [Tue, 23 Apr 2019 22:36:57 +0000 (18:36 -0400)] 
Merge branch '996-wrong-key-id-is-displayed-for-rsamd5-keys' into 'master'

Resolve "Wrong key id is displayed for RSAMD5 keys."

Closes #996

See merge request isc-projects/bind9!1852

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

7 years agocompute the RSAMD5 key id
Mark Andrews [Tue, 23 Apr 2019 22:05:27 +0000 (08:05 +1000)] 
compute the RSAMD5 key id

7 years agoMerge branch 'matthijs-fix-dnssec-test-intermittent-failure-kskonly' into 'master'
Matthijs Mekking [Tue, 23 Apr 2019 15:11:19 +0000 (11:11 -0400)] 
Merge branch 'matthijs-fix-dnssec-test-intermittent-failure-kskonly' into 'master'

Fix dnssec test intermittent failure related to kskonly bugfix

See merge request isc-projects/bind9!1836

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.

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

7 years agoMerge branch '992-fetchcount-increment-in-resume-qmin' into 'master'
Witold Krecicki [Tue, 23 Apr 2019 14:27:12 +0000 (10:27 -0400)] 
Merge branch '992-fetchcount-increment-in-resume-qmin' into 'master'

When resuming from qname-minimization increase fetches-per-zone counters for the 'new' zone

Closes #992

See merge request isc-projects/bind9!1847

7 years agoWhen resuming from qname-minimization increase fetches-per-zone counters for the...
Witold Kręcicki [Tue, 23 Apr 2019 11:50:02 +0000 (13:50 +0200)] 
When resuming from qname-minimization increase fetches-per-zone counters for the 'new' zone

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

Minor "nsupdate" system test tweaks

See merge request isc-projects/bind9!1837

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.

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.

7 years agoMerge branch 'cleanup-socket-references' into 'master'
Mark Andrews [Tue, 23 Apr 2019 04:29:30 +0000 (00:29 -0400)] 
Merge branch 'cleanup-socket-references' into 'master'

use isc_refcount_decrement to decrement NEWCONNSOCK(dev)->references; use...

See merge request isc-projects/bind9!1821

7 years agouse isc_refcount_decrement to decrement NEWCONNSOCK(dev)->references; use isc_refcoun...
Mark Andrews [Thu, 18 Apr 2019 06:51:52 +0000 (16:51 +1000)] 
use isc_refcount_decrement to decrement NEWCONNSOCK(dev)->references; use isc_refcount_increment instead of isc_refcount_init in socket_create

7 years agoMerge branch 'clang-false-positive' into 'master'
Mark Andrews [Tue, 23 Apr 2019 03:19:28 +0000 (23:19 -0400)] 
Merge branch 'clang-false-positive' into 'master'

add assertions to silence clang false positive

See merge request isc-projects/bind9!1808

7 years agoadd assertions to silence clang false positive
Mark Andrews [Tue, 16 Apr 2019 05:34:22 +0000 (15:34 +1000)] 
add assertions to silence clang false positive

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

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

Closes #962

See merge request isc-projects/bind9!1815

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

7 years agoMerge branch '990-return-servfail' into 'master'
Evan Hunt [Tue, 23 Apr 2019 02:07:50 +0000 (22:07 -0400)] 
Merge branch '990-return-servfail' into 'master'

force SERVFAIL response in the gotanswer failure case

Closes #990

See merge request isc-projects/bind9!1838

7 years agoCHANGES
Evan Hunt [Tue, 23 Apr 2019 01:46:42 +0000 (18:46 -0700)] 
CHANGES

7 years agoforce SERVFAIL response in the gotanswer failure case
Evan Hunt [Tue, 23 Apr 2019 00:19:23 +0000 (17:19 -0700)] 
force SERVFAIL response in the gotanswer failure case

- named could return FORMERR if parsing iterative responses
  ended with a result code such as DNS_R_OPTERR. instead of
  computing a response code based on the result, in this case
  we now just force the response to be SERVFAIL.

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

using 0 instead of false

See merge request isc-projects/bind9!1820

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

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

Miscellaneous Windows system test fixes

See merge request isc-projects/bind9!1794

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

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.

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.

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

win32: remove lock file upon shutdown

Closes #979

See merge request isc-projects/bind9!1793

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]

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.

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

win32: fix service state reported during shutdown

Closes #978

See merge request isc-projects/bind9!1792

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]

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.

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

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

Closes #989

See merge request isc-projects/bind9!1826

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

7 years agoMerge branch 'ondrej/text-files-dont-need-copyright' into 'master'
Ondřej Surý [Thu, 18 Apr 2019 06:53:51 +0000 (02:53 -0400)] 
Merge branch 'ondrej/text-files-dont-need-copyright' into 'master'

Simple text files don't need copyright header

See merge request isc-projects/bind9!1809

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

7 years agoMerge branch 'ondrej/refactor-DNS_RDATASET_FIXED-code-flow' into 'master'
Ondřej Surý [Wed, 17 Apr 2019 08:46:37 +0000 (04:46 -0400)] 
Merge branch 'ondrej/refactor-DNS_RDATASET_FIXED-code-flow' into 'master'

Refactor the DNS_RDATASET_FIXED code to use macros instead of ifdefs

See merge request isc-projects/bind9!1811

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

7 years agoMerge branch 'placeholder' into 'master'
Evan Hunt [Tue, 16 Apr 2019 19:57:26 +0000 (15:57 -0400)] 
Merge branch 'placeholder' into 'master'

placeholder

See merge request isc-projects/bind9!1813

7 years agoplaceholder
Evan Hunt [Tue, 16 Apr 2019 19:56:59 +0000 (12:56 -0700)] 
placeholder

7 years agoMerge branch '817-out-of-zone-additional' into 'master'
Evan Hunt [Mon, 15 Apr 2019 18:23:16 +0000 (14:23 -0400)] 
Merge branch '817-out-of-zone-additional' into 'master'

out of zone additional data

Closes #817

See merge request isc-projects/bind9!1366

7 years agoCHANGES
Evan Hunt [Thu, 14 Mar 2019 22:02:26 +0000 (15:02 -0700)] 
CHANGES

7 years agorevise "minimal-responses" documentation in the ARM
Evan Hunt [Fri, 12 Apr 2019 21:18:00 +0000 (14:18 -0700)] 
revise "minimal-responses" documentation in the ARM

7 years agoif recursion is allowed and minimal-responses is no, search other databases
Evan Hunt [Sat, 19 Jan 2019 22:47:58 +0000 (14:47 -0800)] 
if recursion is allowed and minimal-responses is no, search other databases

this restores functionality that was removed in commit 03be5a6b4e,
allowing named to search in authoritative zone databases outside the
current zone for additional data, if and only if recursion is allowed
and minimal-responses is disabled.

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

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

Closes #980

See merge request isc-projects/bind9!1801

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

7 years agoMerge branch '963-dnstap-check-ra' into 'master'
Evan Hunt [Thu, 11 Apr 2019 22:43:14 +0000 (18:43 -0400)] 
Merge branch '963-dnstap-check-ra' into 'master'

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

Closes #963

See merge request isc-projects/bind9!1756

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

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

7 years agoMerge branch '972-auto-validation-summary' into 'master'
Evan Hunt [Thu, 11 Apr 2019 15:42:27 +0000 (11:42 -0400)] 
Merge branch '972-auto-validation-summary' into 'master'

configure summary failed to report --disable-auto-validation correctly

Closes #972

See merge request isc-projects/bind9!1768

7 years agoconfigure summary failed to report --disable-auto-validation correctly
Evan Hunt [Thu, 4 Apr 2019 17:43:33 +0000 (10:43 -0700)] 
configure summary failed to report --disable-auto-validation correctly

7 years agoMerge branch '763-matthijs-active-zsk-but-ksk-only-2' into 'master'
Matthijs Mekking [Thu, 11 Apr 2019 13:41:30 +0000 (09:41 -0400)] 
Merge branch '763-matthijs-active-zsk-but-ksk-only-2' into 'master'

Don't sign DNSKEY RRset with ZSK if the KSK is offline and dnskey-kskonly

Closes #763

See merge request isc-projects/bind9!1747

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.

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

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

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.

7 years agoMerge branch '899-add-totext-fromtext-to-wirechecks' into 'master'
Mark Andrews [Thu, 11 Apr 2019 09:37:58 +0000 (05:37 -0400)] 
Merge branch '899-add-totext-fromtext-to-wirechecks' into 'master'

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

See merge request isc-projects/bind9!1572

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

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

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