Commit Graph
27013 Commits
Author SHA1 Message Date
Ondřej Surý 3fbceba0a8 Bail-out early in the for install loops instead of continuing because for masks the error in the middle
(cherry picked from commit 25248eb097)
2018-09-03 13:31:17 +02:00
Evan Hunt d8cb0ff012 Merge branch 'solaris-fixes-v9_12' into 'v9_12'
Silence some warnings and errors

See merge request isc-projects/bind9!748
2018-08-31 20:41:38 -04:00
Witold KrecickiandEvan Hunt 0f0dfc7f86 Silence some warnings and errors 2018-08-31 17:33:03 -07:00
Mark Andrews 98ed1ea56e Merge branch '510-resolver-test-was-failing-v9_12' into 'v9_12'
Resolve "Resolver test was failing"

See merge request isc-projects/bind9!741
2018-08-31 04:48:51 -04:00
Mark Andrews 259e0b0544 use pack to construct the reply as Net::DNS just get it wrong
(cherry picked from commit feaf381adb)
2018-08-31 18:39:46 +10:00
Mark Andrews c0699b93f9 Merge branch '418-bind-in-auto-dnssec-mode-should-support-signature-expiration-jitter-v9_12' into 'v9_12'
Resolve "BIND in auto-dnssec mode should support signature expiration jitter"

See merge request isc-projects/bind9!739
2018-08-30 23:17:21 -04:00
Mark Andrews 6b1e8d5860 add changes note
(cherry picked from commit d68499e1f7)
2018-08-31 13:08:28 +10:00
Mark Andrews 827ef21bb4 report initial RRSIG expiry field values
(cherry picked from commit 8e5abc6cdf)
2018-08-31 13:07:49 +10:00
Mark Andrews 2289ba8b48 increase jitter to cover the entire potential steady state expire range when initially signing the zone
(cherry picked from commit 050fca2139)
2018-08-31 13:07:45 +10:00
Mark Andrews bb9d376c13 Merge branch '519-unclosed-files-in-lib-dns-tests-zt_test-c-v9_12' into 'v9_12'
Resolve "unclosed files in lib/dns/tests/zt_test.c"

See merge request isc-projects/bind9!737
2018-08-30 22:35:01 -04:00
Mark Andrews 3b9a6f0db8 fclose origfile and zonefile
(cherry picked from commit 455bb23236)
2018-08-31 12:24:46 +10:00
Evan Hunt 66e81f726a Merge branch 'silence-warning-v9_12' into 'v9_12'
silence "missing print.h" warning

See merge request isc-projects/bind9!724
2018-08-28 19:32:09 -04:00
Evan Hunt 3bd113ddd1 silence "missing print.h" warning
(cherry picked from commit 3c18b7d3fd)
2018-08-28 16:22:05 -07:00
Witold Krecicki 0091f2abe6 Merge branch '276-rndc-reconfig-fixes-v911-v9_12' into 'v9_12'
Resolve "rndc reconfig now performs stat() for all zones"

See merge request isc-projects/bind9!719
2018-08-28 11:16:52 -04:00
Witold Kręcicki 1bc7934867 CHANGES note 2018-08-28 17:07:44 +02:00
Witold Kręcicki 90b75d94ff rndc reconfig should not stat on existing zones, just load new ones.
(cherry picked from commit 80a025d1a7)
2018-08-28 17:03:10 +02:00
Ondřej Surý d8ca61072c Merge branch 'gitlab-ci-dont-run-make-clean-v9_12' into 'v9_12'
Disable make clean at the end of configure step in GitLab CI

See merge request isc-projects/bind9!715
2018-08-28 01:41:41 -04:00
Ondřej Surý 6ccc609ca4 Disable make clean at the end of configure step in GitLab CI
(cherry picked from commit a1d783bbe2)
2018-08-28 07:27:16 +02:00
Mark Andrews 2669905f2d Merge branch 'update-documentation-for-ms-and-krb5-rules-v9_12' into 'v9_12'
update {krb5,ms}-{self,subdomain} descriptions

See merge request isc-projects/bind9!709
2018-08-27 03:09:46 -04:00
Mark Andrews e69291e76d add CHANGES note
(cherry picked from commit a3c5c2c29c)
2018-08-27 17:01:00 +10:00
Mark Andrews c8581bb03a update {krb5,ms}-{self,subdomain} descriptions
(cherry picked from commit 0370d13667)
2018-08-27 17:00:59 +10:00
Mark Andrews 68c58a1e73 Merge branch '487-reset-dig-exit-code-after-a-tcp-connection-is-established-v9_12' into 'v9_12'
Reset dig exit code after a TCP connection is established

See merge request isc-projects/bind9!706
2018-08-27 00:39:13 -04:00
Michał KępieńandMark Andrews c0bbd57303 Add CHANGES entry
5020.	[bug]		dig returned a non-zero exit code when it received a
			reply over TCP after a retry. [GL #487]

(cherry picked from commit 59057bee5b)
2018-08-27 14:30:32 +10:00
Michał KępieńandMark Andrews 5cc841fa53 Reset dig exit code after a TCP connection is established
The "exitcode" variable is set to 9 if a TCP connection fails, but is
not reset to 0 if a subsequent TCP connection succeeds.  This causes dig
to return a non-zero exit code if it succeeds in getting a TCP response
after a retry.  Fix by resetting "exitcode" to 0 if connect_done()
receives an event with the "result" field set to ISC_R_SUCCESS.

(cherry picked from commit deb3b85cb2)
2018-08-27 14:30:06 +10:00
Ondřej Surý 6021b95451 Merge branch 'run-update_copyrights-v9_12' into 'v9_12'
Run update copyrights in precheck stage

See merge request isc-projects/bind9!701
2018-08-24 08:42:59 -04:00
Ondřej SurýandOndřej Surý a8d5dd1878 Check update_copyright results in precheck stage
(cherry picked from commit 4016369212)
2018-08-24 08:34:44 -04:00
Ondřej SurýandOndřej Surý 791663dd60 Whitespace fixes
(cherry picked from commit 31b5360943)
2018-08-24 08:34:44 -04:00
Ondřej SurýandOndřej Surý bb10ea3f7a Cleanup cruft in util/copyrights
(cherry picked from commit 65de91f512)
2018-08-24 08:34:44 -04:00
Ondřej SurýandOndřej Surý 017968d90b Make update_copyrights return error code when error is encountered during processing the files
(cherry picked from commit db3d69263d)
2018-08-24 08:34:44 -04:00
Michał Kępień 6ef408d28f Merge branch '470-log-a-message-when-ixfr-from-differences-is-set-for-an-inline-signed-zone-v9_12' into 'v9_12'
[v9_12] Log a message when "ixfr-from-differences" is set for an inline-signed zone

See merge request isc-projects/bind9!695
2018-08-24 04:35:32 -04:00
Michał Kępień 5ea91c5a43 Add CHANGES entry
5019.	[cleanup]	A message is now logged when ixfr-from-differences is
			set at zone level for an inline-signed zone. [GL #470]

(cherry picked from commit 4fb5d072c2)
2018-08-24 10:21:28 +02:00
Michał Kępień e0b9bb1d2c Log a message when "ixfr-from-differences" is set for an inline-signed zone
For inline-signed zones, the value of "ixfr-from-differences" is
hardcoded to:

  - "yes" for the raw version of the zone,
  - "no" for the signed version of the zone.

In other words, any user-provided "ixfr-from-differences" setting is
effectively ignored for an inline-signed zone.  Ensure the user is aware
of that by adding a note to the ARM and logging a message when an
"ixfr-from-differences" option is found at the zone level.

(cherry picked from commit 087157d14f)
2018-08-24 10:21:27 +02:00
Michał Kępień a6e79d7ce4 Merge branch '477-fix-intermittent-mkeys-system-test-failures' into 'v9_12'
Fix intermittent "mkeys" system test failures

See merge request isc-projects/bind9!684
2018-08-24 04:10:42 -04:00
Michał Kępień c12388f5e8 Do not call bin/tools/genrandom unconditionally in system tests
$RANDFILE, i.e. bin/tests/system/random.data, should only be written to
if a system test requires support for cryptography and that file does
not already exist.  Otherwise, when multiple system tests are run in
parallel, that file might get truncated due to bin/tools/genrandom.c
using fopen() with mode "w" when writing the destination file.  With
unfortunate timing, this may cause system tests employing BIND tools
which need entropy (e.g. dnssec-keygen) to fail.

Make sure bin/tests/system/metadata/tests.sh no longer calls
bin/tools/genrandom since $RANDFILE is guaranteed to already be created
by the time bin/tools/genrandom is currently called because
bin/tests/system/metadata/prereq.sh uses bin/tests/system/testcrypto.sh.

Make sure bin/tests/system/sfcache/prereq.sh only writes to $RANDFILE if
it does not already exist.
2018-08-24 09:57:15 +02:00
Michał Kępień 262c9e8aab Merge branch '491-prevent-a-race-in-the-inline-system-test-v9_12' into 'v9_12'
[v9_12] Prevent a race in the "inline" system test

See merge request isc-projects/bind9!692
2018-08-24 03:55:14 -04:00
Michał Kępień 56da51da7b Prevent a race in the "inline" system test
A short time window exists between logging the addition of an NSEC3PARAM
record to a zone and committing it to the current version of the zone
database.  If a query arrives during such a time window, an unsigned
response will be returned.  One of the checks in the "inline" system
test requires NSEC3 records to be present in an answer - that check
would fail in the case described above.  Use rndc instead of log
watching for checking whether zone signing and NSEC3 chain modifications
are complete in order to prevent intermittent "inline" system test
failures.

(cherry picked from commit e36c869e85)
2018-08-24 09:38:22 +02:00
Mark Andrews d347b4227a Merge branch 'fix-non-portable-v9_12' into 'v9_12'
use sizeof(CK_SLOT_ID)

See merge request isc-projects/bind9!689
2018-08-23 21:44:28 -04:00
Mark Andrews fef6fc20e1 add CHANGES note
(cherry picked from commit 42b16771db)
2018-08-24 11:32:18 +10:00
Mark Andrews 072069f1d5 use sizeof(CK_SLOT_ID)
(cherry picked from commit 2c1d8b2e99)
2018-08-24 11:32:11 +10:00
Mark Andrews 661d2628c5 Merge branch 'value-not-updated-atomically-v9_12' into 'v9_12'
unlink before unlock

See merge request isc-projects/bind9!687
2018-08-23 21:12:53 -04:00
Mark Andrews 7a0bd7f04c add CHANGES note
(cherry picked from commit 05531d3a86)
2018-08-24 10:58:20 +10:00
Mark Andrews 59ce0f2620 unlink before unlock
(cherry picked from commit 4742f4ecba)
2018-08-24 10:58:20 +10:00
Mark Andrews 08efcd0662 Merge branch '445-filter-aaaa-and-dns64-can-both-attempt-to-recurse-for-a-records-at-the-same-time-v9_12' into 'v9_12'
Resolve "filter-aaaa and dns64 can both attempt to recurse for A records at the same time"

See merge request isc-projects/bind9!685
2018-08-23 19:55:12 -04:00
Mark Andrews 69f7460395 add CHANGES note
(cherry picked from commit c1bc3baf7f)
2018-08-24 09:47:17 +10:00
Mark Andrews 68138381b4 when filter-aaaa and dns64 are both configured a assertion failure could occur
(cherry picked from commit 1056376d10)
2018-08-24 09:47:17 +10:00
Michał Kępień 070b679104 Merge branch '435-fix-reloading-inline-signed-zones-v9_12' into 'v9_12'
[v9_12] Fix reloading inline-signed zones

See merge request isc-projects/bind9!674
2018-08-22 06:00:58 -04:00
Michał Kępień 61a71f82c5 Add CHANGES entry
5015.	[bug]		Reloading all zones caused zone maintenance to cease
			for inline-signed zones. [GL #435]

(cherry picked from commit f9931f1d22)
2018-08-22 11:45:30 +02:00
Michał Kępień 7680c7d1cf Fix reloading inline-signed zones
While "rndc reload" causes dns_zone_asyncload() to be called for the
signed version of an inline-signed zone, the subsequent zone_load() call
causes the raw version to be reloaded from storage.  This means that
DNS_ZONEFLG_LOADPENDING gets set for the signed version of the zone by
dns_zone_asyncload() before the reload is attempted, but zone_postload()
is only called for the raw version and thus DNS_ZONEFLG_LOADPENDING is
cleared for the raw version, but not for the signed version.  This in
turn prevents zone maintenance from happening for the signed version of
the zone.

Until commit 7c64547d95, this problem
remained dormant because DNS_ZONEFLG_LOADPENDING was previously
immediately, unconditionally cleared after zone loading was started
(whereas it should only be cleared when zone loading is finished or an
error occurs).  This behavior caused other issues [1] and thus had to be
changed.

Fix reloading inline-signed zones by clearing DNS_ZONEFLG_LOADPENDING
for the signed version of the zone once the raw version reload
completes.  Take care not to clear it prematurely during initial zone
load.  Also make sure that DNS_ZONEFLG_LOADPENDING gets cleared when
zone_postload() encounters an error or returns early, to prevent other
scenarios from resulting in the same problem.  Add comments aiming to
help explain code flow.

[1] see RT #47076

(cherry picked from commit 5431583971)
2018-08-22 11:45:24 +02:00
Michał Kępień 057cedc818 Merge branch '482-fix-secure-journal-loading-for-inline-signed-zones-v9_12' into 'v9_12'
[v9_12] Set DNS_JOURNALOPT_RESIGN when loading the secure journal for an inline-signed zone

See merge request isc-projects/bind9!672
2018-08-22 05:21:23 -04:00
Michał Kępień 3a269081df Add CHANGES entry
5014.	[bug]		Signatures loaded from the journal for the signed
			version of an inline-signed zone were not scheduled for
			refresh. [GL #482]

(cherry picked from commit b3b1a9081b)
2018-08-22 10:51:48 +02:00