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

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

EID and NIMLOC totext is broken.

See merge request isc-projects/bind9!1571

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

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

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

Fix key ID extraction in the "dnssec" system test

See merge request isc-projects/bind9!1732

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.

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

Minor "mirror" system test tweaks

See merge request isc-projects/bind9!1713

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.

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.

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

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

See merge request isc-projects/bind9!1727

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

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

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

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

See merge request isc-projects/bind9!1712

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.

7 years agoMerge branch 'placeholder' into 'master'
Mark Andrews [Wed, 20 Mar 2019 01:43:27 +0000 (21:43 -0400)] 
Merge branch 'placeholder' into 'master'

placeholder

See merge request isc-projects/bind9!1724

7 years agoplaceholder
Mark Andrews [Wed, 20 Mar 2019 01:24:32 +0000 (12:24 +1100)] 
placeholder

7 years agoMerge branch 'regen-configure' into 'master'
Mark Andrews [Tue, 19 Mar 2019 22:43:00 +0000 (18:43 -0400)] 
Merge branch 'regen-configure' into 'master'

Regen configure

See merge request isc-projects/bind9!1721

7 years agoclean up virtual-time removal
Mark Andrews [Tue, 19 Mar 2019 22:26:10 +0000 (09:26 +1100)] 
clean up virtual-time removal

7 years agoMerge branch '4-remove-unused-virtual-time-tests-copyrights' into 'master'
Ondřej Surý [Tue, 19 Mar 2019 20:38:13 +0000 (16:38 -0400)] 
Merge branch '4-remove-unused-virtual-time-tests-copyrights' into 'master'

Cleanup util/copyrights after virtual-time removal

See merge request isc-projects/bind9!1719

7 years agoCleanup util/copyrights after virtual-time removal
Ondřej Surý [Tue, 19 Mar 2019 20:37:04 +0000 (21:37 +0100)] 
Cleanup util/copyrights after virtual-time removal

7 years agoMerge branch '4-make-builtin-test-use-named--V-to-get-version' into 'master'
Ondřej Surý [Tue, 19 Mar 2019 20:35:12 +0000 (16:35 -0400)] 
Merge branch '4-make-builtin-test-use-named--V-to-get-version' into 'master'

Make builtin test use dynamic version from named -V

See merge request isc-projects/bind9!1717

7 years agoMake builtin test use dynamic version from named -V
Ondřej Surý [Thu, 7 Mar 2019 14:15:39 +0000 (15:15 +0100)] 
Make builtin test use dynamic version from named -V

7 years agoMerge branch '4-remove-unused-virtual-time-tests' into 'master'
Ondřej Surý [Tue, 19 Mar 2019 20:31:49 +0000 (16:31 -0400)] 
Merge branch '4-remove-unused-virtual-time-tests' into 'master'

Reduce the software entropy in the BIND source code by removing unused...

See merge request isc-projects/bind9!1718

7 years agoReduce the software entropy in the BIND source code by removing unused bin/tests...
Ondřej Surý [Tue, 19 Mar 2019 20:24:12 +0000 (21:24 +0100)] 
Reduce the software entropy in the BIND source code by removing unused bin/tests/virtual-time/ directory.

7 years agoMerge branch '4-limit-spatch-to-bin-and-lib' into 'master'
Ondřej Surý [Tue, 19 Mar 2019 19:16:19 +0000 (15:16 -0400)] 
Merge branch '4-limit-spatch-to-bin-and-lib' into 'master'

Limit spatch to bin, lib and fuzz directories

See merge request isc-projects/bind9!1716

7 years agoLimit spatch to bin, lib and fuzz directories
Ondřej Surý [Tue, 19 Mar 2019 16:15:52 +0000 (17:15 +0100)] 
Limit spatch to bin, lib and fuzz directories

7 years agoMerge branch '757-unsupported-algorithms' into 'master'
Matthijs Mekking [Tue, 19 Mar 2019 16:31:07 +0000 (12:31 -0400)] 
Merge branch '757-unsupported-algorithms' into 'master'

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

Closes #806 and #757

See merge request isc-projects/bind9!1350

7 years agoUpdate CHANGES
Matthijs Mekking [Wed, 16 Jan 2019 14:26:42 +0000 (15:26 +0100)] 
Update CHANGES

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

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

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

7 years agoMove code handling key loading errors into a common function
Michał Kępień [Thu, 24 Jan 2019 11:50:01 +0000 (12:50 +0100)] 
Move code handling key loading errors into a common function

Some values returned by dstkey_fromconfig() indicate that key loading
should be interrupted, others do not.  There are also certain subsequent
checks to be made after parsing a key from configuration and the results
of these checks also affect the key loading process.  All of this
complicates the key loading logic.

In order to make the relevant parts of the code easier to follow, reduce
the body of the inner for loop in load_view_keys() to a single call to a
new function, process_key().  Move dstkey_fromconfig() error handling to
process_key() as well and add comments to clearly describe the effects
of various key loading errors.

7 years agoAlso ignore configured revoked trusted anchors
Matthijs Mekking [Tue, 15 Jan 2019 11:02:36 +0000 (12:02 +0100)] 
Also ignore configured revoked trusted anchors

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

More specifically: ignore configured trusted and managed keys that
match a disabled algorithm.  The behavioral change is that
associated responses no longer SERVFAIL, but return insecure.

7 years agoMove algorithm variables, add disabled algorithms
Matthijs Mekking [Tue, 15 Jan 2019 09:39:08 +0000 (10:39 +0100)] 
Move algorithm variables, add disabled algorithms

Move from conf.sh.in to conf.sh.common as they will also need to be
added to conf.sh.win32.  Add variables for testing disabled
algorithms.

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

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

7 years agoMerge branch '4-use-TOP-from-conf.sh-in-ifconfig.sh' into 'master'
Ondřej Surý [Tue, 19 Mar 2019 14:39:41 +0000 (10:39 -0400)] 
Merge branch '4-use-TOP-from-conf.sh-in-ifconfig.sh' into 'master'

Make ifconfig.sh resilient to the directory where it is run

See merge request isc-projects/bind9!1715

7 years agoMake ifconfig.sh more resilient to the directory where it is run
Ondřej Surý [Thu, 7 Mar 2019 13:19:39 +0000 (14:19 +0100)] 
Make ifconfig.sh more resilient to the directory where it is run

7 years agoMerge branch '4-add-shell-system-test-driver' into 'master'
Ondřej Surý [Tue, 19 Mar 2019 14:13:19 +0000 (10:13 -0400)] 
Merge branch '4-add-shell-system-test-driver' into 'master'

Add automake-compatible test driver for system tests

See merge request isc-projects/bind9!1714

7 years agoAdd shell system test driver
Ondřej Surý [Thu, 7 Mar 2019 13:24:14 +0000 (14:24 +0100)] 
Add shell system test driver

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

Make stop.pl wait for lock file cleanup

Closes #944

See merge request isc-projects/bind9!1704

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

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.

7 years agoMerge branch 'each-bindkeys-comments' into 'master'
Evan Hunt [Tue, 19 Mar 2019 04:20:21 +0000 (00:20 -0400)] 
Merge branch 'each-bindkeys-comments' into 'master'

update bind.keys comments

See merge request isc-projects/bind9!1707

7 years agoupdate bind.keys comments
Evan Hunt [Tue, 19 Mar 2019 04:19:40 +0000 (21:19 -0700)] 
update bind.keys comments

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

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

Closes #945

See merge request isc-projects/bind9!1705

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.

7 years agoMerge branch 'revert-0d379587' into 'master'
Matthijs Mekking [Mon, 18 Mar 2019 10:46:01 +0000 (06:46 -0400)] 
Merge branch 'revert-0d379587' into 'master'

Revert "Merge branch 'placeholder-5889' into 'master'"

See merge request isc-projects/bind9!1703

7 years agoRevert "Merge branch 'placeholder-5889' into 'master'"
Matthijs Mekking [Mon, 18 Mar 2019 10:11:26 +0000 (06:11 -0400)] 
Revert "Merge branch 'placeholder-5889' into 'master'"

This reverts merge request !1702

7 years agoMerge branch 'placeholder-5889' into 'master'
Matthijs Mekking [Fri, 15 Mar 2019 13:03:47 +0000 (09:03 -0400)] 
Merge branch 'placeholder-5889' into 'master'

placeholder

See merge request isc-projects/bind9!1702

7 years agoplaceholder
Matthijs Mekking [Fri, 15 Mar 2019 12:09:00 +0000 (13:09 +0100)] 
placeholder

7 years agoMerge branch '866-deprecate-dnssec-enable' into 'master'
Evan Hunt [Fri, 15 Mar 2019 06:44:09 +0000 (02:44 -0400)] 
Merge branch '866-deprecate-dnssec-enable' into 'master'

deprecate "dnssec-enable"

Closes #866

See merge request isc-projects/bind9!1666

7 years agoCHANGES, release note
Evan Hunt [Tue, 12 Mar 2019 02:19:20 +0000 (19:19 -0700)] 
CHANGES, release note

7 years agoremove "dnssec-enable" from all system tests
Evan Hunt [Tue, 12 Mar 2019 01:26:43 +0000 (18:26 -0700)] 
remove "dnssec-enable" from all system tests

7 years agoremove configuration, syntax checking and implementation of dnssec-enable
Evan Hunt [Tue, 12 Mar 2019 01:34:08 +0000 (18:34 -0700)] 
remove configuration, syntax checking and implementation of dnssec-enable

7 years agoremove references to dnssec-enable in the documentation
Evan Hunt [Tue, 12 Mar 2019 01:30:37 +0000 (18:30 -0700)] 
remove references to dnssec-enable in the documentation

7 years agomark "dnssec-enable" as obsolete in the parser
Evan Hunt [Tue, 12 Mar 2019 01:39:26 +0000 (18:39 -0700)] 
mark "dnssec-enable" as obsolete in the parser

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

Fix regression in dnstap_test with native pkcs11

Closes #940

See merge request isc-projects/bind9!1688

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

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.

7 years agoMerge branch 'rename-shadowed-variable' into 'master'
Mark Andrews [Fri, 15 Mar 2019 01:18:57 +0000 (21:18 -0400)] 
Merge branch 'rename-shadowed-variable' into 'master'

rename-shadowed-variable

See merge request isc-projects/bind9!1698

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

7 years agoMerge branch 'ondrej/improve-cmdline-printing-to-handle-special-characters' into...
Evan Hunt [Thu, 14 Mar 2019 21:58:19 +0000 (17:58 -0400)] 
Merge branch 'ondrej/improve-cmdline-printing-to-handle-special-characters' into 'master'

Improve printing of the cmdline to also correctly print the control characters…

See merge request isc-projects/bind9!1280

7 years agoTest named logs cmd line as expected
Joey Salazar [Thu, 10 Jan 2019 13:01:54 +0000 (21:01 +0800)] 
Test named logs cmd line as expected

Test named logs control characters, special characters and large cmd line respectively as octal escaped, special escaped and elipsis

7 years agoImprove printing of the cmdline
Ondřej Surý [Fri, 21 Dec 2018 11:39:51 +0000 (12:39 +0100)] 
Improve printing of the cmdline

- Print control characters in octal
- Shorten using an ellipsis when necessary

7 years agoMerge branch '938-cppcheck-format-issues' into 'master'
Evan Hunt [Thu, 14 Mar 2019 20:46:12 +0000 (16:46 -0400)] 
Merge branch '938-cppcheck-format-issues' into 'master'

Resolve "Cppcheck format issues."

Closes #938

See merge request isc-projects/bind9!1685

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

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

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

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

Closes #890

See merge request isc-projects/bind9!1543

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

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

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

Closes #937

See merge request isc-projects/bind9!1683

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

7 years agoMerge branch 'missing-isc-lang-h' into 'master'
Evan Hunt [Thu, 14 Mar 2019 19:23:21 +0000 (15:23 -0400)] 
Merge branch 'missing-isc-lang-h' into 'master'

missing #include <isc/lang.h>

See merge request isc-projects/bind9!1687

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>

7 years agoMerge branch 'u/fanf2/man-dnssec-keygen-again' into 'master'
Mark Andrews [Thu, 14 Mar 2019 03:06:05 +0000 (23:06 -0400)] 
Merge branch 'u/fanf2/man-dnssec-keygen-again' into 'master'

A bit more cleanup in the dnssec-keygen manual

See merge request isc-projects/bind9!1678

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.

7 years agoMerge branch 'placeholder' into 'master'
Mark Andrews [Thu, 14 Mar 2019 01:55:21 +0000 (21:55 -0400)] 
Merge branch 'placeholder' into 'master'

placeholder

See merge request isc-projects/bind9!1681

7 years agoplaceholder
Mark Andrews [Thu, 14 Mar 2019 01:53:18 +0000 (12:53 +1100)] 
placeholder

7 years agoMerge branch '936-missing-unlocks-in-sdlz-c' into 'master'
Mark Andrews [Wed, 13 Mar 2019 21:56:14 +0000 (17:56 -0400)] 
Merge branch '936-missing-unlocks-in-sdlz-c' into 'master'

Resolve "Missing unlocks in sdlz.c"

Closes #936

See merge request isc-projects/bind9!1677

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

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

7 years agoMerge branch '881-cleanup-ecs' into 'master'
Evan Hunt [Tue, 12 Mar 2019 20:56:26 +0000 (16:56 -0400)] 
Merge branch '881-cleanup-ecs' into 'master'

clean up ECS before reusing clients

Closes #881

See merge request isc-projects/bind9!1675

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

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.

7 years agoMerge branch '834-fix-race-in-fctx-cancel' into 'master'
Evan Hunt [Tue, 12 Mar 2019 18:35:57 +0000 (14:35 -0400)] 
Merge branch '834-fix-race-in-fctx-cancel' into 'master'

fix race in socket code

Closes #834

See merge request isc-projects/bind9!1671

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

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.

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

Silence a Perl warning output by stop.pl

See merge request isc-projects/bind9!1649

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

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

Allow ifconfig to be called from any directory

See merge request isc-projects/bind9!1563

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.

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

Stabilize "delzsk.example" zone checks

See merge request isc-projects/bind9!1640

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.

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

"dnssec" system test tweaks

Closes #129

See merge request isc-projects/bind9!1545

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

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.

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.

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.

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.

7 years agoMerge branch '803-add-return-code-to-allow-dlz-s-allowzonexfr-to-fall-back-to-to...
Mark Andrews [Mon, 11 Mar 2019 03:42:17 +0000 (23:42 -0400)] 
Merge branch '803-add-return-code-to-allow-dlz-s-allowzonexfr-to-fall-back-to-to-the-view-s-allow-transfer-setting' into 'master'

Resolve "Add return code to allow dlz's allowzonexfr to fall back to to the view's allow-transfer setting."

Closes #803

See merge request isc-projects/bind9!1292