]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
7 years agoCorrectly invoke stop.pl when start.pl fails
Michał Kępień [Tue, 19 Mar 2019 09:26:36 +0000 (10:26 +0100)] 
Correctly invoke stop.pl when start.pl fails

MR !1141 broke the way stop.pl is invoked when start.pl fails:

  - start.pl changes the working directory to $testdir/$server before
    attempting to start $server,

  - commit 27ee629e6b583f60fea0ab78fb3ebd0d1d71d9d2 causes the $testdir
    variable in stop.pl to be determined using the $SYSTEMTESTTOP
    environment variable, which is set to ".." by all tests.sh scripts,

  - commit e227815af51c0656e22e5aebfe99e2399106b31c makes start.pl pass
    $test (the test's name) rather than $testdir (the path to the test's
    directory) to stop.pl when a given server fails to start.

Thus, when a server is restarted from within a tests.sh script and such
a restart fails, stop.pl attempts to look for the server directory in a
nonexistent location ($testdir/$server/../$test, i.e. $testdir/$test,
instead of $testdir/../$test).  Fix the issue by changing the working
directory before stop.pl is invoked in the scenario described above.

(cherry picked from commit 4afad2a047a9883e52fd3b7af2947b7917ece2a1)

7 years agoMerge branch '945-remove-revoked-root-key-from-bind-keys-v9_14-v9_11' into 'v9_11'
Evan Hunt [Tue, 19 Mar 2019 04:30:51 +0000 (00:30 -0400)] 
Merge branch '945-remove-revoked-root-key-from-bind-keys-v9_14-v9_11' into 'v9_11'

Resolve "Remove revoked root key from bind.keys."

See merge request isc-projects/bind9!1709

7 years agoRemove revoked root DNSKEY from bind.keys.
Mark Andrews [Mon, 18 Mar 2019 23:32:42 +0000 (10:32 +1100)] 
Remove revoked root DNSKEY from bind.keys.

(cherry picked from commit 0e805b58e8d05d951eac9cf6afa90416bd223ec0)
(cherry picked from commit 3954d4ec30bb4708d50efee1368611e7f73b8c4b)

7 years agoMerge branch '813-matthijs-failure-loading-rpz-v9_11' into 'v9_11'
Matthijs Mekking [Fri, 15 Mar 2019 08:58:03 +0000 (04:58 -0400)] 
Merge branch '813-matthijs-failure-loading-rpz-v9_11' into 'v9_11'

Resolve "Problems after failure of loading rpz [ISC-support #14002]"

See merge request isc-projects/bind9!1566

7 years agoAdd test for rpz zone load fail
Matthijs Mekking [Fri, 8 Feb 2019 16:13:52 +0000 (17:13 +0100)] 
Add test for rpz zone load fail

7 years agoMake RPZ tests more readable
Matthijs Mekking [Wed, 6 Feb 2019 14:40:06 +0000 (15:40 +0100)] 
Make RPZ tests more readable

7 years agoAdd README to RPZ tests
Matthijs Mekking [Wed, 6 Feb 2019 14:36:21 +0000 (15:36 +0100)] 
Add README to RPZ tests

7 years agoMerge branch '940-unit-dnstap-pkcs11-tz-v9_11' into 'v9_11'
Mark Andrews [Fri, 15 Mar 2019 05:35:57 +0000 (01:35 -0400)] 
Merge branch '940-unit-dnstap-pkcs11-tz-v9_11' into 'v9_11'

Fix regression in dnstap_test with native pkcs11

See merge request isc-projects/bind9!1701

7 years agoadd CHANGES
Mark Andrews [Fri, 15 Mar 2019 05:08:03 +0000 (16:08 +1100)] 
add CHANGES

(cherry picked from commit 788f7841911331510bff83989ad01a306ed2cc92)

7 years agoFix regression in dnstap_test with native pkcs11
Petr Menšík [Thu, 14 Mar 2019 12:40:14 +0000 (13:40 +0100)] 
Fix regression in dnstap_test with native pkcs11

Change to cmocka broken initialization of TZ environment. This time,
commit 1cf12540515e4a3fc93ace02b81815209f1e709e is not soon enough. Has
to be moved more forward, before any other tests. It library is not full
reinitialized on each test.

(cherry picked from commit 71c4fad59227a3b879071c6babc5c18099be01c0)

7 years agoMerge branch 'pmensik-skip-timer-test' into 'v9_11'
Evan Hunt [Thu, 14 Mar 2019 21:31:08 +0000 (17:31 -0400)] 
Merge branch 'pmensik-skip-timer-test' into 'v9_11'

Workaround to kyua bug

See merge request isc-projects/bind9!1697

7 years agoWorkaround to kyua bug
Petr Mensik [Thu, 14 Mar 2019 20:05:34 +0000 (21:05 +0100)] 
Workaround to kyua bug

Kyua 0.13 is not able to correctly handle whole test skipping.
Make workaround to it, include skipping message.

7 years agoMerge branch '938-cppcheck-format-issues-v9_11' into 'v9_11'
Evan Hunt [Thu, 14 Mar 2019 21:03:35 +0000 (17:03 -0400)] 
Merge branch '938-cppcheck-format-issues-v9_11' into 'v9_11'

Resolve "Cppcheck format issues."

See merge request isc-projects/bind9!1696

7 years agoforce promotion to unsigned int
Mark Andrews [Thu, 14 Mar 2019 08:46:10 +0000 (19:46 +1100)] 
force promotion to unsigned int

(cherry picked from commit 1eba2c5b060c1e8f30658f0f834ecc7fe0dac492)

7 years agoMerge branch '890-assert-the-hevent-rdataset-is-non-null-v9_11' into 'v9_11'
Evan Hunt [Thu, 14 Mar 2019 20:28:43 +0000 (16:28 -0400)] 
Merge branch '890-assert-the-hevent-rdataset-is-non-null-v9_11' into 'v9_11'

Resolve "Assert the hevent->rdataset is non-NULL."

See merge request isc-projects/bind9!1694

7 years agoassert hevent->rdataset is non NULL
Mark Andrews [Wed, 20 Feb 2019 00:45:36 +0000 (11:45 +1100)] 
assert hevent->rdataset is non NULL

(cherry picked from commit d8d04edfba54df9a21ef87d4b0ae63a8e81fae2d)

7 years agoMerge branch '937-potential-null-pointer-dereference-in-bin-tests-system-dlzexternal...
Evan Hunt [Thu, 14 Mar 2019 20:09:07 +0000 (16:09 -0400)] 
Merge branch '937-potential-null-pointer-dereference-in-bin-tests-system-dlzexternal-driver-c-v9_11' into 'v9_11'

Resolve "potential null pointer dereference in bin/tests/system/dlzexternal/driver.c"

See merge request isc-projects/bind9!1691

7 years agocheck that state and state->log are non NULL before calling state->log
Mark Andrews [Thu, 14 Mar 2019 03:40:52 +0000 (14:40 +1100)] 
check that state and state->log are non NULL before calling state->log

(cherry picked from commit 7bf675033093c8aff5bc3047b40b4ed4222e5735)

7 years agoMerge branch '935-fix-ecc-algorithms-unused-constants-in-pkcs-11-build-c116fb96-falls...
Mark Andrews [Thu, 14 Mar 2019 02:29:46 +0000 (22:29 -0400)] 
Merge branch '935-fix-ecc-algorithms-unused-constants-in-pkcs-11-build-c116fb96-falls-short' into 'v9_11'

Resolve "Fix ECC algorithms unused constants in PKCS#11 build (c116fb96) falls short"

See merge request isc-projects/bind9!1682

7 years agopkcs11-kegen build failed if ECDSA was not supported
Mark Andrews [Thu, 14 Mar 2019 02:09:48 +0000 (13:09 +1100)] 
pkcs11-kegen build failed if ECDSA was not supported

7 years agoMerge branch '936-missing-unlocks-in-sdlz-c-v9_11' into 'v9_11'
Mark Andrews [Thu, 14 Mar 2019 00:08:19 +0000 (20:08 -0400)] 
Merge branch '936-missing-unlocks-in-sdlz-c-v9_11' into 'v9_11'

Resolve "Missing unlocks in sdlz.c"

See merge request isc-projects/bind9!1680

7 years agoadd CHANGES
Mark Andrews [Wed, 13 Mar 2019 21:55:35 +0000 (08:55 +1100)] 
add CHANGES

(cherry picked from commit 32f2ae3791880d89d2add7d8898de35819add0c6)

7 years agoadd missing MAYBE_UNLOCK
Mark Andrews [Tue, 12 Mar 2019 23:51:56 +0000 (10:51 +1100)] 
add missing MAYBE_UNLOCK

(cherry picked from commit ff8bf617e7b2fd6d57528f223e4d05baf7c9ab17)

7 years agoMerge branch '834-fix-race-in-fctx-cancel-v9_11' into 'v9_11'
Evan Hunt [Tue, 12 Mar 2019 20:18:45 +0000 (16:18 -0400)] 
Merge branch '834-fix-race-in-fctx-cancel-v9_11' into 'v9_11'

fix race in socket code

See merge request isc-projects/bind9!1674

7 years agoCHANGES
Witold Kręcicki [Tue, 12 Mar 2019 17:43:38 +0000 (18:43 +0100)] 
CHANGES

(cherry picked from commit 50f605429468620894d497b42fbabcc9dc009d69)

7 years agoFix a race in fctx_cancelquery.
Witold Kręcicki [Wed, 13 Feb 2019 10:10:31 +0000 (11:10 +0100)] 
Fix a race in fctx_cancelquery.

When sending an udp query (resquery_send) we first issue an asynchronous
isc_socket_connect and increment query->connects, then isc_socket_sendto2
and increment query->sends.
If we happen to cancel this query (fctx_cancelquery) we need to cancel
all operations we might have issued on this socket. If we are under very high
load the callback from isc_socket_connect (resquery_udpconnected) might have
not yet been fired. In this case we only cancel the CONNECT event on socket,
and ignore the SEND that's waiting there (as there is an `else if`).
Then we call dns_dispatch_removeresponse which kills the dispatcher socket
and calls isc_socket_close - but if system is under very high load, the send
we issued earlier might still not be complete - which triggers an assertion
because we're trying to close a socket that's still in use.

The fix is to always check if we have incomplete sends on the socket and cancel
them if we do.

(cherry picked from commit 56183a39173264854dbd3abe8d6b580a0058579e)

7 years agoMerge branch 'michal/silence-a-perl-warning-output-by-stop.pl-v9_11' into 'v9_11'
Michał Kępień [Tue, 12 Mar 2019 08:04:15 +0000 (04:04 -0400)] 
Merge branch 'michal/silence-a-perl-warning-output-by-stop.pl-v9_11' into 'v9_11'

[v9_11] Silence a Perl warning output by stop.pl

See merge request isc-projects/bind9!1670

7 years agoSilence a Perl warning output by stop.pl
Michał Kępień [Tue, 12 Mar 2019 07:42:48 +0000 (08:42 +0100)] 
Silence a Perl warning output by stop.pl

On Unix systems, the CYGWIN environment variable is not set at all when
BIND system tests are run.  If a named instance crashes on shutdown or
otherwise fails to clean up its pidfile and the CYGWIN environment
variable is not set, stop.pl will print an uninitialized value warning
on standard error.  Prevent this by using defined().

(cherry picked from commit 91e5a99b9b10e9cb6904f39a26c47e9dfd39693a)

7 years agoMerge branch 'ifconfig.sh-anywhere-v9_11' into 'v9_11'
Mark Andrews [Tue, 12 Mar 2019 03:24:54 +0000 (23:24 -0400)] 
Merge branch 'ifconfig.sh-anywhere-v9_11' into 'v9_11'

Allow ifconfig to be called from any directory

See merge request isc-projects/bind9!1668

7 years agoAllow ifconfig to be called from any directory
Petr Menšík [Mon, 25 Feb 2019 09:58:14 +0000 (10:58 +0100)] 
Allow ifconfig to be called from any directory

ifconfig.sh depends on config.guess for platform guessing. It uses it to
choose between ifconfig or ip tools to configure interfaces. If
system-wide automake script is installed and local was not found, use
platform guess. It should work well on mostly any sane platform. Still
prefers local guess, but passes when if cannot find it.

(cherry picked from commit 38301052e112cecfa8897e3b16e89e19bcfc1504)

7 years agoMerge branch '892-fix-redirect-name-v9_11' into 'v9_11'
Evan Hunt [Mon, 11 Mar 2019 18:39:15 +0000 (14:39 -0400)] 
Merge branch '892-fix-redirect-name-v9_11' into 'v9_11'

use qname in redirect2

See merge request isc-projects/bind9!1664

7 years agoadd CHANGES
Mark Andrews [Fri, 22 Feb 2019 05:25:34 +0000 (16:25 +1100)] 
add CHANGES

(cherry picked from commit ad785e4f93b8c3afe082e40eb25f9c88f93611b5)

7 years agouse client->query.qname
Mark Andrews [Thu, 21 Feb 2019 07:24:30 +0000 (18:24 +1100)] 
use client->query.qname

(cherry picked from commit 8758d36a5e0461fb3aee8f0dc5b35ddca98e00af)

7 years agoMerge branch 'michal/stabilize-the-gost-system-test' into 'v9_11'
Michał Kępień [Mon, 11 Mar 2019 12:48:05 +0000 (08:48 -0400)] 
Merge branch 'michal/stabilize-the-gost-system-test' into 'v9_11'

Stabilize the "gost" system test

See merge request isc-projects/bind9!1642

7 years agoStabilize the "gost" system test
Michał Kępień [Mon, 11 Mar 2019 12:30:40 +0000 (13:30 +0100)] 
Stabilize the "gost" system test

In the "gost" system test, the ./NS RRset returned in the response to
ns2's priming query might not yet be validated when ns2 assembles the
response to the ./SOA query.  If that happens, the ./NS RRset will not
be placed in the AUTHORITY section of the response to the ./SOA query,
triggering a false positive for the "gost" system test as the ./NS RRset
is always present in the response sent by ns1 (since it is authoritative
for the root zone).  As the purpose of the "gost" system test is to
check whether a zone signed using GOST is properly validated and only
positive responses are inspected, use the +noauth dig option for all
queries in that test, so that the contents of the AUTHORITY section do
not influence its outcome.

7 years agoMerge branch '928-stabilize-delzsk.example-zone-checks-v9_11' into 'v9_11'
Michał Kępień [Mon, 11 Mar 2019 12:28:15 +0000 (08:28 -0400)] 
Merge branch '928-stabilize-delzsk.example-zone-checks-v9_11' into 'v9_11'

[v9_11] Stabilize "delzsk.example" zone checks

See merge request isc-projects/bind9!1659

7 years agoStabilize "delzsk.example" zone checks
Michał Kępień [Mon, 11 Mar 2019 12:02:54 +0000 (13:02 +0100)] 
Stabilize "delzsk.example" zone checks

When a zone is converted from NSEC to NSEC3, the private record at zone
apex indicating that NSEC3 chain creation is in progress may be removed
during a different (later) zone_nsec3chain() call than the one which
adds the NSEC3PARAM record.  The "delzsk.example" zone check only waits
for the NSEC3PARAM record to start appearing in dig output while private
records at zone apex directly affect "rndc signing -list" output.  This
may trigger false positives for the "autosign" system test as the output
of the "rndc signing -list" command used for checking ZSK deletion
progress may contain extra lines which are not accounted for.  Ensure
the private record is removed from zone apex before triggering ZSK
deletion in the aforementioned check.

Also future-proof the ZSK deletion progress check by making it only look
at lines it should care about.

(cherry picked from commit e02de04e9723156003d4f52cb4cef282186f5bf7)

7 years agoMerge branch '129-dnssec-system-test-tweaks-v9_11' into 'v9_11'
Michał Kępień [Mon, 11 Mar 2019 12:02:08 +0000 (08:02 -0400)] 
Merge branch '129-dnssec-system-test-tweaks-v9_11' into 'v9_11'

[v9_11] "dnssec" system test tweaks

See merge request isc-projects/bind9!1657

7 years ago${ttl} must exist and be non null
Mark Andrews [Thu, 21 Feb 2019 00:14:54 +0000 (11:14 +1100)] 
${ttl} must exist and be non null

(cherry picked from commit dee1f1a49812169fc823428d6c5a3331e570612c)

7 years agoMake ANSWER TTL capping checks stricter
Michał Kępień [Mon, 11 Mar 2019 11:04:42 +0000 (12:04 +0100)] 
Make ANSWER TTL capping checks stricter

For checks querying a named instance with "dnssec-accept-expired yes;"
set, authoritative responses have a TTL of 300 seconds.  Assuming empty
resolver cache, TTLs of RRsets in the ANSWER section of the first
response to a given query will always match their authoritative
counterparts.  Also note that for a DNSSEC-validating named resolver,
validated RRsets replace any existing non-validated RRsets with the same
owner name and type, e.g. cached from responses received while resolving
CD=1 queries.  Since TTL capping happens before a validated RRset is
inserted into the cache and RRSIG expiry time does not impose an upper
TTL bound when "dnssec-accept-expired yes;" is set and, as pointed out
above, the original TTLs of the relevant RRsets equal 300 seconds, the
RRsets in the ANSWER section of the responses to expiring.example/SOA
and expired.example/SOA queries sent with CD=0 should always be exactly
120 seconds, never a lower value.  Make the relevant TTL checks stricter
to reflect that.

(cherry picked from commit a85cc41486d94d6c5e5116c63fa7ef1c9fd58925)

7 years agoRelax ADDITIONAL TTL capping checks
Michał Kępień [Mon, 11 Mar 2019 11:04:42 +0000 (12:04 +0100)] 
Relax ADDITIONAL TTL capping checks

Always expecting a TTL of exactly 300 seconds for RRsets found in the
ADDITIONAL section of responses received for CD=1 queries sent during
TTL capping checks is too strict since these responses will contain
records cached from multiple DNS messages received during the resolution
process.

In responses to queries sent with CD=1, ns.expiring.example/A in the
ADDITIONAL section will come from a delegation returned by ns2 while the
ANSWER section will come from an authoritative answer returned by ns3.
If the queries to ns2 and ns3 happen at different Unix timestamps,
RRsets cached from the older response will have a different TTL by the
time they are returned to dig, triggering a false positive.

Allow a safety margin of 60 seconds for checks inspecting the ADDITIONAL
section of responses to queries sent with CD=1 to fix the issue.  A
safety margin this large is likely overkill, but it is used nevertheless
for consistency with similar safety margins used in other TTL capping
checks.

(cherry picked from commit 8baf85906306e2757ab9cce680c7f764d6e4e04e)

7 years agoFix NTA-related races
Michał Kępień [Mon, 11 Mar 2019 11:04:42 +0000 (12:04 +0100)] 
Fix NTA-related races

Changes introduced by commit 6b8e4d6e695fc13b2d2a93437418a047b5adce81
were incomplete as not all time-sensitive checks were updated to match
revised "nta-lifetime" and "nta-recheck" values.  Prevent rare false
positives by updating all NTA-related checks so that they work reliably
with "nta-lifetime 12s;" and "nta-recheck 9s;".  Update comments as well
to prevent confusion.

(cherry picked from commit 9a36a1bba34d178ee65d24d1dd71c7ae7953abf6)

7 years agoMerge branch 'michal/fix-regex-used-for-mangling-druz-dnskey-v9_11' into 'v9_11'
Michał Kępień [Fri, 8 Mar 2019 13:08:58 +0000 (08:08 -0500)] 
Merge branch 'michal/fix-regex-used-for-mangling-druz-dnskey-v9_11' into 'v9_11'

[v9_11] Fix regex used for mangling druz/DNSKEY (in the "dlv" system test)

See merge request isc-projects/bind9!1648

7 years agoFix regex used for mangling druz/DNSKEY
Michał Kępień [Fri, 8 Mar 2019 12:47:13 +0000 (13:47 +0100)] 
Fix regex used for mangling druz/DNSKEY

During "dlv" system test setup, the "sed" regex used for mangling the
DNSKEY RRset for the "druz" zone does not include the plus sign ("+"),
which may:

  - cause the replacement to happen near the end of DNSKEY RDATA, which
    can cause the latter to become an invalid Base64 string,

  - prevent the replacement from being performed altogether.

Both cases prevent the "dlv" system test from behaving as intended and
may trigger false positives.  Add the missing character to the
aforementioned regex to ensure the replacement is always performed on
bytes 10-25 of DNSKEY RDATA.

(cherry picked from commit fd13fef2999767e71e4aa4847023efac20f3e789)

7 years agoMerge branch '925-make-delv-use-os-supplied-ephemeral-port-range-v9_11' into 'v9_11'
Michał Kępień [Fri, 8 Mar 2019 12:46:10 +0000 (07:46 -0500)] 
Merge branch '925-make-delv-use-os-supplied-ephemeral-port-range-v9_11' into 'v9_11'

[v9_11] Make delv use OS-supplied ephemeral port range

See merge request isc-projects/bind9!1646

7 years agoAdd CHANGES entry
Michał Kępień [Fri, 8 Mar 2019 12:13:32 +0000 (13:13 +0100)] 
Add CHANGES entry

5180. [bug] delv now honors the operating system's preferred
ephemeral port range. [GL #925]

(cherry picked from commit bf9832495682729b249c066081230ca9f599e0fa)

7 years agoMake delv use OS-supplied ephemeral port range
Michał Kępień [Fri, 8 Mar 2019 12:13:32 +0000 (13:13 +0100)] 
Make delv use OS-supplied ephemeral port range

Make delv honor the operating system's preferred ephemeral port range
instead of always using the default 1024-65535 range for outgoing
messages.

(cherry picked from commit ada6846a10277e30655b76bd33ff2e54a3736524)

7 years agoMerge branch 'u/fanf2/sectypes-v9_11' into 'v9_11'
Mark Andrews [Fri, 8 Mar 2019 11:40:45 +0000 (06:40 -0500)] 
Merge branch 'u/fanf2/sectypes-v9_11' into 'v9_11'

cleanup: use dns_secalg_t and dns_dsdigest_t where appropriate

See merge request isc-projects/bind9!1644

7 years agocleanup: use dns_secalg_t and dns_dsdigest_t where appropriate
Tony Finch [Fri, 8 Feb 2019 17:54:56 +0000 (17:54 +0000)] 
cleanup: use dns_secalg_t and dns_dsdigest_t where appropriate

Use them in structs for various rdata types where they are missing.
This doesn't change the structs since we are replacing explicit
uint8_t field types with aliases for uint8_t.

Use dns_dsdigest_t in library function arguments.

(cherry picked from commit 0f219714e1f19c4cb9434e0c52e9de873a97942b)

7 years agoMerge branch 'marka-define-path-max-v9_11' into 'v9_11'
Mark Andrews [Fri, 8 Mar 2019 07:44:01 +0000 (02:44 -0500)] 
Merge branch 'marka-define-path-max-v9_11' into 'v9_11'

#include <limits.h> for PATH_MAX, define if not found

See merge request isc-projects/bind9!1638

7 years ago#include <limits.h> for PATH_MAX, define if not found
Mark Andrews [Fri, 8 Mar 2019 06:15:01 +0000 (17:15 +1100)] 
#include <limits.h> for PATH_MAX, define if not found

(cherry picked from commit 1fc7be36ebd968f13f1d29c3c19cb847b9a0e268)

7 years agoMerge branch 'each-silence-warning-v9_11' into 'v9_11'
Evan Hunt [Fri, 8 Mar 2019 06:10:11 +0000 (01:10 -0500)] 
Merge branch 'each-silence-warning-v9_11' into 'v9_11'

silence a warning about potential snprintf overrun

See merge request isc-projects/bind9!1634

7 years agosilence a warning about potential snprintf overrun
Evan Hunt [Thu, 21 Feb 2019 19:21:36 +0000 (11:21 -0800)] 
silence a warning about potential snprintf overrun

(cherry picked from commit 7f26cad247ac186dc1de0ee37861a763877fe08d)

7 years agoMerge branch '902-hang-when-unexpected-errno-encountered-during-log-rename-v9_11...
Evan Hunt [Fri, 8 Mar 2019 05:44:27 +0000 (00:44 -0500)] 
Merge branch '902-hang-when-unexpected-errno-encountered-during-log-rename-v9_11' into 'v9_11'

Resolve "Hang when unexpected errno encountered during log rename"

See merge request isc-projects/bind9!1632

7 years agoHandle EDQUOT and ENOSPC errors
Mark Andrews [Tue, 26 Feb 2019 02:01:53 +0000 (13:01 +1100)] 
Handle EDQUOT and ENOSPC errors

(cherry picked from commit 435ae2f29a87034ddcaa6abb2dcca47e024aa62f)

7 years agoMerge branch '884-patches-to-review-3-v9_11' into 'v9_11'
Evan Hunt [Fri, 8 Mar 2019 04:49:24 +0000 (23:49 -0500)] 
Merge branch '884-patches-to-review-3-v9_11' into 'v9_11'

fix the use of dns_wildcardname as an optimisation in DLZ

See merge request isc-projects/bind9!1630

7 years agofix the use of dns_wildcardname as an optimisation in DLZ
Mark Andrews [Mon, 18 Feb 2019 01:57:35 +0000 (12:57 +1100)] 
fix the use of dns_wildcardname as an optimisation in DLZ

(cherry picked from commit cb32cd98bda3a7e57ad098eeda128c3a2ffcc95e)

7 years agoMerge branch '884-patches-to-review-2' into 'v9_11'
Evan Hunt [Fri, 8 Mar 2019 03:31:38 +0000 (22:31 -0500)] 
Merge branch '884-patches-to-review-2' into 'v9_11'

Handle errors from ctime().

See merge request isc-projects/bind9!1531

7 years agofail if ctime() output is truncted
Mark Andrews [Mon, 18 Feb 2019 01:51:08 +0000 (12:51 +1100)] 
fail if ctime() output is truncted

7 years agoMerge branch '884-patches-to-review-5' into 'v9_11'
Evan Hunt [Fri, 8 Mar 2019 03:11:11 +0000 (22:11 -0500)] 
Merge branch '884-patches-to-review-5' into 'v9_11'

Use %u in format to print TTL

See merge request isc-projects/bind9!1534

7 years agouse %u for TTL
Mark Andrews [Mon, 18 Feb 2019 01:38:17 +0000 (12:38 +1100)] 
use %u for TTL

7 years agoMerge branch 'ckb-statistics-test-nit-v9_11' into 'v9_11'
Evan Hunt [Fri, 8 Mar 2019 02:55:34 +0000 (21:55 -0500)] 
Merge branch 'ckb-statistics-test-nit-v9_11' into 'v9_11'

the wrong variable was used to count the test cases in one place.

See merge request isc-projects/bind9!1628

7 years agothe wrong variable was used to count the test cases in one place.
Curtis Blackburn [Fri, 8 Mar 2019 00:09:10 +0000 (16:09 -0800)] 
the wrong variable was used to count the test cases in one place.

(cherry picked from commit 4f60a84e34bf272b47082dc59c6dd5501e4e3498)

7 years agoMerge branch 'each-notes-911' into 'v9_11'
Evan Hunt [Thu, 7 Mar 2019 22:00:56 +0000 (17:00 -0500)] 
Merge branch 'each-notes-911' into 'v9_11'

clear out  9.11.6 release notes

See merge request isc-projects/bind9!1624

7 years agoclear out release notes from 9.11.6 to prepare ground for 9.11.7
Evan Hunt [Thu, 7 Mar 2019 21:44:24 +0000 (13:44 -0800)] 
clear out release notes from 9.11.6 to prepare ground for 9.11.7

7 years agoMerge branch '882-zone-data-cannot-be-loaded-with-dnssec-coverage-v9_11' into 'v9_11'
Evan Hunt [Thu, 7 Mar 2019 05:26:28 +0000 (00:26 -0500)] 
Merge branch '882-zone-data-cannot-be-loaded-with-dnssec-coverage-v9_11' into 'v9_11'

Resolve "Zone data cannot be loaded with dnssec-coverage"

See merge request isc-projects/bind9!1620

7 years agoadd CHANGES
Evan Hunt [Wed, 6 Mar 2019 22:22:58 +0000 (14:22 -0800)] 
add CHANGES

(cherry picked from commit 57e44efc735832976363a8d5b01290c3da0a5ce7)

7 years agoexplicitly convert byte to string
Mark Andrews [Mon, 18 Feb 2019 05:36:59 +0000 (16:36 +1100)] 
explicitly convert byte to string

(cherry picked from commit ec3d830bc50e43858c7982df9b9db95aa8cffca0)

7 years agoMerge branch 'u/fanf2/man-dnssec-keygen-v9_11' into 'v9_11'
Evan Hunt [Thu, 7 Mar 2019 01:47:21 +0000 (20:47 -0500)] 
Merge branch 'u/fanf2/man-dnssec-keygen-v9_11' into 'v9_11'

cleanup dnssec-keygen manual page

See merge request isc-projects/bind9!1618

7 years agocleanup dnssec-keygen manual page
Tony Finch [Thu, 21 Feb 2019 18:54:16 +0000 (18:54 +0000)] 
cleanup dnssec-keygen manual page

Alphabetize options and synopsis; remove spurious -z from synopsis;
refer to -T KEY in options that are only relevant to pre-RFC3755
DNSSEC, and add a -f KSK example.

(cherry picked from commit 1954f8d2bf92ab19efa20eed12ba986ae2988222)

7 years agoMerge branch '926-statschannel-system-tests-fails-json-only-no-libxml-v9_11' into...
Mark Andrews [Thu, 7 Mar 2019 00:11:40 +0000 (19:11 -0500)] 
Merge branch '926-statschannel-system-tests-fails-json-only-no-libxml-v9_11' into 'v9_11'

Resolve "statschannel system tests fails json only (no libxml)"

See merge request isc-projects/bind9!1617

7 years agoadd CHANGES
Mark Andrews [Wed, 6 Mar 2019 23:25:15 +0000 (10:25 +1100)] 
add CHANGES

(cherry picked from commit 5bc06a0a11ebe0264679fa81b5543192dd0a17a6)

7 years agoremove dependancy on libxml
Mark Andrews [Wed, 6 Mar 2019 23:09:33 +0000 (10:09 +1100)] 
remove dependancy on libxml

(cherry picked from commit a9c47414b356742e3d7a758f18e90fee1a2c95fc)

7 years agoMerge branch '905-make-nsupdate-use-os-supplied-ephemeral-port-range-v9_11' into...
Michał Kępień [Wed, 6 Mar 2019 13:27:41 +0000 (08:27 -0500)] 
Merge branch '905-make-nsupdate-use-os-supplied-ephemeral-port-range-v9_11' into 'v9_11'

[v9_11] Make nsupdate use OS-supplied ephemeral port range

See merge request isc-projects/bind9!1610

7 years agoAdd CHANGES entry
Michał Kępień [Wed, 6 Mar 2019 13:01:24 +0000 (14:01 +0100)] 
Add CHANGES entry

5172. [bug] nsupdate now honors the operating system's preferred
ephemeral port range. [GL #905]

(cherry picked from commit 0e64948274920d83de3d3116bffa8ac5e346929e)

7 years agoMake nsupdate use OS-supplied ephemeral port range
Michał Kępień [Wed, 6 Mar 2019 13:01:24 +0000 (14:01 +0100)] 
Make nsupdate use OS-supplied ephemeral port range

Make nsupdate honor the operating system's preferred ephemeral port
range instead of always using the default 1024-65535 range for outgoing
messages.

(cherry picked from commit 06f582f23e7e3204a110d9b5a619c4d9ce451f07)

7 years agoMerge branch '919-add-win32util-configure-file-list-check-to-ci-v9_11' into 'v9_11'
Mark Andrews [Tue, 5 Mar 2019 22:42:24 +0000 (17:42 -0500)] 
Merge branch '919-add-win32util-configure-file-list-check-to-ci-v9_11' into 'v9_11'

Resolve "Add win32util/Configure file list check to CI"

See merge request isc-projects/bind9!1603

7 years agoremove '..\\bin\\tests\\system\\dlz\\prereq.sh' from win32util/Configure
Mark Andrews [Tue, 5 Mar 2019 03:09:49 +0000 (14:09 +1100)] 
remove '..\\bin\\tests\\system\\dlz\\prereq.sh' from win32util/Configure

(cherry picked from commit 442421906b9e33ab4373d61d53dc167856876d51)

7 years agoadd util/check-win32util-configure to precheck
Mark Andrews [Tue, 5 Mar 2019 02:46:29 +0000 (13:46 +1100)] 
add util/check-win32util-configure to precheck

(cherry picked from commit c3dd8bb9f0bd21410b8bb15b4a92da0636cc4d47)

7 years agoMerge branch '884-patches-to-review-4-v9_11' into 'v9_11'
Evan Hunt [Tue, 5 Mar 2019 22:38:05 +0000 (17:38 -0500)] 
Merge branch '884-patches-to-review-4-v9_11' into 'v9_11'

dlz filesystem driver failed to properly detect period at end of filename.

See merge request isc-projects/bind9!1601

7 years agoproperly detect period as last character in filename
Mark Andrews [Mon, 18 Feb 2019 01:40:11 +0000 (12:40 +1100)] 
properly detect period as last character in filename

(cherry picked from commit c9dc59eb90144b9935a143353eb38d8eef937cc1)

7 years agoMerge branch 'michal/disable-servfail-cache-for-ns5-in-the-mkeys-system-test-v9_11...
Evan Hunt [Tue, 5 Mar 2019 21:40:43 +0000 (16:40 -0500)] 
Merge branch 'michal/disable-servfail-cache-for-ns5-in-the-mkeys-system-test-v9_11' into 'v9_11'

Disable SERVFAIL cache for ns5 in the "mkeys" system test

See merge request isc-projects/bind9!1599

7 years agoDisable SERVFAIL cache for ns5 in the "mkeys" system test
Michał Kępień [Fri, 1 Mar 2019 06:57:45 +0000 (07:57 +0100)] 
Disable SERVFAIL cache for ns5 in the "mkeys" system test

The "check key refreshes are resumed after root servers become
available" check may trigger a false positive for the "mkeys" system
test if the second example/TXT query sent by dig is received by ns5 less
than a second after it receives a REFUSED response to the upstream query
it sends to ns1 in order to resolve the first example/TXT query sent by
dig.  Since that REFUSED response from ns1 causes ns5 to return a
SERVFAIL answer to dig, example/TXT is added to the SERVFAIL cache,
which is enabled by default with a TTL of 1 second.  This in turn may
cause ns5 to return a cached SERVFAIL response to the second example/TXT
query sent by dig, i.e. make ns5 not perform full query processing as
expected by the check.

Since the primary purpose of the check in question is to ensure that key
refreshes are resumed once initially unavailable root servers become
available, the optimal solution appears to be disabling SERVFAIL cache
for ns5 as doing that still allows the check to fulfill its purpose and
it is arguably more prudent than always sleeping for 1 second.

(cherry picked from commit 7c6bff3c4e5e3f1b66ed301d28d6a3b5d81169f7)

7 years agoMerge branch '889-improve-clang-cmocka-interaction-v9_11' into 'v9_11'
Evan Hunt [Tue, 5 Mar 2019 19:17:53 +0000 (14:17 -0500)] 
Merge branch '889-improve-clang-cmocka-interaction-v9_11' into 'v9_11'

Resolve "Improve clang/cmocka interaction."

See merge request isc-projects/bind9!1597

7 years agoimprove clang / cmocka integration
Mark Andrews [Wed, 20 Feb 2019 00:13:17 +0000 (11:13 +1100)] 
improve clang / cmocka integration

(cherry picked from commit cb913177ae744c729717aa29ae54aa8656c9737e)

7 years agoMerge branch 'matthijs-more-clean.sh-related-cleanups-v9_11' into 'v9_11'
Matthijs Mekking [Tue, 5 Mar 2019 11:11:48 +0000 (06:11 -0500)] 
Merge branch 'matthijs-more-clean.sh-related-cleanups-v9_11' into 'v9_11'

More clean.sh related cleanups

See merge request isc-projects/bind9!1595

7 years agoEnsure all system tests run clean.sh from setup.sh
Matthijs Mekking [Tue, 5 Mar 2019 09:50:25 +0000 (10:50 +0100)] 
Ensure all system tests run clean.sh from setup.sh

For consistency between all system tests, add missing setup.sh scripts
for tests which do not have one yet and ensure every setup.sh script
calls its respective clean.sh script.

(cherry picked from commit e41080391943349e0b5de624a151d6c07425cfef)

7 years agoOnly perform test cleanups in clean.sh scripts
Matthijs Mekking [Tue, 5 Mar 2019 09:47:47 +0000 (10:47 +0100)] 
Only perform test cleanups in clean.sh scripts

Temporary files created by a given system test should be removed by its
clean.sh script, not its setup.sh script.  Remove redundant "rm"
invocations from setup.sh scripts.  Move required "rm" invocations from
setup.sh scripts to their corresponding clean.sh scripts.

(cherry picked from commit c64ed484c83f708617308979f85a7777cdcdd220)

7 years agoMerge branch 'feature/featuretest-dlz-v9_11' into 'v9_11'
Mark Andrews [Mon, 4 Mar 2019 03:23:38 +0000 (22:23 -0500)] 
Merge branch 'feature/featuretest-dlz-v9_11' into 'v9_11'

Test dlz support in feature-test

See merge request isc-projects/bind9!1589

7 years agoadd CHANGES
Mark Andrews [Mon, 4 Mar 2019 03:03:23 +0000 (14:03 +1100)] 
add CHANGES

(cherry picked from commit 5f125df4628a032a1cb2e369ec26ef2171245eb1)

7 years agorun autoheader and autoconf
Mark Andrews [Sun, 3 Mar 2019 22:37:42 +0000 (09:37 +1100)] 
run autoheader and autoconf

(cherry picked from commit 4988367b534a75dfdcadd2785bd90567f4421417)

7 years agoSupport DLZ filesystem detection in feature-test
Petr Menšík [Wed, 30 Jan 2019 14:12:54 +0000 (15:12 +0100)] 
Support DLZ filesystem detection in feature-test

Do not use variable from configure to detect the feature.

(cherry picked from commit 759a7b4ce31040f3cceec0d219e379dd1b1dfea9)

7 years agoMerge branch 'michal/fix-ip-regex-used-in-the-resolver-system-test-v9_11' into 'v9_11'
Michał Kępień [Fri, 1 Mar 2019 06:55:48 +0000 (01:55 -0500)] 
Merge branch 'michal/fix-ip-regex-used-in-the-resolver-system-test-v9_11' into 'v9_11'

[v9_11] Fix IP regex used in the "resolver" system test

See merge request isc-projects/bind9!1584

7 years agoFix IP regex used in the "resolver" system test
Michał Kępień [Tue, 26 Feb 2019 11:33:19 +0000 (12:33 +0100)] 
Fix IP regex used in the "resolver" system test

If dots are not escaped in the "1.2.3.4" regular expressions used for
checking whether IP address 1.2.3.4 is present in the tested resolver's
answers, a COOKIE that matches such a regular expression will trigger a
false positive for the "resolver" system test.  Properly escape dots in
the aforementioned regular expressions to prevent that from happening.

(cherry picked from commit 70ae48e5cb56c7df23647bc511951d758e57ec88)

7 years agoMerge branch 'michal/call-clean.sh-from-all-relevant-setup.sh-scripts-v9_11' into...
Michał Kępień [Thu, 28 Feb 2019 12:11:03 +0000 (07:11 -0500)] 
Merge branch 'michal/call-clean.sh-from-all-relevant-setup.sh-scripts-v9_11' into 'v9_11'

[v9_11] Call clean.sh from all relevant setup.sh scripts

See merge request isc-projects/bind9!1577

7 years agoCall clean.sh from all relevant setup.sh scripts
Michał Kępień [Thu, 28 Feb 2019 11:33:07 +0000 (12:33 +0100)] 
Call clean.sh from all relevant setup.sh scripts

For all system tests utilizing named instances, call clean.sh from each
test's setup.sh script in a consistent way to make sure running the same
system test multiple times using run.sh does not trigger false positives
caused by stale files created by previous runs.

Ideally we would just call clean.sh from run.sh, but that would break
some quirky system tests like "rpz" or "rpzrecurse" and being consistent
for the time being does not hurt.

(cherry picked from commit a077a3ae8a5013e089bb4e6f9ab8137c5b708dce)

7 years agoMerge branch 'prep-release' into v9_11 v9.11.6
Tinderbox User [Wed, 27 Feb 2019 23:28:15 +0000 (23:28 +0000)] 
Merge branch 'prep-release' into v9_11

7 years agoprep 9.11.6
Tinderbox User [Wed, 27 Feb 2019 23:16:43 +0000 (23:16 +0000)] 
prep 9.11.6

7 years agoMerge branch 'prep-release' into v9_11 v9.11.6rc1
Tinderbox User [Thu, 21 Feb 2019 04:08:10 +0000 (04:08 +0000)] 
Merge branch 'prep-release' into v9_11

7 years agorebuild configure
Tinderbox User [Thu, 21 Feb 2019 04:08:01 +0000 (04:08 +0000)] 
rebuild configure