]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
7 years agoMerge branch '913-allow-update-v9_14' into 'v9_14'
Evan Hunt [Fri, 22 Mar 2019 07:29:39 +0000 (03:29 -0400)] 
Merge branch '913-allow-update-v9_14' into 'v9_14'

restore inheritance of 'allow-update' and 'allow-update-forwarding'

See merge request isc-projects/bind9!1743

7 years agoCHANGES, release notes
Evan Hunt [Tue, 19 Mar 2019 22:18:16 +0000 (15:18 -0700)] 
CHANGES, release notes

(cherry picked from commit 55a7961cf370a5140e92e345aba468f87d681871)

7 years agodon't fail when allow-update{,-forwarding} is used globally
Evan Hunt [Tue, 19 Mar 2019 17:14:44 +0000 (10:14 -0700)] 
don't fail when allow-update{,-forwarding} is used globally

(cherry picked from commit 91dca0f8da192e8b3439e80717bad3bfc139118f)

7 years agoMerge branch '899-zonemd-check-for-hash-existence-v9_14' into 'v9_14'
Mark Andrews [Thu, 21 Mar 2019 20:10:49 +0000 (16:10 -0400)] 
Merge branch '899-zonemd-check-for-hash-existence-v9_14' into 'v9_14'

zonemd require non empty hash

See merge request isc-projects/bind9!1740

7 years agoadd CHANGES
Mark Andrews [Thu, 21 Mar 2019 09:25:25 +0000 (20:25 +1100)] 
add CHANGES

(cherry picked from commit e1db1b8dcb0bc91cece32365b8a379f188c2a53a)

7 years agoDisallow empty ZONEMD hashes
Mark Andrews [Tue, 26 Feb 2019 23:19:04 +0000 (10:19 +1100)] 
Disallow empty ZONEMD hashes

This change is the result of discussions with the authors of
draft-wessels-dns-zone-digest.

(cherry picked from commit 473987d8d92e83e99f59c1fee977477b45c5f51c)

7 years agoMerge branch '899-eid-totext-is-broken-v9_14' into 'v9_14'
Mark Andrews [Thu, 21 Mar 2019 09:40:45 +0000 (05:40 -0400)] 
Merge branch '899-eid-totext-is-broken-v9_14' into 'v9_14'

EID and NIMLOC totext is broken.

See merge request isc-projects/bind9!1736

7 years agoadd CHANGES
Mark Andrews [Thu, 21 Mar 2019 06:42:13 +0000 (17:42 +1100)] 
add CHANGES

(cherry picked from commit c20b89fcf8c3e40818ac61a0235ed977db70427a)

7 years agoadd brackets for multi-line output
Mark Andrews [Thu, 28 Feb 2019 04:39:37 +0000 (15:39 +1100)] 
add brackets for multi-line output

(cherry picked from commit 40a770b9329b2b00ab0e5d9011a0bad43f4e7886)

7 years agoMerge branch 'michal/fix-key-id-extraction-in-the-dnssec-system-test-v9_14' into...
Michał Kępień [Thu, 21 Mar 2019 07:35:54 +0000 (03:35 -0400)] 
Merge branch 'michal/fix-key-id-extraction-in-the-dnssec-system-test-v9_14' into 'v9_14'

[v9_14] Fix key ID extraction in the "dnssec" system test

See merge request isc-projects/bind9!1734

7 years agoFix key ID extraction in the "dnssec" system test
Michał Kępień [Wed, 20 Mar 2019 21:21:30 +0000 (22:21 +0100)] 
Fix key ID extraction in the "dnssec" system test

Simply looking for the key ID surrounded by spaces in the tested
dnssec-signzone output file is not a precise enough method of checking
for signatures prepared using a given key ID: it can be tripped up by
cross-algorithm key ID collisions and certain low key IDs (e.g. 60, the
TTL specified in bin/tests/system/dnssec/signer/example.db.in), which
triggers false positives for the "dnssec" system test.  Make key ID
extraction precise by using an awk script which operates on specific
fields.

(cherry picked from commit a40c60e4c1d974a0d9dbad513a1a78fa2a4025b5)

7 years agoMerge branch 'michal/minor-mirror-system-test-tweaks-v9_14' into 'v9_14'
Michał Kępień [Wed, 20 Mar 2019 09:09:21 +0000 (05:09 -0400)] 
Merge branch 'michal/minor-mirror-system-test-tweaks-v9_14' into 'v9_14'

[v9_14] Minor "mirror" system test tweaks

See merge request isc-projects/bind9!1726

7 years agoIncrease dig query timeout to 2 seconds
Michał Kępień [Wed, 20 Mar 2019 08:50:35 +0000 (09:50 +0100)] 
Increase dig query timeout to 2 seconds

The "mirror" system test expects all dig queries (including recursive
ones) to be responded to within 1 second, which turns out to be overly
optimistic in certain cases and leads to false positives being
triggered.  Increase dig query timeout used throughout the "mirror"
system test to 2 seconds in order to alleviate the issue.

(cherry picked from commit 73afbdc5525709a5eb3190101634a73d927a6a06)

7 years agoIncrease TAT query interval
Michał Kępień [Wed, 20 Mar 2019 08:50:35 +0000 (09:50 +0100)] 
Increase TAT query interval

Currently, ns3 in the "mirror" system test sends trust anchor telemetry
queries every second as it is started with "-T tat=1".  Given the number
of trust anchors configured on ns3 (9), TAT-related traffic clutters up
log files, hindering troubleshooting efforts.  Increase TAT query
interval to 3 seconds in order to alleviate the issue.

Note that the interval chosen cannot be much higher if intermittent test
failures are to be avoided: TAT queries are only sent after the
configured number of seconds passes since resolver startup.  Quick
experiments show that even on contemporary hardware, ns3 should be
running for at least 5 seconds before it is first shut down, so a
3-second TAT query interval seems to be a reasonable, future-proof
compromise.  Ensure the relevant check is performed before ns3 is first
shut down to emphasize this trade-off and make it more clear by what
time TAT queries are expected to be sent.

(cherry picked from commit 6847a29b54eb87dd46467d1b6e4d0401b80aea58)

7 years agoMerge branch '4-update-gitignore-for-future-automake-v9_14' into 'v9_14'
Ondřej Surý [Wed, 20 Mar 2019 08:45:11 +0000 (04:45 -0400)] 
Merge branch '4-update-gitignore-for-future-automake-v9_14' into 'v9_14'

(v9_14) Update and sort the top level .gitignore to ignore automake files

See merge request isc-projects/bind9!1728

7 years agoSort the top level .gitignore file
Ondřej Surý [Wed, 20 Mar 2019 08:22:08 +0000 (09:22 +0100)] 
Sort the top level .gitignore file

(cherry picked from commit b9d524ed7e4e31fd926ccef70a3948d78074a82e)

7 years agoUpdate top level .gitignore to ignore automake files
Ondřej Surý [Wed, 20 Mar 2019 08:20:14 +0000 (09:20 +0100)] 
Update top level .gitignore to ignore automake files

(cherry picked from commit 5c67d1d12021e87639f16d55a56782acc4b22327)

7 years agoMerge branch 'michal/serve-stale-system-test-wait-for-dump-completion-v9_14' into...
Michał Kępień [Wed, 20 Mar 2019 08:08:05 +0000 (04:08 -0400)] 
Merge branch 'michal/serve-stale-system-test-wait-for-dump-completion-v9_14' into 'v9_14'

[v9_14] "serve-stale" system test: wait until "rndc dumpdb" completes

See merge request isc-projects/bind9!1725

7 years agoWait until "rndc dumpdb" completes
Michał Kępień [Wed, 20 Mar 2019 07:46:58 +0000 (08:46 +0100)] 
Wait until "rndc dumpdb" completes

"rndc dumpdb" works asynchronously, i.e. the requested dump may not yet
be fully written to disk by the time "rndc" returns.  Prevent false
positives for the "serve-stale" system test by only checking dump
contents after the line indicating that it is complete is written.

(cherry picked from commit 6e3f812afc876f4813aedda32340984b6bf5c9b3)

7 years agoMerge branch '944-make-stop.pl-wait-for-lock-file-cleanup-v9_14' into 'v9_14'
Michał Kępień [Tue, 19 Mar 2019 10:18:36 +0000 (06:18 -0400)] 
Merge branch '944-make-stop.pl-wait-for-lock-file-cleanup-v9_14' into 'v9_14'

[v9_14] Make stop.pl wait for lock file cleanup

See merge request isc-projects/bind9!1710

7 years agoMake stop.pl wait for lock file cleanup
Michał Kępień [Tue, 19 Mar 2019 09:26:36 +0000 (10:26 +0100)] 
Make stop.pl wait for lock file cleanup

bin/tests/system/stop.pl only waits for the PID file to be cleaned up
while named cleans up the lock file after the PID file.  Thus, the
aforementioned script may consider a named instance to be fully shut
down when in fact it is not.

Fix by also checking whether the lock file exists when determining a
given instance's shutdown status.  This change assumes that if a named
instance uses a lock file, it is called "named.lock".

Also rename clean_pid_file() to pid_file_exists(), so that it is called
more appropriately (it does not clean up the PID file itself, it only
returns the server's identifier if its PID file is not yet cleaned up).

(cherry picked from commit c787a539d2a931ba9023677c1c269ed191455512)

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' into 'v9_14'
Evan Hunt [Tue, 19 Mar 2019 04:23:16 +0000 (00:23 -0400)] 
Merge branch '945-remove-revoked-root-key-from-bind-keys-v9_14' into 'v9_14'

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

See merge request isc-projects/bind9!1708

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)

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

Fix regression in dnstap_test with native pkcs11

See merge request isc-projects/bind9!1700

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 'rename-shadowed-variable-v9_14' into 'v9_14'
Mark Andrews [Fri, 15 Mar 2019 01:35:49 +0000 (21:35 -0400)] 
Merge branch 'rename-shadowed-variable-v9_14' into 'v9_14'

rename-shadowed-variable

See merge request isc-projects/bind9!1699

7 years agorename-shadowed-variable
Mark Andrews [Fri, 15 Mar 2019 00:13:05 +0000 (11:13 +1100)] 
rename-shadowed-variable

(cherry picked from commit 15bfe4f2e169495ae13feae9d9c63a392a9f8edf)

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

Resolve "Cppcheck format issues."

See merge request isc-projects/bind9!1695

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 agoisc_quota_* return unsigned int
Mark Andrews [Thu, 14 Mar 2019 08:42:28 +0000 (19:42 +1100)] 
isc_quota_* return unsigned int

(cherry picked from commit a43d648b95923895353fa2bb531c260a99885fda)

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

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

See merge request isc-projects/bind9!1693

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:14:06 +0000 (16:14 -0400)] 
Merge branch '937-potential-null-pointer-dereference-in-bin-tests-system-dlzexternal-driver-c-v9_14' into 'v9_14'

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

See merge request isc-projects/bind9!1690

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 'missing-isc-lang-h-v9_14' into 'v9_14'
Evan Hunt [Thu, 14 Mar 2019 19:43:34 +0000 (15:43 -0400)] 
Merge branch 'missing-isc-lang-h-v9_14' into 'v9_14'

missing lang.h

See merge request isc-projects/bind9!1689

7 years agomissing #include <isc/lang.h>
Mark Andrews [Thu, 14 Mar 2019 13:24:33 +0000 (00:24 +1100)] 
missing #include <isc/lang.h>

(cherry picked from commit 719b1d7fdc364095217805d76cb1a56c37597dfa)

7 years agoMerge branch 'u/fanf2/man-dnssec-keygen-again-v9_14' into 'v9_14'
Mark Andrews [Thu, 14 Mar 2019 04:30:36 +0000 (00:30 -0400)] 
Merge branch 'u/fanf2/man-dnssec-keygen-again-v9_14' into 'v9_14'

A bit more cleanup in the dnssec-keygen manual

See merge request isc-projects/bind9!1684

7 years agoA bit more cleanup in the dnssec-keygen manual
Tony Finch [Wed, 13 Mar 2019 15:47:31 +0000 (15:47 +0000)] 
A bit more cleanup in the dnssec-keygen manual

Remove another remnant of shared secret HMAC-MD5 support.

Explain that with currently recommended setups DNSKEY records are
inserted automatically, but you can still use $INCLUDE in other cases.

(cherry picked from commit acc3fa04b7ea29d72637f5166469a88d7f4208b8)

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

Resolve "Missing unlocks in sdlz.c"

See merge request isc-projects/bind9!1679

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 '881-cleanup-ecs-v9_14' into 'v9_14'
Evan Hunt [Tue, 12 Mar 2019 21:10:04 +0000 (17:10 -0400)] 
Merge branch '881-cleanup-ecs-v9_14' into 'v9_14'

clean up ECS before reusing clients

See merge request isc-projects/bind9!1676

7 years agoCHANGES
Evan Hunt [Tue, 12 Mar 2019 20:38:06 +0000 (13:38 -0700)] 
CHANGES

(cherry picked from commit 9463a781fb687b4b7357ea1e243fdcb7ac6739aa)

7 years agoClean up client->ecs when we're done with the request.
Witold Kręcicki [Sun, 17 Feb 2019 19:32:07 +0000 (20:32 +0100)] 
Clean up client->ecs when we're done with the request.

(cherry picked from commit aa3da7a232c0f9bdffa701fe21d6169beb766f60)

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

fix race in socket code

See merge request isc-projects/bind9!1672

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_14' into 'v9_14'
Michał Kępień [Tue, 12 Mar 2019 08:04:14 +0000 (04:04 -0400)] 
Merge branch 'michal/silence-a-perl-warning-output-by-stop.pl-v9_14' into 'v9_14'

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

See merge request isc-projects/bind9!1669

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_14' into 'v9_14'
Mark Andrews [Tue, 12 Mar 2019 03:22:08 +0000 (23:22 -0400)] 
Merge branch 'ifconfig.sh-anywhere-v9_14' into 'v9_14'

Allow ifconfig to be called from any directory

See merge request isc-projects/bind9!1667

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_14' into 'v9_14'
Evan Hunt [Mon, 11 Mar 2019 18:34:35 +0000 (14:34 -0400)] 
Merge branch '892-fix-redirect-name-v9_14' into 'v9_14'

use qname in redirect2

See merge request isc-projects/bind9!1663

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 'each-fix-changes' into 'v9_14'
Evan Hunt [Mon, 11 Mar 2019 17:59:59 +0000 (13:59 -0400)] 
Merge branch 'each-fix-changes' into 'v9_14'

remove accidentally-included CHANGES notes

See merge request isc-projects/bind9!1661

7 years agoremove accidentally-included CHANGES notes
Evan Hunt [Mon, 11 Mar 2019 17:58:18 +0000 (10:58 -0700)] 
remove accidentally-included CHANGES notes

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

[v9_14] Stabilize "delzsk.example" zone checks

See merge request isc-projects/bind9!1658

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_14' into 'v9_14'
Michał Kępień [Mon, 11 Mar 2019 12:02:07 +0000 (08:02 -0400)] 
Merge branch '129-dnssec-system-test-tweaks-v9_14' into 'v9_14'

[v9_14] "dnssec" system test tweaks

See merge request isc-projects/bind9!1656

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 message section checked in a TTL capping test
Michał Kępień [Mon, 11 Mar 2019 11:04:42 +0000 (12:04 +0100)] 
Fix message section checked in a TTL capping test

Commit c032c54dda2d75c0ec68017e1331bc9880c03ae1 inadvertently changed
the DNS message section inspected by one of the TTL capping checks from
ADDITIONAL to ANSWER, introducing a discrepancy between that check's
description and its actual meaning.  Revert to inspecting the ADDITIONAL
section in the aforementioned check.

(cherry picked from commit a597bd52a68b76988f6ff78d18ae2368b077d32e)

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 'ondrej/restore-flockfile-check-v9_14' into 'v9_14'
Evan Hunt [Sat, 9 Mar 2019 00:41:33 +0000 (19:41 -0500)] 
Merge branch 'ondrej/restore-flockfile-check-v9_14' into 'v9_14'

(v9_14) Restore missing check for flockfile and getc_unlocked

See merge request isc-projects/bind9!1654

7 years agoRestore missing check for flockfile and getc_unlocked
Ondřej Surý [Thu, 7 Mar 2019 12:32:30 +0000 (13:32 +0100)] 
Restore missing check for flockfile and getc_unlocked

(cherry picked from commit 7eea756858bd50547f3f5e4764adf3a2c7e095ff)

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

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

See merge request isc-projects/bind9!1647

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_14' into 'v9_14'
Michał Kępień [Fri, 8 Mar 2019 12:46:09 +0000 (07:46 -0500)] 
Merge branch '925-make-delv-use-os-supplied-ephemeral-port-range-v9_14' into 'v9_14'

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

See merge request isc-projects/bind9!1645

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_14' into 'v9_14'
Mark Andrews [Fri, 8 Mar 2019 11:38:51 +0000 (06:38 -0500)] 
Merge branch 'u/fanf2/sectypes-v9_14' into 'v9_14'

cleanup: use dns_secalg_t and dns_dsdigest_t where appropriate

See merge request isc-projects/bind9!1643

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.

Improve dnssec-cds with these more specific types.

(cherry picked from commit 0f219714e1f19c4cb9434e0c52e9de873a97942b)

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

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

See merge request isc-projects/bind9!1639

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_14' into 'v9_14'
Evan Hunt [Fri, 8 Mar 2019 06:16:42 +0000 (01:16 -0500)] 
Merge branch 'each-silence-warning-v9_14' into 'v9_14'

silence a warning about potential snprintf overrun

See merge request isc-projects/bind9!1633

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_14...
Evan Hunt [Fri, 8 Mar 2019 05:44:04 +0000 (00:44 -0500)] 
Merge branch '902-hang-when-unexpected-errno-encountered-during-log-rename-v9_14' into 'v9_14'

Resolve "Hang when unexpected errno encountered during log rename"

See merge request isc-projects/bind9!1631

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_14' into 'v9_14'
Evan Hunt [Fri, 8 Mar 2019 04:39:30 +0000 (23:39 -0500)] 
Merge branch '884-patches-to-review-3-v9_14' into 'v9_14'

fix the use of dns_wildcardname as an optimisation in DLZ

See merge request isc-projects/bind9!1629

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 'ckb-statistics-test-nit-v9_14' into 'v9_14'
Evan Hunt [Fri, 8 Mar 2019 02:54:20 +0000 (21:54 -0500)] 
Merge branch 'ckb-statistics-test-nit-v9_14' into 'v9_14'

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

See merge request isc-projects/bind9!1627

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 '927-teach-clang-that-_fail-does-not-return-v9_14' into 'v9_14'
Mark Andrews [Fri, 8 Mar 2019 01:26:08 +0000 (20:26 -0500)] 
Merge branch '927-teach-clang-that-_fail-does-not-return-v9_14' into 'v9_14'

Resolve "teach clang that _fail() does not return."

See merge request isc-projects/bind9!1626

7 years agoadd noreturn attribute
Mark Andrews [Thu, 7 Mar 2019 05:45:04 +0000 (16:45 +1100)] 
add noreturn attribute

(cherry picked from commit 3f2b7e100690e005710dd0389e9f8713f686646e)

7 years agoMerge branch '865-option-to-disable-information-leak-on-rpz-rewrites-isc-support...
Evan Hunt [Thu, 7 Mar 2019 21:41:31 +0000 (16:41 -0500)] 
Merge branch '865-option-to-disable-information-leak-on-rpz-rewrites-isc-support-14178-v9_14' into 'v9_14'

Resolve "Option to disable information leak on RPZ rewrites [ISC-support

See merge request isc-projects/bind9!1623

7 years agoCHANGES, release note
Mark Andrews [Mon, 18 Feb 2019 05:57:45 +0000 (16:57 +1100)] 
CHANGES, release note

(cherry picked from commit 89234643e1c4498c017680b830891855d2dbae06)

7 years agodisable a previously broken test under dnsrps
Evan Hunt [Thu, 7 Mar 2019 04:48:30 +0000 (20:48 -0800)] 
disable a previously broken test under dnsrps

(cherry picked from commit aeed04749593d6fb407eec9950e9ef72dc23befd)

7 years agoadd the ability to control whether SOA records are added response-policy modified...
Mark Andrews [Thu, 14 Feb 2019 06:50:10 +0000 (17:50 +1100)] 
add the ability to control whether SOA records are added response-policy modified answers

(cherry picked from commit d1fa8be611505755e389897f05659ab18d236e11)

7 years agoMerge branch 'each-notes-914' into 'v9_14'
Evan Hunt [Thu, 7 Mar 2019 19:34:27 +0000 (14:34 -0500)] 
Merge branch 'each-notes-914' into 'v9_14'

clear out 9.14.0 release notes

See merge request isc-projects/bind9!1622

7 years agoclear out release notes from 9.14.0 to prepare the ground for 9.14.1
Evan Hunt [Thu, 7 Mar 2019 19:11:15 +0000 (11:11 -0800)] 
clear out release notes from 9.14.0 to prepare the ground for 9.14.1

7 years agoMerge branch '882-zone-data-cannot-be-loaded-with-dnssec-coverage-v9_14' into 'v9_14'
Evan Hunt [Thu, 7 Mar 2019 04:58:34 +0000 (23:58 -0500)] 
Merge branch '882-zone-data-cannot-be-loaded-with-dnssec-coverage-v9_14' into 'v9_14'

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

See merge request isc-projects/bind9!1619

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_14' into 'v9_14'
Mark Andrews [Thu, 7 Mar 2019 00:15:23 +0000 (19:15 -0500)] 
Merge branch 'u/fanf2/man-dnssec-keygen-v9_14' into 'v9_14'

cleanup dnssec-keygen manual page

See merge request isc-projects/bind9!1616

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;
remove remnants of deprecated -k option; remove mention of long-gone
TSIG support; refer to -T KEY in options that are only relevant to
pre-RFC3755 DNSSEC; remove unnecessary -n ZONE from the example, 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_14' into...
Mark Andrews [Thu, 7 Mar 2019 00:02:59 +0000 (19:02 -0500)] 
Merge branch '926-statschannel-system-tests-fails-json-only-no-libxml-v9_14' into 'v9_14'

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

See merge request isc-projects/bind9!1615

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

(cherry picked from commit 5bc06a0a11ebe0264679fa81b5543192dd0a17a6)