]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
7 years agoAdd CHANGES entry
Michał Kępień [Fri, 19 Apr 2019 07:37:51 +0000 (09:37 +0200)] 
Add CHANGES entry

5213. [bug] win32: Eliminated a race which allowed named.exe running
as a service to be killed prematurely during shutdown.
[GL #978]

(cherry picked from commit e7332343ed8581607efbec2c0159e7f0eaa4a539)

7 years agowin32: fix service state reported during shutdown
Michał Kępień [Fri, 19 Apr 2019 07:37:51 +0000 (09:37 +0200)] 
win32: fix service state reported during shutdown

When a Windows service receives a request to stop, it should not set its
state to SERVICE_STOPPED until it is completely shut down as doing that
allows the operating system to kill that service prematurely, which in
the case of named may e.g. prevent the PID file and/or the lock file
from being cleaned up.

Set service state to SERVICE_STOP_PENDING when named begins its shutdown
and only report the SERVICE_STOPPED state immediately before exiting.

(cherry picked from commit 964749dfdbb51b4f1626edf1eb97df33600c10ae)

7 years agoMerge branch '757-unsupported-algorithms-v9_11' into 'v9_11'
Matthijs Mekking [Fri, 19 Apr 2019 07:14:15 +0000 (03:14 -0400)] 
Merge branch '757-unsupported-algorithms-v9_11' into 'v9_11'

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

See merge request isc-projects/bind9!1825

7 years agoUpdate copyrights
Matthijs Mekking [Thu, 18 Apr 2019 09:56:01 +0000 (11:56 +0200)] 
Update copyrights

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

(cherry picked from commit a67dac5d2170c33fb254f626d59666e2629fc0bd)

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.

(cherry picked from commit 3b7c849a3fe7e0c62b77ae501b40c11f2104f1c7)

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

(cherry picked from commit 1d45ad8f39dcd66f7e664e5d05d4ac553fdcbc0b)

Some adaptations were made to make the code compile and tests pass.

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

(cherry picked from commit 924fdad0e59c9d74eafab11b6fe0e49dbdd115c6)

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

(cherry picked from commit dfcf9bb0edc8d0f75e01cd643dbba176066e478e)

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

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

See merge request isc-projects/bind9!1828

7 years agoOn non-GNUC systems, use uintmax_t in the ISC_ALIGN macro
Ondřej Surý [Thu, 18 Apr 2019 09:49:10 +0000 (11:49 +0200)] 
On non-GNUC systems, use uintmax_t in the ISC_ALIGN macro

(cherry picked from commit 2e40cc94dc5ed7753c7e8a3ff128d60dbb4e3e2b)

7 years agoMerge branch 'ondrej/text-files-dont-need-copyright-v9_11' into 'v9_11'
Ondřej Surý [Thu, 18 Apr 2019 07:26:23 +0000 (03:26 -0400)] 
Merge branch 'ondrej/text-files-dont-need-copyright-v9_11' into 'v9_11'

(v9_11) Simple text files don't need copyright header

See merge request isc-projects/bind9!1823

7 years agoSimple text files with docs on build or design don't really need copyright on their own
Ondřej Surý [Tue, 16 Apr 2019 07:26:48 +0000 (09:26 +0200)] 
Simple text files with docs on build or design don't really need copyright on their own

(cherry picked from commit 1877139a3216ee0ce962734142455765a5cde17d)

7 years agoMerge branch 'ondrej/refactor-DNS_RDATASET_FIXED-code-flow-v9_11' into 'v9_11'
Ondřej Surý [Wed, 17 Apr 2019 09:50:25 +0000 (05:50 -0400)] 
Merge branch 'ondrej/refactor-DNS_RDATASET_FIXED-code-flow-v9_11' into 'v9_11'

(v9_11) Refactor the DNS_RDATASET_FIXED code to use macros instead of ifdefs

See merge request isc-projects/bind9!1818

7 years agoRefactor the DNS_RDATASET_FIXED code to use constants instead of ifdefs
Ondřej Surý [Tue, 16 Apr 2019 09:10:22 +0000 (11:10 +0200)] 
Refactor the DNS_RDATASET_FIXED code to use constants instead of ifdefs

(cherry picked from commit 4edbb773a172a7811d7af7a53a29841f23151b31)

7 years agoMerge branch '763-matthijs-active-zsk-but-ksk-only-v9_11' into 'v9_11'
Matthijs Mekking [Fri, 12 Apr 2019 14:21:15 +0000 (10:21 -0400)] 
Merge branch '763-matthijs-active-zsk-but-ksk-only-v9_11' into 'v9_11'

Don't sign DNSKEY RRset with ZSK if KSK is offline

See merge request isc-projects/bind9!1797

7 years agoFix dnssec test
Matthijs Mekking [Fri, 12 Apr 2019 13:41:48 +0000 (15:41 +0200)] 
Fix dnssec test

The following changes were needed:

* Remove dnskey-sig-validity option (added in 9.12)
* Replace rndccmd, dig_with_opts with export variables
* Remove tests for CDNSKEY and CDS (in 9.11 always signed with ZSK)

7 years agoFix copyrights
Matthijs Mekking [Fri, 12 Apr 2019 09:31:41 +0000 (11:31 +0200)] 
Fix copyrights

7 years agoWith update-check-ksk also consider offline keys
Matthijs Mekking [Fri, 22 Mar 2019 14:42:10 +0000 (15:42 +0100)] 
With update-check-ksk also consider offline keys

The option `update-check-ksk` will look if both KSK and ZSK are
available before signing records.  It will make sure the keys are
active and available.  However, for operational practices keys may
be offline.  This commit relaxes the update-check-ksk check and will
mark a key that is offline to be available when adding signature
tasks.

(cherry picked from commit 3cb8c49c73906b28921012619a3bb87805613b81)
(cherry picked from commit b508cffeee3bfb8bc7dcf39db59ec3782a5d9e4c)

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

(cherry picked from commit 2e83e3255a9c0096e1d386839ff2b72ea0185ac5)
(cherry picked from commit 42b0bf4d3bab180876d4803fe2ec1f6e93064b28)

7 years agoAdd detail on echo message in autosign test
Matthijs Mekking [Thu, 14 Mar 2019 08:43:14 +0000 (09:43 +0100)] 
Add detail on echo message in autosign test

(cherry picked from commit d330986374d434e8a5101478cc6b476b42fa588a)
(cherry picked from commit d281d9ae99985772db13fb3dce0c0e7e2fb5f5b8)

7 years agoAdd test for ZSK rollover while KSK offline
Matthijs Mekking [Thu, 14 Mar 2019 08:32:20 +0000 (09:32 +0100)] 
Add test for ZSK rollover while KSK offline

This commit adds a lengthy test where the ZSK is rolled but the
KSK is offline (except for when the DNSKEY RRset is changed).  The
specific scenario has the `dnskey-kskonly` configuration option set
meaning the DNSKEY RRset should only be signed with the KSK.

A new zone `updatecheck-kskonly.secure` is added to test against,
that can be dynamically updated, and that can be controlled with rndc
to load the DNSSEC keys.

There are some pre-checks for this test to make sure everything is
fine before the ZSK roll, after the new ZSK is published, and after
the old ZSK is deleted.  Note there are actually two ZSK rolls in
quick succession.

When the latest added ZSK becomes active and its predecessor becomes
inactive, the KSK is offline.  However, the DNSKEY RRset did not
change and it has a good signature that is valid for long enough.
The expected behavior is that the DNSKEY RRset stays signed with
the KSK only (signature does not need to change).  However, the
test will fail because after reconfiguring the keys for the zone,
it wants to add re-sign tasks for the new active keys (in sign_apex).
Because the KSK is offline, named determines that the only other
active key, the latest ZSK, will be used to resign the DNSKEY RRset,
in addition to keeping the RRSIG of the KSK.

The question is: Why do we need to resign the DNSKEY RRset
immediately when a new key becomes active?  This is not required,
only once the next resign task is triggered the new active key
should replace signatures that are in need of refreshing.

(cherry-picked from commit c48b85d0a3c34480179d44e736e3e535dbae1001)

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

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

See merge request isc-projects/bind9!1802

7 years agosupport files which have CR LF ending like those in win32utils
Mark Andrews [Fri, 12 Apr 2019 04:09:01 +0000 (14:09 +1000)] 
support files which have CR LF ending like those in win32utils

(cherry picked from commit e76936fd85d2b05058f7de11ce1ca9e044b59c04)

7 years agoMerge branch '963-dnstap-check-ra-v9_14-v9_11' into 'v9_11'
Evan Hunt [Fri, 12 Apr 2019 02:26:22 +0000 (22:26 -0400)] 
Merge branch '963-dnstap-check-ra-v9_14-v9_11' into 'v9_11'

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

See merge request isc-projects/bind9!1800

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

(cherry picked from commit ded4650794b6444c605851dbdf06ef0ec2b22c51)

7 years agodnstap: if recursion is not available, log queries as AQ instead of CQ
Evan Hunt [Wed, 27 Mar 2019 16:45:45 +0000 (17:45 +0100)] 
dnstap: if recursion is not available, log queries as AQ instead of CQ

(cherry picked from commit 1f578cdb1252575f097a83a831bdfb59d346ef09)
(cherry picked from commit f6c3b135222b5207d5bca4522dc938bf4d2e742e)

7 years agoMerge branch '899-add-totext-fromtext-to-wirechecks-v9_11' into 'v9_11'
Mark Andrews [Thu, 11 Apr 2019 10:04:57 +0000 (06:04 -0400)] 
Merge branch '899-add-totext-fromtext-to-wirechecks-v9_11' into 'v9_11'

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

See merge request isc-projects/bind9!1790

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

(cherry picked from commit 307a1b563b1c771573ef97e52add98bcff0ea193)

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

(cherry picked from commit b78e128a2ff26950bb9ff186b0614279e6f450c2)

7 years agoPrevent WIRE_INVALID() being called without a argument
Mark Andrews [Thu, 28 Feb 2019 07:04:02 +0000 (18:04 +1100)] 
Prevent WIRE_INVALID() being called without a argument

(cherry picked from commit e73a5b0ce3c5364ab9ac66587be413bfe51080d8)

7 years agoCheck multi-line output from dns_rdata_tofmttext()
Mark Andrews [Thu, 28 Feb 2019 06:06:01 +0000 (17:06 +1100)] 
Check multi-line output from dns_rdata_tofmttext()

Check that multi-line output from dns_rdata_tofmttext() can be read
back in by dns_rdata_fromtext().

(cherry picked from commit b089f43b7a4f0c3b51dc88fbe60d9c79b87e9893)

7 years agoProcess master file comments and make input invalid again
Mark Andrews [Thu, 11 Apr 2019 08:54:24 +0000 (18:54 +1000)] 
Process master file comments and make input invalid again

(cherry picked from commit 1a75a5cee6a8c0157cb9ed86361ba4b3f179bdd1)

7 years agoSet 'specials' to match 'specials' in 'lib/dns/master.c'
Mark Andrews [Thu, 28 Feb 2019 06:00:15 +0000 (17:00 +1100)] 
Set 'specials' to match 'specials' in 'lib/dns/master.c'

(cherry picked from commit 7941a9554fe00697c81b52051b41912966a1e36a)

7 years agoFix whitespace so that the names align
Mark Andrews [Thu, 28 Feb 2019 05:58:56 +0000 (16:58 +1100)] 
Fix whitespace so that the names align

(cherry picked from commit cc5e16e4d3fcbde42d35ed6d6eec8dcab1482d71)

7 years agoAdd dns_rdata_totext() and dns_rdata_fromtext() to fromwire
Mark Andrews [Tue, 26 Feb 2019 23:21:33 +0000 (10:21 +1100)] 
Add dns_rdata_totext() and dns_rdata_fromtext() to fromwire

Add dns_rdata_totext() and dns_rdata_fromtext() to fromwire for
valid inputs to ensure that what we accept in dns_rdata_fromwire()
can be written out and read back in.

(cherry picked from commit 36f30f57313747c536ea9afcd037086edea3ecb0)

7 years agoMerge branch '965-delv-prints-weird-ttl-values-2-v9_11' into 'v9_11'
Mark Andrews [Wed, 10 Apr 2019 06:32:04 +0000 (02:32 -0400)] 
Merge branch '965-delv-prints-weird-ttl-values-2-v9_11' into 'v9_11'

Test that dig and delve print correct TTL values.

See merge request isc-projects/bind9!1787

7 years agoadd CHANGES
Mark Andrews [Wed, 10 Apr 2019 04:47:48 +0000 (14:47 +1000)] 
add CHANGES

(cherry picked from commit dfc485b02e17002d25548dec422cf6da82fb9a3a)

7 years agoCheck dig TTLs.
Matthijs Mekking [Fri, 5 Apr 2019 13:31:10 +0000 (15:31 +0200)] 
Check dig TTLs.

(cherry picked from commit 195277ca6df93be3c4d6721071011b9581e6f527)

7 years agoCheck delv TTLs.
Mark Andrews [Mon, 1 Apr 2019 07:46:41 +0000 (18:46 +1100)] 
Check delv TTLs.

(cherry picked from commit 146202d6a8ef4f27b99554aaf54530227b2cde9a)

7 years agoMerge branch '899-enforce-hash-in-ds-v9_11' into 'v9_11'
Mark Andrews [Wed, 10 Apr 2019 06:00:50 +0000 (02:00 -0400)] 
Merge branch '899-enforce-hash-in-ds-v9_11' into 'v9_11'

enforce DS hash exists

See merge request isc-projects/bind9!1784

7 years agoadd CHANGES
Mark Andrews [Thu, 21 Mar 2019 11:07:10 +0000 (22:07 +1100)] 
add CHANGES

(cherry picked from commit 97b7360ce1b1bf97204e9ef7783f2d08fe6f5c6a)

7 years agoadd ds unit test
Mark Andrews [Wed, 27 Feb 2019 04:33:37 +0000 (15:33 +1100)] 
add ds unit test

(cherry picked from commit 6eb28eda1e00c9f5cbd6a4d37cd06f888f688e3a)

7 years agoenforce DS hash exists
Mark Andrews [Tue, 26 Feb 2019 23:32:18 +0000 (10:32 +1100)] 
enforce DS hash exists

(cherry picked from commit b274f3fad77d7325650ee3d1e4fd7f94b92edebe)

7 years agoMerge branch '852-run-fromtext-through-fromwire-v9_11' into 'v9_11'
Mark Andrews [Wed, 10 Apr 2019 03:37:59 +0000 (23:37 -0400)] 
Merge branch '852-run-fromtext-through-fromwire-v9_11' into 'v9_11'

check that from fromtext produces valid towire input

See merge request isc-projects/bind9!1781

7 years agoadd CHANGES
Mark Andrews [Wed, 10 Apr 2019 01:16:55 +0000 (11:16 +1000)] 
add CHANGES

(cherry picked from commit d712b88048c5efa37f74acefb8515a734539efed)

7 years agocheck that from fromtext produces valid towire input
Mark Andrews [Tue, 5 Feb 2019 06:20:49 +0000 (17:20 +1100)] 
check that from fromtext produces valid towire input

(cherry picked from commit 7b0a6538584c935105c48c8093a52caa921a9d80)

7 years agoMerge branch '971-downgrade-DLZ_DBCLIENTINFO_VERSION-in-dlz_minimal.h-v9_11' into...
Ondřej Surý [Tue, 9 Apr 2019 19:45:11 +0000 (15:45 -0400)] 
Merge branch '971-downgrade-DLZ_DBCLIENTINFO_VERSION-in-dlz_minimal.h-v9_11' into 'v9_11'

(v9_11) Downgrade the dns_clientinfomethod structure to the version in lib/dns/clientinfo.c

See merge request isc-projects/bind9!1779

7 years agoDowngrade the dns_clientinfomethod structure to the version in lib/dns/clientinfo.c
Ondřej Surý [Tue, 9 Apr 2019 09:06:08 +0000 (10:06 +0100)] 
Downgrade the dns_clientinfomethod structure to the version in lib/dns/clientinfo.c

(cherry picked from commit a6f09b2255e323d8c49306ef0af6b4f7565baa61)

7 years agoMerge branch '899-fromwire-check-flags-for-nokey-v9_11' into 'v9_11'
Mark Andrews [Tue, 9 Apr 2019 04:39:59 +0000 (00:39 -0400)] 
Merge branch '899-fromwire-check-flags-for-nokey-v9_11' into 'v9_11'

Check KEY flags for empty key in fromwire method

See merge request isc-projects/bind9!1777

7 years agoadd CHANGES
Mark Andrews [Thu, 21 Mar 2019 11:13:33 +0000 (22:13 +1100)] 
add CHANGES

(cherry picked from commit f78c688c4f6d8b0072fe0115093965a093227a00)

7 years agofor rkey flags MUST be zero
Mark Andrews [Sun, 24 Mar 2019 06:48:22 +0000 (17:48 +1100)] 
for rkey flags MUST be zero

(cherry picked from commit 82d4931440d244df52f23a37412bd8d96d7be206)

7 years agocheck flags for no key in fromwire for *KEY
Mark Andrews [Tue, 26 Feb 2019 23:35:53 +0000 (10:35 +1100)] 
check flags for no key in fromwire for *KEY

(cherry picked from commit 2592e91516a44368ef86c17010eb56db017523ca)

7 years agoMerge branch '893-do-not-rely-on-default-dig-options-in-system-tests-v9_11' into...
Michał Kępień [Wed, 3 Apr 2019 11:21:58 +0000 (07:21 -0400)] 
Merge branch '893-do-not-rely-on-default-dig-options-in-system-tests-v9_11' into 'v9_11'

[v9_11] Do not rely on default dig options in system tests

See merge request isc-projects/bind9!1765

7 years agoDo not rely on default dig options in system tests
Michał Kępień [Wed, 3 Apr 2019 10:57:33 +0000 (12:57 +0200)] 
Do not rely on default dig options in system tests

Some system tests assume dig's default setings are in effect.  While
these defaults may only be silently overridden (because of specific
options set in /etc/resolv.conf) for BIND releases using liblwres for
parsing /etc/resolv.conf (i.e. BIND 9.11 and older), it is arguably
prudent to make sure that tests relying on specific +timeout and +tries
settings specify these explicitly in their dig invocations, in order to
prevent test failures from being triggered by any potential changes to
current defaults.

(cherry picked from commit b6cce0fb8bd0bd9a70488c183a41c4f43c0eee2f)

7 years agoMerge branch 'michal/add-r-randfile-where-it-is-missing' into 'v9_11'
Michał Kępień [Tue, 2 Apr 2019 11:29:02 +0000 (07:29 -0400)] 
Merge branch 'michal/add-r-randfile-where-it-is-missing' into 'v9_11'

Add "-r $RANDFILE" where it is missing

See merge request isc-projects/bind9!1763

7 years agoAdd "-r $RANDFILE" where it is missing
Michał Kępień [Tue, 26 Mar 2019 09:51:16 +0000 (10:51 +0100)] 
Add "-r $RANDFILE" where it is missing

If the path to the source of random data is not passed explicitly to
dnssec-keygen or dnssec-signzone and the --with-randomdev compile-time
switch is not used, the aforementioned utilities will hang if the
default source of random data (/dev/random) runs out of entropy.  Use
"-r $RANDFILE" to prevent that from happening in affected system tests.

7 years agoMerge branch '920-see-problem-when-multiple-sigs-with-besteffort-parsing-v9_11' into...
Mark Andrews [Tue, 26 Mar 2019 10:48:30 +0000 (06:48 -0400)] 
Merge branch '920-see-problem-when-multiple-sigs-with-besteffort-parsing-v9_11' into 'v9_11'

Address problems with best effort parsing.

See merge request isc-projects/bind9!1753

7 years agoadd CHANGES
Mark Andrews [Tue, 26 Mar 2019 10:18:19 +0000 (21:18 +1100)] 
add CHANGES

(cherry picked from commit b779342017ca338766e2ba94f4bfb25f3ec6a049)

7 years agoFix assertion failure in nslookup/dig/mdig when message has multiple SIG(0) options.
Witold Kręcicki [Tue, 5 Mar 2019 14:14:08 +0000 (15:14 +0100)] 
Fix assertion failure in nslookup/dig/mdig when message has multiple SIG(0) options.

When parsing message with DNS_MESSAGE_BESTEFFORT (used exclusively in
tools, never in named itself) if we hit an invalid SIG(0) in wrong
place we continue parsing the message, and put the sig0 in msg->sig0.
If we then hit another sig0 in a proper place we see that msg->sig0
is already 'taken' and we don't free name and rdataset, and we don't
set seen_problem. This causes an assertion failure.
This fixes that issue by setting seen_problem if we hit second sig0,
tsig or opt, which causes name and rdataset to be always freed.

(cherry picked from commit 51a55ddbb73f8707de3d1b8cda15c8f61585bacb)

7 years agoMerge branch '948-dlzexternal-driver-so-failing-to-build-macos-v9_11' into 'v9_11'
Mark Andrews [Tue, 26 Mar 2019 10:08:44 +0000 (06:08 -0400)] 
Merge branch '948-dlzexternal-driver-so-failing-to-build-macos-v9_11' into 'v9_11'

Resolve "dlzexternal/driver.so failing to build MacOS v9_11"

See merge request isc-projects/bind9!1723

7 years agoback port complete SO_* block preserving SunOS disable
Mark Andrews [Wed, 20 Mar 2019 01:43:56 +0000 (12:43 +1100)] 
back port complete SO_* block preserving SunOS disable

7 years agoadd CHANGES
Mark Andrews [Wed, 20 Mar 2019 01:28:31 +0000 (12:28 +1100)] 
add CHANGES

7 years agobackport MacOS link flags
Mark Andrews [Wed, 20 Mar 2019 01:19:33 +0000 (12:19 +1100)] 
backport MacOS link flags

7 years agoMerge branch '4-make-dnstap.pb-c.h-private-v9_11' into 'v9_11'
Ondřej Surý [Fri, 22 Mar 2019 11:22:25 +0000 (07:22 -0400)] 
Merge branch '4-make-dnstap.pb-c.h-private-v9_11' into 'v9_11'

(v9_11) Make lib/dns/dnstap.pb-c.h header a private to lib/dns

See merge request isc-projects/bind9!1746

7 years agoMake lib/dns/dnstap.pb-c.h private header
Ondřej Surý [Fri, 22 Mar 2019 09:36:25 +0000 (10:36 +0100)] 
Make lib/dns/dnstap.pb-c.h private header

This changes dns_dtdata struct to not expose data types from dnstap.pb-c.h to
prevent the need for including this header where not really needed.

(cherry picked from commit 8ccce7e24b6aff6e02745b64d66ef50842763543)

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

zonemd require non empty hash

See merge request isc-projects/bind9!1741

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_11' into 'v9_11'
Mark Andrews [Thu, 21 Mar 2019 09:43:09 +0000 (05:43 -0400)] 
Merge branch '899-eid-totext-is-broken-v9_11' into 'v9_11'

EID and NIMLOC totext is broken.

See merge request isc-projects/bind9!1737

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_11' into...
Michał Kępień [Thu, 21 Mar 2019 07:35:55 +0000 (03:35 -0400)] 
Merge branch 'michal/fix-key-id-extraction-in-the-dnssec-system-test-v9_11' into 'v9_11'

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

See merge request isc-projects/bind9!1735

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 '4-update-gitignore-for-future-automake-v9_11' into 'v9_11'
Ondřej Surý [Wed, 20 Mar 2019 09:54:02 +0000 (05:54 -0400)] 
Merge branch '4-update-gitignore-for-future-automake-v9_11' into 'v9_11'

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

See merge request isc-projects/bind9!1730

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 '946-enable-fips-mode-option-breaks-build-of-hmacmd5-c-and-md5-c' into...
Ondřej Surý [Wed, 20 Mar 2019 08:33:51 +0000 (04:33 -0400)] 
Merge branch '946-enable-fips-mode-option-breaks-build-of-hmacmd5-c-and-md5-c' into 'v9_11'

Resolve "--enable-fips-mode option breaks build of  hmacmd5.c and md5.c"

See merge request isc-projects/bind9!1722

7 years agoadd CHANGES
Mark Andrews [Wed, 20 Mar 2019 01:52:07 +0000 (12:52 +1100)] 
add CHANGES

7 years agoadd #include <isc/util.h>
Mark Andrews [Wed, 20 Mar 2019 00:41:51 +0000 (11:41 +1100)] 
add #include <isc/util.h>

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

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

See merge request isc-projects/bind9!1711

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", and that if an
lwresd instance uses a lock file, it is called "lwresd.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-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)