]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agoMerge branch '1109-inline-reload-error-v9_11' into 'v9_11'
Evan Hunt [Wed, 26 Jun 2019 16:14:20 +0000 (12:14 -0400)] 
Merge branch '1109-inline-reload-error-v9_11' into 'v9_11'

don't overwrite the dns_master_loadfile() result before calling zone_postload()

See merge request isc-projects/bind9!2093

6 years agoCHANGES
Evan Hunt [Wed, 26 Jun 2019 02:42:46 +0000 (19:42 -0700)] 
CHANGES

(cherry picked from commit c29e344f07d6f95528724ba494434a216dd11c96)

6 years agoadd a test that reloading errors are not ignored
Evan Hunt [Wed, 26 Jun 2019 01:59:47 +0000 (18:59 -0700)] 
add a test that reloading errors are not ignored

(cherry picked from commit e48b3f1a00b183063030910530cf8a10b2d52531)

6 years agodon't overwrite the dns_master_loadfile() result before calling zone_postload()
Evan Hunt [Wed, 26 Jun 2019 00:53:32 +0000 (17:53 -0700)] 
don't overwrite the dns_master_loadfile() result before calling zone_postload()

if "rndc reload" fails, the result code is supposed to be passed to
zone_postload, but for inline-signing zones, the result can be
overwritten first by a call to the ZONE_TRYLOCK macro. this can lead
to the partially-loaded unsigned zone being synced over to the signed
zone instead of being rejected.

(cherry picked from commit 0b792bd37b9b6a1cc5914ab95987359fda972ff2)

6 years agoMerge branch 'michal/prevent-idna-test-failures-with-libidn2-2.2.0-v9_11' into 'v9_11'
Michał Kępień [Wed, 26 Jun 2019 13:00:55 +0000 (09:00 -0400)] 
Merge branch 'michal/prevent-idna-test-failures-with-libidn2-2.2.0-v9_11' into 'v9_11'

[v9_11] Prevent "idna" test failures with libidn2 2.2.0+

See merge request isc-projects/bind9!2091

6 years agoPrevent "idna" test failures with libidn2 2.2.0+
Michał Kępień [Wed, 26 Jun 2019 12:20:17 +0000 (14:20 +0200)] 
Prevent "idna" test failures with libidn2 2.2.0+

libidn2 2.2.0+ parses Punycode more strictly than older versions and
thus "dig +idnin +noidnout xn--19g" fails with libidn2 2.2.0+ but
succeeds with older versions.

We could preserve the old behavior by using the IDN2_NO_ALABEL_ROUNDTRIP
flag available in libidn2 2.2.0+, but:

  - this change in behavior is considered a libidn2 bug fix [1],
  - we want to make sure dig behaves as expected, not libidn2,
  - implementing that would require additional configure.ac cruft.

Removing the problematic check appears to be the simplest solution as it
does not prevent the relevant block of checks in the "idna" system test
from achieving its purpose, i.e. ensuring dig properly handles invalid
U-labels.

[1] see upstream commit 241e8f486134793cb0f4a5b0e5817a97883401f5

(cherry picked from commit 60ce0ed411305d5bae38ab78921e7b0255207ab0)

6 years agoMerge branch '1067-underflow-recursing-clients-stats-v9_11' into 'v9_11'
Ondřej Surý [Wed, 26 Jun 2019 09:25:39 +0000 (05:25 -0400)] 
Merge branch '1067-underflow-recursing-clients-stats-v9_11' into 'v9_11'

Resolve "Underflow in Stats Channel RecursClients value?"

See merge request isc-projects/bind9!2037

6 years agoCHANGES note
Witold Kręcicki [Tue, 11 Jun 2019 09:40:20 +0000 (11:40 +0200)] 
CHANGES note

6 years agoMake sure that recursclient gauge is calculated correctly.
Witold Kręcicki [Thu, 13 Jun 2019 12:29:52 +0000 (14:29 +0200)] 
Make sure that recursclient gauge is calculated correctly.

We increase recursclients when we attach to recursion quota,
decrease when we detach. In some cases, when we hit soft
quota, we might attach to quota without increasing recursclients
gauge. We then decrease the gauge when we detach from quota,
and it causes the statistics to underflow.
Fix makes sure that we increase recursclients always when we
succesfully attach to recursion quota.

6 years agoMerge branch '1098-compile-failure-on-9-11-8' into 'v9_11'
Mark Andrews [Mon, 24 Jun 2019 23:44:49 +0000 (19:44 -0400)] 
Merge branch '1098-compile-failure-on-9-11-8' into 'v9_11'

Resolve "Compile failure on 9.11.8"

See merge request isc-projects/bind9!2065

6 years agoadd CHANGES
Mark Andrews [Mon, 24 Jun 2019 23:44:07 +0000 (09:44 +1000)] 
add CHANGES

6 years agodefine ULLONG_MAX if not already defined
Mark Andrews [Thu, 20 Jun 2019 05:29:20 +0000 (15:29 +1000)] 
define ULLONG_MAX if not already defined

6 years agoMerge branch 'marka-wait-for-zones-to-load-v9_11' into 'v9_11'
Mark Andrews [Mon, 24 Jun 2019 04:35:28 +0000 (00:35 -0400)] 
Merge branch 'marka-wait-for-zones-to-load-v9_11' into 'v9_11'

wait for zones to load

See merge request isc-projects/bind9!2071

6 years agowait for zones to load
Mark Andrews [Tue, 11 Jun 2019 07:42:35 +0000 (17:42 +1000)] 
wait for zones to load

(cherry picked from commit b62e6418b568f6ac4fc1b8e2d2c2015410c4b763)

6 years agoMerge branch '1094-bump-clientinfomethods-version-v9_11' into 'v9_11'
Ondřej Surý [Thu, 20 Jun 2019 15:45:53 +0000 (11:45 -0400)] 
Merge branch '1094-bump-clientinfomethods-version-v9_11' into 'v9_11'

[v9_11] Bump DNS_CLIENTINFOMETHODS VERSION and AGE

See merge request isc-projects/bind9!2059

6 years agoBump DNS_CLIENTINFOMETHODS_VERSION/_AGE to 2/1 in clientinfo.h
Brian Conry [Tue, 18 Jun 2019 19:37:20 +0000 (14:37 -0500)] 
Bump DNS_CLIENTINFOMETHODS_VERSION/_AGE to 2/1 in clientinfo.h

BIND 9.11.0 has bumped DNS_CLIENTINFOMETHODS_VERSION and _AGE to
version 2 and 1 in the dlz_minimal.h because a member was addet to the
dnsclientinfo struct.  It was found out that the new member is not
used anywhere and there are no accessor functions therefore the change
was reverted.

Later on, it was found out that the revert caused some problems to the
users of BIND 9, and thus this changes takes a different approach by
syncing the values other way around.

(cherry picked from commit 39344dfb3e7a7a734c5d830f18884a636bfd6f5d)

6 years agoRevert "Downgrade the dns_clientinfomethod structure to the version in lib/dns/client...
Ondřej Surý [Thu, 20 Jun 2019 10:39:34 +0000 (12:39 +0200)] 
Revert "Downgrade the dns_clientinfomethod structure to the version in lib/dns/clientinfo.c"

This reverts commit a6f09b2255e323d8c49306ef0af6b4f7565baa61.

(cherry picked from commit 04961a7e6b62fa2d7846097be6de34021d71706a)

6 years agoMerge branch 'security-v9_11' into 'v9_11'
Evan Hunt [Wed, 19 Jun 2019 23:15:29 +0000 (19:15 -0400)] 
Merge branch 'security-v9_11' into 'v9_11'

merge security-v9_11

See merge request isc-projects/bind9!2062

6 years agoMerge branch 'prep-release' into security-v9_11
Tinderbox User [Tue, 4 Jun 2019 16:01:00 +0000 (16:01 +0000)] 
Merge branch 'prep-release' into security-v9_11

6 years agoMerge branch '942-security-move-test-inside-lock-security-v9_11' into 'security-v9_11'
Evan Hunt [Wed, 29 May 2019 05:19:05 +0000 (22:19 -0700)] 
Merge branch '942-security-move-test-inside-lock-security-v9_11' into 'security-v9_11'

6 years agoprep 9.11.8
Tinderbox User [Mon, 3 Jun 2019 22:06:22 +0000 (22:06 +0000)] 
prep 9.11.8

6 years agoCHANGES, release note
Evan Hunt [Thu, 9 May 2019 17:53:18 +0000 (10:53 -0700)] 
CHANGES, release note

(cherry picked from commit 332af50eed96cbcb20173f297e543adaded0ed92)

6 years agomove item_out test inside lock in dns_dispatch_getnext()
Mark Andrews [Tue, 19 Mar 2019 03:14:21 +0000 (14:14 +1100)] 
move item_out test inside lock in dns_dispatch_getnext()

(cherry picked from commit 60c42f849d520564ed42e5ed0ba46b4b69c07712)

6 years agoMerge branch '1088-always-fail-a-system-test-if-crashes-are-detected-v9_11' into...
Michał Kępień [Tue, 18 Jun 2019 07:55:23 +0000 (03:55 -0400)] 
Merge branch '1088-always-fail-a-system-test-if-crashes-are-detected-v9_11' into 'v9_11'

[v9_11] Always fail a system test if crashes are detected

See merge request isc-projects/bind9!2048

6 years agoAlways fail a system test if crashes are detected
Michał Kępień [Tue, 18 Jun 2019 07:14:07 +0000 (09:14 +0200)] 
Always fail a system test if crashes are detected

In certain situations (e.g. a named instance crashing upon shutdown in a
system test which involves shutting down a server and restarting it
afterwards), a system test may succeed despite a named crash being
triggered.  This must never be the case.  Extend run.sh to mark a test
as failed if core dumps or log lines indicating assertion failures are
detected (the latter is only an extra measure aimed at test environments
in which core dumps are not generated; note that some types of crashes,
e.g. segmentation faults, will not be detected using this method alone).

(cherry picked from commit 7706f22924dac215e22d4be4322f89814041a3a8)

6 years agoMerge branch 'michal/tkey-system-test-fix-key-id-processing-v9_11' into 'v9_11'
Michał Kępień [Mon, 17 Jun 2019 12:43:21 +0000 (08:43 -0400)] 
Merge branch 'michal/tkey-system-test-fix-key-id-processing-v9_11' into 'v9_11'

[v9_11] "tkey" system test: fix key ID processing

See merge request isc-projects/bind9!2043

6 years agoFix key ID processing
Michał Kępień [Mon, 17 Jun 2019 12:15:18 +0000 (14:15 +0200)] 
Fix key ID processing

If ns1/setup.sh generates a key with ID 0, the "KEYID" token in
ns1/named.conf.in will be replaced with an empty string, causing the
following broken statement to appear in ns1/named.conf:

    tkey-dhkey "server" ;

Such a statement triggers false positives for the "tkey" system test due
to ns1 being unable to start with a broken configuration file.  Fix by
tweaking the regular expression used for removing leading zeros from the
key ID, so that it removes at most 4 leading zeros.

(cherry picked from commit 0b7b1161c215bf4e08467c79282dddc34bda2240)

6 years agoMerge branch 'michal/address-compilation-warnings-for-O3-builds-v9_11' into 'v9_11'
Michał Kępień [Tue, 11 Jun 2019 08:49:03 +0000 (04:49 -0400)] 
Merge branch 'michal/address-compilation-warnings-for-O3-builds-v9_11' into 'v9_11'

[v9_11] Address compilation warnings for -O3 builds

See merge request isc-projects/bind9!2029

6 years agoAddress GCC 9.1 -O3 compilation warnings
Michał Kępień [Fri, 31 May 2019 12:34:34 +0000 (14:34 +0200)] 
Address GCC 9.1 -O3 compilation warnings

Compiling with -O3 triggers the following warnings with GCC 9.1:

    task.c: In function ‘isc__taskmgr_create’:
    task.c:1456:44: warning: ‘%04u’ directive output may be truncated writing between 4 and 10 bytes into a region of size 6 [-Wformat-truncation=]
     1456 |    snprintf(name, sizeof(name), "isc-worker%04u", i);
          |                                            ^~~~
    task.c:1456:33: note: directive argument in the range [0, 4294967294]
     1456 |    snprintf(name, sizeof(name), "isc-worker%04u", i);
          |                                 ^~~~~~~~~~~~~~~~
    task.c:1456:4: note: ‘snprintf’ output between 15 and 21 bytes into a destination of size 16
     1456 |    snprintf(name, sizeof(name), "isc-worker%04u", i);
          |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    rrl.c: In function ‘debit_rrl_entry’:
    rrl.c:602:35: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Werror=format-truncation=]
      602 |   snprintf(buf, sizeof(buf), "age=%d", age);
          |                                   ^~
    rrl.c:602:30: note: directive argument in the range [0, 2147483647]
      602 |   snprintf(buf, sizeof(buf), "age=%d", age);
          |                              ^~~~~~~~
    rrl.c:602:3: note: ‘snprintf’ output between 6 and 15 bytes into a destination of size 13
      602 |   snprintf(buf, sizeof(buf), "age=%d", age);
          |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    rrl.c:602:35: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Werror=format-truncation=]
      602 |   snprintf(buf, sizeof(buf), "age=%d", age);
          |                                   ^~
    rrl.c:602:30: note: directive argument in the range [0, 2147483647]
      602 |   snprintf(buf, sizeof(buf), "age=%d", age);
          |                              ^~~~~~~~
    rrl.c:602:3: note: ‘snprintf’ output between 6 and 15 bytes into a destination of size 13
      602 |   snprintf(buf, sizeof(buf), "age=%d", age);
          |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    rrl.c:602:35: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Werror=format-truncation=]
      602 |   snprintf(buf, sizeof(buf), "age=%d", age);
          |                                   ^~
    rrl.c:602:30: note: directive argument in the range [0, 2147483647]
      602 |   snprintf(buf, sizeof(buf), "age=%d", age);
          |                              ^~~~~~~~
    rrl.c:602:3: note: ‘snprintf’ output between 6 and 15 bytes into a destination of size 13
      602 |   snprintf(buf, sizeof(buf), "age=%d", age);
          |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    private_test.c: In function ‘private_nsec3_totext_test’:
    private_test.c:114:9: warning: array subscript 4 is outside array bounds of ‘uint32_t[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
      114 |  while (*sp == '\0' && slen > 0) {
          |         ^~~
    private_test.c:107:11: note: while referencing ‘salt’
      107 |  uint32_t salt;
          |           ^~~~

Prevent these warnings from being triggered by increasing the size of
the relevant arrays (task.c, rrl.c) and reordering conditions
(private_test.c).

(cherry picked from commit ce796ac1f4bf6c64ad0e8be937933309e6942c83)

6 years agoAddress GCC 8.3 -O3 compilation warning
Witold Kręcicki [Fri, 31 May 2019 08:43:53 +0000 (10:43 +0200)] 
Address GCC 8.3 -O3 compilation warning

Compiling with -O3 triggers the following warning with GCC 8.3:

    driver.c: In function ‘dlz_findzonedb’:
    driver.c:198:29: warning: ‘%u’ directive output may be truncated writing between 1 and 5 bytes into a region of size between 0 and 99 [-Wformat-truncation=]
      snprintf(buffer, size, "%s#%u", addr_buf, port);
                                 ^~
    driver.c:198:25: note: directive argument in the range [0, 65535]
      snprintf(buffer, size, "%s#%u", addr_buf, port);
                             ^~~~~~~
    driver.c:198:2: note: ‘snprintf’ output between 3 and 106 bytes into a destination of size 100
      snprintf(buffer, size, "%s#%u", addr_buf, port);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Increase the size of the relevant array to prevent this warning from
being triggered.

(cherry picked from commit 44e6bb8b9318b5992194356a4898983ae10bf67c)

6 years agoMake some build jobs use -O3 optimizations
Michał Kępień [Fri, 31 May 2019 12:34:34 +0000 (14:34 +0200)] 
Make some build jobs use -O3 optimizations

Change the compiler optimization level for Debian sid build jobs from
-O2 to -O3 in order to enable triggering compilation warnings which are
not raised when -O2 is used.

(cherry picked from commit 356948787517fa254abcc2115adaf77c9048b9d4)

6 years agoMerge branch 'each-pandoc-args-v9_11' into 'v9_11'
Evan Hunt [Mon, 10 Jun 2019 04:32:05 +0000 (00:32 -0400)] 
Merge branch 'each-pandoc-args-v9_11' into 'v9_11'

specify title metadata and markdown format when calling pandoc

See merge request isc-projects/bind9!2024

6 years agospecify title metadata and markdown format when calling pandoc
Evan Hunt [Mon, 10 Jun 2019 04:26:55 +0000 (21:26 -0700)] 
specify title metadata and markdown format when calling pandoc

this change silences a warning message and prevents the unwanted
use of smart quotes when using pandoc 2.7.1 to generate human-readable
versions of README and other markdown files.

(cherry picked from commit 3663f61e0e41afa32e82fcd693bb661c7406244b)

6 years agoMerge branch 'michal/minor-doc-fixes-v9_11' into 'v9_11'
Evan Hunt [Mon, 10 Jun 2019 04:24:10 +0000 (00:24 -0400)] 
Merge branch 'michal/minor-doc-fixes-v9_11' into 'v9_11'

[v9_11] Minor doc fixes

See merge request isc-projects/bind9!2020

6 years agoTweak paragraph style in release notes PDF
Stephen Morris [Thu, 6 Jun 2019 21:09:13 +0000 (22:09 +0100)] 
Tweak paragraph style in release notes PDF

6 years agoFix typos in README
Stephen Morris [Thu, 6 Jun 2019 21:09:13 +0000 (22:09 +0100)] 
Fix typos in README

6 years agoAdd missing information to README
Stephen Morris [Thu, 6 Jun 2019 21:09:13 +0000 (22:09 +0100)] 
Add missing information to README

6 years agoMerge branch 'marka-capture-checkconf-output-v9_11' into 'v9_11'
Mark Andrews [Thu, 6 Jun 2019 08:59:42 +0000 (04:59 -0400)] 
Merge branch 'marka-capture-checkconf-output-v9_11' into 'v9_11'

capture named-checkconf output

See merge request isc-projects/bind9!2016

6 years agocapture named-checkconf output
Mark Andrews [Thu, 6 Jun 2019 02:50:47 +0000 (12:50 +1000)] 
capture named-checkconf output

(cherry picked from commit 36dd373ab41529a12266dedea6087827af133245)

7 years agoMerge branch 'marka-rndc-manpage-fix-v9_11' into 'v9_11'
Mark Andrews [Wed, 5 Jun 2019 23:49:41 +0000 (19:49 -0400)] 
Merge branch 'marka-rndc-manpage-fix-v9_11' into 'v9_11'

add missing word 'includes'

See merge request isc-projects/bind9!2013

7 years agoadd missing word 'includes'
Mark Andrews [Wed, 5 Jun 2019 23:07:18 +0000 (09:07 +1000)] 
add missing word 'includes'

(cherry picked from commit c6553eb3fcfee88d4dab365ad8ad5b8059d35f7f)

7 years agoMerge branch '1017-remove-dead-stores-v9_11' into 'v9_11'
Mark Andrews [Tue, 4 Jun 2019 06:03:03 +0000 (02:03 -0400)] 
Merge branch '1017-remove-dead-stores-v9_11' into 'v9_11'

Resolve "remove dead stores"

See merge request isc-projects/bind9!2007

7 years agoPOST(optlen)
Mark Andrews [Tue, 4 Jun 2019 03:15:46 +0000 (13:15 +1000)] 
POST(optlen)

(cherry picked from commit 4e97f7dccc3683f14523ee72f086dfacba85c82f)

7 years agoMerge branch 'cppcheck-and-cmocka-false-positive-v9_11' into 'v9_11'
Mark Andrews [Tue, 4 Jun 2019 05:43:26 +0000 (01:43 -0400)] 
Merge branch 'cppcheck-and-cmocka-false-positive-v9_11' into 'v9_11'

teach clang analyser that _assert_int_equal and _assert_int_not_equal don't return on failure

See merge request isc-projects/bind9!2004

7 years agoteach cppcheck that _assert_int_equal and _assert_int_not_equal don't return on failure
Mark Andrews [Tue, 16 Apr 2019 05:03:18 +0000 (15:03 +1000)] 
teach cppcheck that _assert_int_equal and _assert_int_not_equal don't return on failure

(cherry picked from commit 5d5d751c7f93c5f524661efaa9ad9cd32fa39da6)

7 years agoMerge branch '1061-update-supported-rfc-list-v9_14-v9_11' into 'v9_11'
Evan Hunt [Fri, 31 May 2019 23:51:10 +0000 (19:51 -0400)] 
Merge branch '1061-update-supported-rfc-list-v9_14-v9_11' into 'v9_11'

Resolve "update supported RFC list"

See merge request isc-projects/bind9!1998

7 years agoadd RFC6944
Mark Andrews [Wed, 29 May 2019 06:15:24 +0000 (16:15 +1000)] 
add RFC6944

7 years agoupdate RFC compliance document
Mark Andrews [Wed, 29 May 2019 05:51:15 +0000 (15:51 +1000)] 
update RFC compliance document

7 years agoMerge branch 'michal/backport-missing-legacy-system-test-checks' into 'v9_11'
Michał Kępień [Fri, 31 May 2019 10:56:12 +0000 (06:56 -0400)] 
Merge branch 'michal/backport-missing-legacy-system-test-checks' into 'v9_11'

Backport missing "legacy" system test checks

See merge request isc-projects/bind9!1986

7 years agoBackport missing "legacy" system test checks
Michał Kępień [Fri, 31 May 2019 10:43:31 +0000 (12:43 +0200)] 
Backport missing "legacy" system test checks

Backport "legacy" system test checks which are present in master and
v9_14 branches, but missing in the v9_11 branch, in order to improve the
consistency of this test across all maintained branches.  Note that the
"ednsnotimp" check is expected to succeed with 9.11 whereas it is
expected to fail with 9.14 and later versions.

7 years agoBackport "-T {ednsformerr,ednsnotimp,ednsrefused}"
Michał Kępień [Fri, 31 May 2019 10:43:31 +0000 (12:43 +0200)] 
Backport "-T {ednsformerr,ednsnotimp,ednsrefused}"

Backport named command line switches implemented in commit
c81c9660f5050a064976276883399554c7e5e9df as they are needed by the
"legacy" system checks which are currently present in master and v9_14
branches, but missing in the v9_11 branch.

7 years agoMerge branch '225-ed448-broken-with-openssl-1-1-1-pre6-v9_11' into 'v9_11'
Mark Andrews [Thu, 30 May 2019 13:19:57 +0000 (09:19 -0400)] 
Merge branch '225-ed448-broken-with-openssl-1-1-1-pre6-v9_11' into 'v9_11'

Fix ASN.1 length values in Ed448 public and private key prefix blobs.

See merge request isc-projects/bind9!1989

7 years agoadd CHANGES note
Mark Andrews [Thu, 30 May 2019 08:03:10 +0000 (18:03 +1000)] 
add CHANGES note

(cherry picked from commit 6c499a0c08a532431f634ad974690e2af38e6d07)

7 years agotest Ed448 against test vectors
Mark Andrews [Wed, 29 May 2019 05:32:16 +0000 (15:32 +1000)] 
test Ed448 against test vectors

(cherry picked from commit 20f2d9b41bfee9394e2fcaa983b9cadf3813f839)

7 years agofix Ed448 length values for precomputed ASN.1 prefix blobs
Mark Andrews [Wed, 29 May 2019 03:22:02 +0000 (13:22 +1000)] 
fix Ed448 length values for precomputed ASN.1 prefix blobs

(cherry picked from commit 5da97eeea694a4495e3ec74474544e198f3f0c22)

7 years agoMerge branch '1011-use-proper-linker-config-on-hp-ux-v9_11' into 'v9_11'
Mark Andrews [Thu, 30 May 2019 01:45:37 +0000 (21:45 -0400)] 
Merge branch '1011-use-proper-linker-config-on-hp-ux-v9_11' into 'v9_11'

Resolve "Use proper linker (config) on HP-UX"

See merge request isc-projects/bind9!1984

7 years agoia64-hp-hpux uses .so files
Mark Andrews [Thu, 30 May 2019 01:33:11 +0000 (11:33 +1000)] 
ia64-hp-hpux uses .so files

7 years agoregen
Mark Andrews [Tue, 14 May 2019 03:25:43 +0000 (13:25 +1000)] 
regen

(cherry picked from commit 92325d3150a9d25fe4d03034b5d4a6934c1957d3)

7 years agoadd link flags for ia64-hp-hpux
Mark Andrews [Tue, 14 May 2019 03:24:43 +0000 (13:24 +1000)] 
add link flags for ia64-hp-hpux

(cherry picked from commit 61752bf8ac29a5d502a333d48552b5768ac69cdf)

7 years agoMerge branch '1044-fix-LFS-flags-on-BSDs-v9_11' into 'v9_11'
Ondřej Surý [Wed, 29 May 2019 12:43:19 +0000 (08:43 -0400)] 
Merge branch '1044-fix-LFS-flags-on-BSDs-v9_11' into 'v9_11'

Pull the values for LFS_{CFLAGS,LDFLAGS,LIBS} from autoconf instead using them directly in make

See merge request isc-projects/bind9!1980

7 years agoPull the values for LFS_{CFLAGS,LDFLAGS,LIBS} from autoconf instead using them direct...
Ondřej Surý [Wed, 29 May 2019 09:19:34 +0000 (11:19 +0200)] 
Pull the values for LFS_{CFLAGS,LDFLAGS,LIBS} from autoconf instead using them directly in make

(cherry picked from commit d4596baed48b983c881c64edc65b6fe5336f1d24)

7 years agoMerge branch 'michal/legacy-system-test-fixes-v9_11' into 'v9_11'
Michał Kępień [Wed, 29 May 2019 09:33:53 +0000 (05:33 -0400)] 
Merge branch 'michal/legacy-system-test-fixes-v9_11' into 'v9_11'

[v9_11] "legacy" system test fixes

See merge request isc-projects/bind9!1975

7 years agoOptimize dig parameters to decrease test run time
Michał Kępień [Wed, 29 May 2019 09:05:01 +0000 (11:05 +0200)] 
Optimize dig parameters to decrease test run time

Performing server setup checks using "+tries=3 +time=5" is redundant as
a single query is arguably good enough for determining whether a given
named instance was set up properly.  Only use multiple queries with a
long timeout for resolution checks in the "legacy" system test, in order
to significantly reduce its run time (on a contemporary machine, from
about 1m45s to 0m40s).

(cherry picked from commit 47b850348cbc2961bc44eb31c05cd620e5fc35f0)

7 years agoMake "plain" server setup checks more similar
Michał Kępień [Wed, 29 May 2019 09:05:01 +0000 (11:05 +0200)] 
Make "plain" server setup checks more similar

Send a test TCP query to the "plain" server during its setup check to
improve its consistency with the setup check for the "plain + no TCP"
server.

(cherry picked from commit bb939a03ff2ebb14a0def772e4905988d4f5adf1)

7 years agoAdd more EDNS checks for dig output files
Michał Kępień [Wed, 29 May 2019 09:05:01 +0000 (11:05 +0200)] 
Add more EDNS checks for dig output files

In the "legacy" system test, in order to make server setup checks more
consistent with each other, add further checks for either presence or
absence of the EDNS OPT pseudo-RR in the responses returned by the
tested named instances.

(cherry picked from commit 56ed1275c6735d0e2c6d9fa7e2aae3a76db5244d)

7 years agoDo not ignore dig exit codes
Michał Kępień [Wed, 29 May 2019 09:05:01 +0000 (11:05 +0200)] 
Do not ignore dig exit codes

Make sure the "legacy" system test fails if any exit code returned by
dig does not match the expected one.

(cherry picked from commit 4dea5cb7992215a4a594a5e0b954d6ec96fc995a)

7 years agoUse helper functions for checking resolution
Michał Kępień [Wed, 29 May 2019 09:05:01 +0000 (11:05 +0200)] 
Use helper functions for checking resolution

Extract repeated dig and grep calls into two helper shell functions,
resolution_succeeds() and resolution_fails(), in order to reduce code
duplication in the "legacy" system test, emphasize the similarity
between all the resolution checks in that test, and make the conditions
for success and failure uniform for all resolution checks in that test.

(cherry picked from commit effd16ab252e65fc4fe050cd125fd0462eca6408)

7 years agoUse +dnssec instead of separate TXT records
Michał Kępień [Wed, 29 May 2019 09:05:01 +0000 (11:05 +0200)] 
Use +dnssec instead of separate TXT records

When testing named instances which are configured to drop outgoing UDP
responses larger than 512 bytes, querying with DO=1 may be used instead
of querying for large TXT records as the effect achieved will be
identical: an unsigned response for a SOA query will be below 512 bytes
in size while a signed response for the same query will be over 512
bytes in size.  Doing this makes all resolution checks in the "legacy"
system test more similar.  Add checks for the TC flag being set in UDP
responses which are expected to be truncated to further make sure that
tested named instances behave as expected.

(cherry picked from commit aaf81ca6ef0a4b3725de9f41efa3f442a6de1c85)

7 years agoFix the name of the file to inspect
Michał Kępień [Wed, 29 May 2019 09:05:01 +0000 (11:05 +0200)] 
Fix the name of the file to inspect

One of the checks in the "legacy" system test inspects dig.out.1.test$n
instead of dig.out.2.test$n.  Fix the file name used in that check.

(cherry picked from commit 3e7fa15ca378c1bf55938cd13d9839bcd98c21f7)

7 years agoEnsure queries expected to time out really do
Michał Kępień [Wed, 29 May 2019 09:05:01 +0000 (11:05 +0200)] 
Ensure queries expected to time out really do

Make sure that the "legacy" system test fails if queries which are
expected to time out do not really time out.

(cherry picked from commit 6283c1cc7e8d0dd0b841d9c533849a63bd8dcbe7)

7 years agoProperly test servers with TCP support disabled
Michał Kępień [Wed, 29 May 2019 09:05:01 +0000 (11:05 +0200)] 
Properly test servers with TCP support disabled

Sending TCP queries to test named instances with TCP support disabled
should cause dig output to contain the phrase "connection refused", not
"connection timed out", as such instances never open the relevant
sockets.  Make sure that the "legacy" system test fails if the expected
phrase is not found in any of the relevant files containing dig output.

(cherry picked from commit 9491616e5cd412e30cd2802d963a3f024af9399e)

7 years agoMerge branch '1044-include-config.h-in-gen.c-v9_11' into 'v9_11'
Ondřej Surý [Wed, 29 May 2019 08:48:15 +0000 (04:48 -0400)] 
Merge branch '1044-include-config.h-in-gen.c-v9_11' into 'v9_11'

Resolve "gen fails to generate headers on Debian buster"

See merge request isc-projects/bind9!1977

7 years agoUse getconf LFS_{CFLAGS,LDFLAGS,LIBS} to get flags to compile lib/dns/gen
Ondřej Surý [Mon, 27 May 2019 14:11:11 +0000 (16:11 +0200)] 
Use getconf LFS_{CFLAGS,LDFLAGS,LIBS} to get flags to compile lib/dns/gen

On some systems (namely Debian buster armhf) the readdir() call fails
with `Value too large for defined data type` unless the
_FILE_OFFSET_BITS=64 is defined.  The correct way to fix this is to
get the appropriate compilation parameters from getconf system
interface.

(cherry picked from commit 4c7345bcb6646f3690cc33154d43fcd9ebceed69)

7 years agoExit the ./gen program on failed readdir() call
Ondřej Surý [Tue, 21 May 2019 17:56:58 +0000 (17:56 +0000)] 
Exit the ./gen program on failed readdir() call

(cherry picked from commit 05b7c08a16eae9519473c61b947ea7137887b4a9)

7 years agoMerge branch '1056-misleading-error-message-when-trying-to-build-without-python-suppo...
Mark Andrews [Mon, 27 May 2019 04:19:52 +0000 (00:19 -0400)] 
Merge branch '1056-misleading-error-message-when-trying-to-build-without-python-support-v9_11' into 'v9_11'

Resolve "Misleading error message when trying to build without Python support"

See merge request isc-projects/bind9!1966

7 years agofix configire error message to say --without-python
Mark Andrews [Mon, 27 May 2019 03:19:25 +0000 (13:19 +1000)] 
fix configire error message to say --without-python

(cherry picked from commit d70bf76d80704e92e5d0a26e415a763ec0755db9)

7 years agoMerge branch '1028-dig-trace-should-not-set-rd-0-norecurse-for-the-initial-root-hints...
Mark Andrews [Wed, 22 May 2019 06:32:25 +0000 (02:32 -0400)] 
Merge branch '1028-dig-trace-should-not-set-rd-0-norecurse-for-the-initial-root-hints-query-v9_11' into 'v9_11'

Resolve "dig +trace should not set RD=0 (+norecurse) for the initial root hints query"

See merge request isc-projects/bind9!1956

7 years agoRecurse to find the root server list with 'dig +trace'.
Mark Andrews [Tue, 14 May 2019 01:38:13 +0000 (11:38 +1000)] 
Recurse to find the root server list with 'dig +trace'.

(cherry picked from commit e65d4989a138c7a4c196a8137524453a7fedae20)

7 years agoMerge branch '1031-multiple-rate-limit-clauses-are-unsupported' into 'v9_11'
Evan Hunt [Mon, 20 May 2019 16:34:51 +0000 (12:34 -0400)] 
Merge branch '1031-multiple-rate-limit-clauses-are-unsupported' into 'v9_11'

Resolve "Multiple rate-limit clauses are unsupported"

See merge request isc-projects/bind9!1943

7 years agoremove reference to rate-limit { domain ...; }
Mark Andrews [Wed, 15 May 2019 02:06:01 +0000 (12:06 +1000)] 
remove reference to rate-limit { domain ...; }

7 years agoMerge branch 'each-fix-counter' into 'v9_11'
Evan Hunt [Sun, 19 May 2019 04:28:22 +0000 (00:28 -0400)] 
Merge branch 'each-fix-counter' into 'v9_11'

fix missing test counter

See merge request isc-projects/bind9!1951

7 years agofix missing test counter
Evan Hunt [Sun, 19 May 2019 04:14:33 +0000 (21:14 -0700)] 
fix missing test counter

7 years agoMerge branch 'each-document-bug-ids-v9_11' into 'v9_11'
Evan Hunt [Fri, 17 May 2019 06:45:29 +0000 (02:45 -0400)] 
Merge branch 'each-document-bug-ids-v9_11' into 'v9_11'

update README to explain gitlab numbers

See merge request isc-projects/bind9!1949

7 years agoupdate README to explain gitlab numbers
Evan Hunt [Thu, 16 May 2019 23:39:24 +0000 (16:39 -0700)] 
update README to explain gitlab numbers

(cherry picked from commit 45d76498d91439c79cf4617b2b7f7f82a14e749c)

7 years agoMerge branch '899-remove-unspec-v9_11' into 'v9_11'
Ondřej Surý [Mon, 13 May 2019 04:18:50 +0000 (00:18 -0400)] 
Merge branch '899-remove-unspec-v9_11' into 'v9_11'

Remove UNSPEC rrtype

See merge request isc-projects/bind9!1934

7 years agoRemove UNSPEC rrtype
Witold Kręcicki [Wed, 27 Feb 2019 09:04:37 +0000 (10:04 +0100)] 
Remove UNSPEC rrtype

(cherry picked from commit a8e2ca6f7d956324911766fd8e83ee6461b8056e)

7 years agoMerge branch 'prep-release' into v9_11 1927/head v9.11.7
Tinderbox User [Fri, 10 May 2019 05:03:58 +0000 (05:03 +0000)] 
Merge branch 'prep-release' into v9_11

7 years agoprep 9.11.7
Tinderbox User [Fri, 10 May 2019 04:56:43 +0000 (04:56 +0000)] 
prep 9.11.7

7 years agoMerge branch '997-make-ntas-work-with-validating-forwarders-v9_11' into 'v9_11'
Evan Hunt [Fri, 10 May 2019 04:18:30 +0000 (00:18 -0400)] 
Merge branch '997-make-ntas-work-with-validating-forwarders-v9_11' into 'v9_11'

Make NTAs work with validating forwarders

See merge request isc-projects/bind9!1925

7 years agoAdd CHANGES entry
Michał Kępień [Wed, 24 Apr 2019 09:17:15 +0000 (11:17 +0200)] 
Add CHANGES entry

5219. [bug] Negative trust anchors did not work with "forward only;"
to validating resolvers. [GL #997]

7 years agoMake NTAs work with validating forwarders
Michał Kępień [Wed, 24 Apr 2019 09:17:15 +0000 (11:17 +0200)] 
Make NTAs work with validating forwarders

If named is configured to perform DNSSEC validation and also forwards
all queries ("forward only;") to validating resolvers, negative trust
anchors do not work properly because the CD bit is not set in queries
sent to the forwarders.  As a result, instead of retrieving bogus DNSSEC
material and making validation decisions based on its configuration,
named is only receiving SERVFAIL responses to queries for bogus data.
Fix by ensuring the CD bit is always set in queries sent to forwarders
if the query name is covered by an NTA.

(cherry picked from commit 5e8048827015f4a04e61ae5f3c92758755fee6c3)

7 years agoMerge branch '958-improve-message-about-python-ply-v9_11' into 'v9_11'
Evan Hunt [Fri, 10 May 2019 03:25:05 +0000 (23:25 -0400)] 
Merge branch '958-improve-message-about-python-ply-v9_11' into 'v9_11'

Improve the error message about missing PLY Python package

See merge request isc-projects/bind9!1920

7 years agoImprove the error message about missing PLY Python package
Ondřej Surý [Fri, 10 May 2019 02:29:00 +0000 (09:29 +0700)] 
Improve the error message about missing PLY Python package

Previously, only a message about missing Python was printed, which was
misleading to many users.  The new message clearly states that Python
AND PLY is required and prints basic instructions how to install PLY
package.

(cherry picked from commit 55b48700dad6316e64ed2399b955e75881e63b28)

7 years agoMerge branch 'each-sync-v9_11' into 'v9_11'
Evan Hunt [Fri, 10 May 2019 01:55:35 +0000 (21:55 -0400)] 
Merge branch 'each-sync-v9_11' into 'v9_11'

sync CHANGES from 9.11.6-P1

See merge request isc-projects/bind9!1917

7 years agosync CHANGES from 9.11.6-P1
Evan Hunt [Fri, 5 Apr 2019 23:27:36 +0000 (16:27 -0700)] 
sync CHANGES from 9.11.6-P1

7 years agoMerge branch '834-fix-races-in-socket-code-v2' into 'v9_11'
Witold Krecicki [Thu, 9 May 2019 17:57:11 +0000 (13:57 -0400)] 
Merge branch '834-fix-races-in-socket-code-v2' into 'v9_11'

Fix race in unix socket code when closing a socket that has already sent a recv/send event.

See merge request isc-projects/bind9!1915

7 years agoFix race in unix socket code when closing a socket that has
Witold Kręcicki [Thu, 14 Feb 2019 16:35:25 +0000 (17:35 +0100)] 
Fix race in unix socket code when closing a socket that has
already sent a recv/send event.

When doing isc_socket_cancel we need to purge the event that might
already be in flight. If it has been launched already we need
to inform it that it has to bail.

7 years agoMerge branch 'ondrej/reproducible-build-v9_11' into 'v9_11'
Ondřej Surý [Thu, 9 May 2019 09:24:35 +0000 (05:24 -0400)] 
Merge branch 'ondrej/reproducible-build-v9_11' into 'v9_11'

Make lib/dns/gen.c compatible with reproducible builds.

See merge request isc-projects/bind9!1913

7 years agoMake lib/dns/gen.c compatible with reproducible builds.
Ondřej Surý [Fri, 29 Mar 2019 15:17:00 +0000 (16:17 +0100)] 
Make lib/dns/gen.c compatible with reproducible builds.

The gen.c will now use SOURCE_DATE_EPOCH[1] if found in environment
to make the build more reproducible build friendly.

1. https://reproducible-builds.org/specs/source-date-epoch/

(cherry picked from commit c8cb612d39d7e80da90b328e1fb253a2b17a56a1)

7 years agoMerge branch '960-add-edns-client-tag-and-edns-server-tag-v9_11' into 'v9_11'
Mark Andrews [Thu, 9 May 2019 08:39:06 +0000 (04:39 -0400)] 
Merge branch '960-add-edns-client-tag-and-edns-server-tag-v9_11' into 'v9_11'

Resolve "Add EDNS Client Tag and EDNS Server Tag"

See merge request isc-projects/bind9!1911