]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agoadd "delv +yaml" output format
Evan Hunt [Sat, 20 Jul 2019 21:24:41 +0000 (17:24 -0400)] 
add "delv +yaml" output format

6 years agoadd "mdig +yaml" output format
Evan Hunt [Sat, 20 Jul 2019 18:35:59 +0000 (14:35 -0400)] 
add "mdig +yaml" output format

6 years agoadd "dig +yaml" output format
Evan Hunt [Wed, 17 Jul 2019 06:44:20 +0000 (23:44 -0700)] 
add "dig +yaml" output format

6 years agoMerge branch '1031-multiple-rate-limit-clauses-are-unsupported-master' into 'master'
Evan Hunt [Wed, 21 Aug 2019 15:04:14 +0000 (11:04 -0400)] 
Merge branch '1031-multiple-rate-limit-clauses-are-unsupported-master' into 'master'

Resolve "Multiple rate-limit clauses are unsupported"

See merge request isc-projects/bind9!2262

6 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 ...; }

(cherry picked from commit 2275630bc968a6bfcf1434d676f6ea1a8ff7f30d)

6 years agoMerge branch 'prep-release' v9.15.3
Tinderbox User [Mon, 12 Aug 2019 14:08:48 +0000 (14:08 +0000)] 
Merge branch 'prep-release'

6 years agoprep 9.15.3
Tinderbox User [Mon, 12 Aug 2019 14:08:12 +0000 (14:08 +0000)] 
prep 9.15.3

6 years agoprep 9.15.3
Tinderbox User [Mon, 12 Aug 2019 13:46:16 +0000 (13:46 +0000)] 
prep 9.15.3

6 years agoMerge branch '1074-matthijs-underflow-cachedb-statistics' into 'master'
Matthijs Mekking [Mon, 12 Aug 2019 08:39:30 +0000 (04:39 -0400)] 
Merge branch '1074-matthijs-underflow-cachedb-statistics' into 'master'

Resolve "underflow in stats channel stale cached RRSIG gauge [ISC-support #14769]"

Closes #1074 and #602

See merge request isc-projects/bind9!2237

6 years agoSimplify do_stats logic in rbtdb.c
Matthijs Mekking [Mon, 12 Aug 2019 07:57:16 +0000 (09:57 +0200)] 
Simplify do_stats logic in rbtdb.c

6 years agoimprove ARM text about cache DB statistics
Evan Hunt [Fri, 9 Aug 2019 21:36:43 +0000 (14:36 -0700)] 
improve ARM text about cache DB statistics

6 years agoAdd serve-stale test for ancient RRsets counters
Matthijs Mekking [Fri, 9 Aug 2019 13:46:59 +0000 (15:46 +0200)] 
Add serve-stale test for ancient RRsets counters

6 years agoMove dnssec_keyid_max out rrsettype counters enum
Matthijs Mekking [Wed, 7 Aug 2019 13:11:57 +0000 (15:11 +0200)] 
Move dnssec_keyid_max out rrsettype counters enum

6 years agoUpdate CHANGES, notes
Matthijs Mekking [Wed, 7 Aug 2019 11:33:55 +0000 (13:33 +0200)] 
Update CHANGES, notes

6 years agoMake rbtdb maintain stale counters
Matthijs Mekking [Wed, 7 Aug 2019 11:27:59 +0000 (13:27 +0200)] 
Make rbtdb maintain stale counters

When updating the statistics for RRset types, if a header is marked
stale or ancient, the appropriate statistic counters are decremented,
then incremented.

Also fix some out of date comments.

6 years agoNo longer have stale tracking in stats module
Matthijs Mekking [Wed, 7 Aug 2019 11:24:25 +0000 (13:24 +0200)] 
No longer have stale tracking in stats module

Having the decrement/increment logic in stats makes the code hard
to follow. Remove it here and adjust the unit test. The caller
will be responsible for maintaining the correct increments and
decrements for statistics counters (in the following commit).

6 years agoPrint out ancient type stats with '~' prefix.
Matthijs Mekking [Mon, 5 Aug 2019 14:34:28 +0000 (16:34 +0200)] 
Print out ancient type stats with '~' prefix.

The stale RR types are now printed with '#'.  This used to be the
prefix for RR types that were marked ancient, but commit
df50751585b64f72d93ad665abf0f485c8941a3b changed the meaning.  It is
probably better to keep '#' for stale RR types and introduce a new
prefix for reintroducing ancient type stat counters.

6 years agoMerge branch '1110-clarify-relationship-between-acls-and-rpz' into 'master'
Michał Kępień [Mon, 12 Aug 2019 07:50:18 +0000 (03:50 -0400)] 
Merge branch '1110-clarify-relationship-between-acls-and-rpz' into 'master'

Clarify relationship between ACLs and RPZ

Closes #1110

See merge request isc-projects/bind9!2255

6 years agoClarify relationship between ACLs and RPZ
Michał Kępień [Mon, 12 Aug 2019 07:46:12 +0000 (09:46 +0200)] 
Clarify relationship between ACLs and RPZ

In the ARM section about RPZ, add text explicitly stating that ACLs take
precedence over RPZ to prevent users from expecting RPZ actions to be
applied to queries coming from clients which are not permitted access to
the resolver by ACLs.

6 years agoMerge branch '7-remove-dlv-validation' into 'master'
Evan Hunt [Fri, 9 Aug 2019 16:40:52 +0000 (12:40 -0400)] 
Merge branch '7-remove-dlv-validation' into 'master'

Remove DLV validation code

Closes #7

See merge request isc-projects/bind9!2233

6 years agoCHANGES, release note
Evan Hunt [Tue, 6 Aug 2019 16:44:17 +0000 (09:44 -0700)] 
CHANGES, release note

6 years agoremove DLV from ARM
Matthijs Mekking [Thu, 8 Aug 2019 13:23:18 +0000 (15:23 +0200)] 
remove DLV from ARM

6 years agoremove remaining DLV-related configuration checks
Evan Hunt [Wed, 7 Aug 2019 18:53:13 +0000 (11:53 -0700)] 
remove remaining DLV-related configuration checks

6 years agoupdate docbook grammar, removing dnssec-looksaide
Evan Hunt [Wed, 7 Aug 2019 17:31:19 +0000 (10:31 -0700)] 
update docbook grammar, removing dnssec-looksaide

- this required modification to the code that generates grammar text for
  the documentation, because the "dnssec-lookaside" option spanned more
  than one line in doc/misc/options, so grepping out only the lines
  marked "// obsolete" didn't remove the whole option.  this commit adds
  an option to cfg_test to print named.conf clauses only if they don't
  have the obsolete, ancient, test-only, or not-yet-implemented flags
  set.

6 years agomark 'dnssec-lookaside' obsolete in parser
Evan Hunt [Wed, 7 Aug 2019 16:13:33 +0000 (09:13 -0700)] 
mark 'dnssec-lookaside' obsolete in parser

6 years agoremove DLV system tests
Evan Hunt [Tue, 6 Aug 2019 16:28:14 +0000 (09:28 -0700)] 
remove DLV system tests

6 years agoremove DLV support from dnssec-signzone
Evan Hunt [Wed, 7 Aug 2019 19:37:09 +0000 (12:37 -0700)] 
remove DLV support from dnssec-signzone

6 years agoremove DLV support from dnssec-dsfromkey
Evan Hunt [Wed, 7 Aug 2019 19:27:03 +0000 (12:27 -0700)] 
remove DLV support from dnssec-dsfromkey

6 years agoremove DLV support from dnssec-checkds
Evan Hunt [Wed, 7 Aug 2019 19:19:19 +0000 (12:19 -0700)] 
remove DLV support from dnssec-checkds

6 years agoremove DLV from dns_client API and lib/samples
Evan Hunt [Wed, 7 Aug 2019 18:51:13 +0000 (11:51 -0700)] 
remove DLV from dns_client API and lib/samples

6 years agoremove DLV from delv
Evan Hunt [Tue, 6 Aug 2019 16:34:27 +0000 (09:34 -0700)] 
remove DLV from delv

6 years agoremove DLV-related library code
Evan Hunt [Wed, 7 Aug 2019 18:53:11 +0000 (11:53 -0700)] 
remove DLV-related library code

6 years agoremove DLV from validator
Evan Hunt [Tue, 6 Aug 2019 16:28:05 +0000 (09:28 -0700)] 
remove DLV from validator

6 years agoMerge branch '1182-add-older-autoconf-pkg-config-compat-macros' into 'master'
Ondřej Surý [Thu, 8 Aug 2019 12:46:52 +0000 (08:46 -0400)] 
Merge branch '1182-add-older-autoconf-pkg-config-compat-macros' into 'master'

Add PKG_CHECK_VAR and AS_VAR_COPY compat macros (Courtesy of ycflash)

Closes #1182

See merge request isc-projects/bind9!2246

6 years agoAdd PKG_CHECK_VAR and AS_VAR_COPY compat macros (Courtesy of ycflash)
Ondřej Surý [Thu, 8 Aug 2019 12:11:35 +0000 (14:11 +0200)] 
Add PKG_CHECK_VAR and AS_VAR_COPY compat macros (Courtesy of ycflash)

6 years agoMerge branch 'michal/implement-a-convenience-function-for-rndc-dumpdb' into 'master'
Michał Kępień [Thu, 8 Aug 2019 12:42:49 +0000 (08:42 -0400)] 
Merge branch 'michal/implement-a-convenience-function-for-rndc-dumpdb' into 'master'

Implement a convenience function for "rndc dumpdb"

See merge request isc-projects/bind9!1967

6 years agoUse rndc_dumpdb() in the "sfcache" system test
Michał Kępień [Thu, 8 Aug 2019 12:27:55 +0000 (14:27 +0200)] 
Use rndc_dumpdb() in the "sfcache" system test

6 years agoUse rndc_dumpdb() in the "serve-stale" system test
Michał Kępień [Thu, 8 Aug 2019 12:27:55 +0000 (14:27 +0200)] 
Use rndc_dumpdb() in the "serve-stale" system test

6 years agoUse rndc_dumpdb() in the "rndc" system test
Michał Kępień [Thu, 8 Aug 2019 12:27:55 +0000 (14:27 +0200)] 
Use rndc_dumpdb() in the "rndc" system test

6 years agoUse rndc_dumpdb() in the "dnssec" system test
Michał Kępień [Thu, 8 Aug 2019 12:27:55 +0000 (14:27 +0200)] 
Use rndc_dumpdb() in the "dnssec" system test

6 years agoUse rndc_dumpdb() in the "cookie" system test
Michał Kępień [Thu, 8 Aug 2019 12:27:55 +0000 (14:27 +0200)] 
Use rndc_dumpdb() in the "cookie" system test

6 years agoUse rndc_dumpdb() in the "cacheclean" system test
Michał Kępień [Thu, 8 Aug 2019 12:27:55 +0000 (14:27 +0200)] 
Use rndc_dumpdb() in the "cacheclean" system test

6 years agoImplement a convenience function for "rndc dumpdb"
Michał Kępień [Thu, 8 Aug 2019 12:27:55 +0000 (14:27 +0200)] 
Implement a convenience function for "rndc dumpdb"

Add a helper shell function, rndc_dumpdb(), which provides a convenient
way to call "rndc dumpdb" for a given server with optional additional
arguments.  Since database dumping is an asynchronous process, the
function waits until the dump is complete before returning, which
prevents false positives in system tests caused by inspecting the dump
before its preparation is finished.  The function also renames the dump
file before returning so that it does not get overwritten by subsequent
calls; this retains forensic data in case of an unexpected test failure.

6 years agoMerge branch 'sparc-pause' into 'master'
Ondřej Surý [Thu, 8 Aug 2019 11:31:29 +0000 (07:31 -0400)] 
Merge branch 'sparc-pause' into 'master'

configure.ac: autodetect 'pause' instruction presence on sparc

See merge request isc-projects/bind9!2243

6 years agoconfigure.ac: autodetect 'pause' instruction presence on sparc
Sergei Trofimovich [Thu, 8 Aug 2019 07:33:10 +0000 (08:33 +0100)] 
configure.ac: autodetect 'pause' instruction presence on sparc

The change fixes the following build failure on sparc T3 and older CPUs:

```
sparc-unknown-linux-gnu-gcc ... -O2 -mcpu=niagara2 ... -c rwlock.c
{standard input}: Assembler messages:
{standard input}:398: Error: Architecture mismatch on "pause ".
{standard input}:398: (Requires v9e|v9v|v9m|m8; requested architecture is v9b.)
make[1]: *** [Makefile:280: rwlock.o] Error 1
```

`pause` insutruction exists only on `-mcpu=niagara4` (`T4`) and upper.

The change adds `pause` configure-time autodetection and uses it if available.
config.h.in got new `HAVE_SPARC_PAUSE` knob. Fallback is a fall-through no-op.

Build-tested on:

- sparc-unknown-linux-gnu-gcc (no `pause`, build succeeds)
- sparc-unknown-linux-gnu-gcc -mcpu=niagara4 (`pause`, build succeeds)

Reported-by: Rolf Eike Beer
Bug: https://bugs.gentoo.org/691708
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
6 years agoMerge branch 'each-mdig-multi-norrcomments' into 'master'
Evan Hunt [Thu, 8 Aug 2019 03:15:13 +0000 (23:15 -0400)] 
Merge branch 'each-mdig-multi-norrcomments' into 'master'

minor bugfix in mdig: when using +multi, +norrcomments was ignored

See merge request isc-projects/bind9!2208

6 years agoadded "mdig +multi +norrcomment" test; also fixed the flawed dig test
Evan Hunt [Tue, 6 Aug 2019 04:24:06 +0000 (21:24 -0700)] 
added "mdig +multi +norrcomment" test; also fixed the flawed dig test

6 years agominor bugfix in mdig: when using +multi, +norrcomments was ignored
Evan Hunt [Tue, 30 Jul 2019 19:28:20 +0000 (12:28 -0700)] 
minor bugfix in mdig: when using +multi, +norrcomments was ignored

6 years agoMerge branch '1148-deadlock-hangs-named-v9_11-v9_14-master' into 'master'
Ondřej Surý [Wed, 7 Aug 2019 11:02:16 +0000 (07:02 -0400)] 
Merge branch '1148-deadlock-hangs-named-v9_11-v9_14-master' into 'master'

Resolve "deadlock hangs named"

Closes #1148

See merge request isc-projects/bind9!2236

6 years agoHave the dns_client hold a .references until all external references are removed
Ondřej Surý [Tue, 6 Aug 2019 15:35:20 +0000 (17:35 +0200)] 
Have the dns_client hold a .references until all external references are removed
so that cleanup can all be done in dns_client_destroy().

(cherry picked from commit e80c4c3431504a462ce03bffbb9229b9b34395d1)
(cherry picked from commit ebc48cda26ff3935406f48bb745561cc00fed046)

6 years agoHave the view hold a weakref until all external references are removed
Mark Andrews [Tue, 6 Aug 2019 02:40:04 +0000 (12:40 +1000)] 
Have the view hold a weakref until all external references are removed
so that cleanup can all be done in dns_view_weakattach().

(cherry picked from commit be8af3afb711a04ac140b1debce3b950922d714f)
(cherry picked from commit e3946327035832ec03c064410e5c6881841f8f6f)

6 years agolib/dns/resolver.c: Convert (dns_view_t *)->weakrefs to isc_refcount_t
Ondřej Surý [Thu, 1 Aug 2019 09:42:58 +0000 (11:42 +0200)] 
lib/dns/resolver.c: Convert (dns_view_t *)->weakrefs to isc_refcount_t

There's a deadlock in BIND 9 code where (dns_view_t){ .lock } and
(dns_resolver_t){ .buckets[i].lock } gets locked in different order.  When
view->weakrefs gets converted to a reference counting we can reduce the locking
in dns_view_weakdetach only to cases where it's the last instance of the
dns_view_t object.

(cherry picked from commit a7c9a52c89146490a0e797df2119026a268f294c)
(cherry picked from commit 232140edae6b80f8344db234cda28f8456269a6e)

6 years agoMerge branch 'ondrej/flycheck-configuration-update' into 'master'
Ondřej Surý [Wed, 7 Aug 2019 08:13:18 +0000 (04:13 -0400)] 
Merge branch 'ondrej/flycheck-configuration-update' into 'master'

Update the flycheck configuration for gcc and cppcheck

See merge request isc-projects/bind9!2234

6 years agoUpdate the flycheck configuration for gcc and cppcheck
Ondřej Surý [Wed, 7 Aug 2019 08:12:25 +0000 (10:12 +0200)] 
Update the flycheck configuration for gcc and cppcheck

6 years agoMerge branch '1170-dig-comments' into 'master'
Evan Hunt [Tue, 6 Aug 2019 04:55:46 +0000 (00:55 -0400)] 
Merge branch '1170-dig-comments' into 'master'

Resolve "dig +nocomment still comments"

Closes #1170

See merge request isc-projects/bind9!2207

6 years agoclarify descriptions of comment-related options in dig usage and man page
Evan Hunt [Mon, 29 Jul 2019 23:32:00 +0000 (16:32 -0700)] 
clarify descriptions of comment-related options in dig usage and man page

6 years agoalways check 'printcmd' before printing cmdline message
Evan Hunt [Mon, 29 Jul 2019 23:06:59 +0000 (16:06 -0700)] 
always check 'printcmd' before printing cmdline message

6 years agoMerge branch '964-use-referral-ds-record-when-validating' into 'master'
Mark Andrews [Fri, 2 Aug 2019 05:31:16 +0000 (01:31 -0400)] 
Merge branch '964-use-referral-ds-record-when-validating' into 'master'

Resolve "Use referral DS record when validating"

Closes #964

See merge request isc-projects/bind9!1755

6 years agoadd CHANGES
Mark Andrews [Wed, 31 Jul 2019 07:03:37 +0000 (17:03 +1000)] 
add CHANGES

6 years agocheck that example/DS is not fetched when validating a.example
Mark Andrews [Mon, 3 Jun 2019 01:44:18 +0000 (11:44 +1000)] 
check that example/DS is not fetched when validating a.example

6 years agoStore the DS and RRSIG(DS) with trust dns_trust_pending_answer
Mark Andrews [Wed, 27 Mar 2019 13:48:03 +0000 (00:48 +1100)] 
Store the DS and RRSIG(DS) with trust dns_trust_pending_answer
so that the validator can validate the records as part of validating
the current request.

6 years agoMerge branch '1175-a-race-in-ht-c-can-cause-require-failures' into 'master'
Mark Andrews [Thu, 1 Aug 2019 06:04:32 +0000 (02:04 -0400)] 
Merge branch '1175-a-race-in-ht-c-can-cause-require-failures' into 'master'

Resolve "a race in ht.c can cause REQUIRE failures"

Closes #1175

See merge request isc-projects/bind9!2225

6 years agoadd CHANGES
Mark Andrews [Thu, 1 Aug 2019 06:03:55 +0000 (16:03 +1000)] 
add CHANGES

6 years agoremove invalid comment
Mark Andrews [Thu, 1 Aug 2019 01:32:28 +0000 (11:32 +1000)] 
remove invalid comment

6 years agokeep rpzs around until everything referencing it has gone
Mark Andrews [Thu, 1 Aug 2019 01:15:05 +0000 (11:15 +1000)] 
keep rpzs around until everything referencing it has gone

6 years agomaintain a reference to 'rpz' when calling rpz.c:update_quantum
Mark Andrews [Wed, 31 Jul 2019 23:30:49 +0000 (09:30 +1000)] 
maintain a reference to 'rpz' when calling rpz.c:update_quantum

6 years agoMerge branch 'michal/do-not-use-target-specific-variables-in-makefiles' into 'master'
Ondřej Surý [Wed, 31 Jul 2019 14:48:46 +0000 (10:48 -0400)] 
Merge branch 'michal/do-not-use-target-specific-variables-in-makefiles' into 'master'

Do not use target-specific variables in Makefiles and fix LD_WRAP for non-libtool builds

Closes #1174

See merge request isc-projects/bind9!2224

6 years agoFix the ${WRAP} -> $${WRAP} to allow static non-libtool linking again
Ondřej Surý [Wed, 31 Jul 2019 14:09:43 +0000 (16:09 +0200)] 
Fix the ${WRAP} -> $${WRAP} to allow static non-libtool linking again

6 years agoRevert the target specific variable to fix building with BSD make
Ondřej Surý [Wed, 31 Jul 2019 14:05:02 +0000 (16:05 +0200)] 
Revert the target specific variable to fix building with BSD make

6 years agoMerge branch '4-remove-etags' into 'master'
Ondřej Surý [Wed, 31 Jul 2019 13:43:42 +0000 (09:43 -0400)] 
Merge branch '4-remove-etags' into 'master'

Remove the autoconf checks for etags/ctags and `make tags` target

Closes #4

See merge request isc-projects/bind9!2223

6 years agoRemove the autoconf checks for etags/ctags and `make tags` target
Ondřej Surý [Wed, 31 Jul 2019 13:27:27 +0000 (15:27 +0200)] 
Remove the autoconf checks for etags/ctags and `make tags` target

There's no strong reason to keep `make tags` in our build system.  The previous
functionality of `make tags` could be simply retained by aliasing variant of:

    etags $(git ls-files '*.c' '*.h')

which would be universal for all C-code projects.

6 years agoMerge branch '4-configure.ac-use-pkg-config-for-zlib' into 'master'
Ondřej Surý [Wed, 31 Jul 2019 13:15:12 +0000 (09:15 -0400)] 
Merge branch '4-configure.ac-use-pkg-config-for-zlib' into 'master'

Convert the configure.ac rules for zlib library to use pkg-config

Closes #4

See merge request isc-projects/bind9!2222

6 years agoConvert the configure.ac rules for zlib library to use pkg-config
Ondřej Surý [Wed, 31 Jul 2019 11:50:15 +0000 (13:50 +0200)] 
Convert the configure.ac rules for zlib library to use pkg-config

6 years agoMerge branch '1159-bits-65-72-of-the-dns64-prefix-are-supposed-to-be-zero' into ...
Mark Andrews [Wed, 31 Jul 2019 12:11:45 +0000 (08:11 -0400)] 
Merge branch '1159-bits-65-72-of-the-dns64-prefix-are-supposed-to-be-zero' into 'master'

Resolve "Bits 64..71 of the dns64 prefix are supposed to be zero"

Closes #1159

See merge request isc-projects/bind9!2193

6 years agoadd CHANGES
Mark Andrews [Wed, 31 Jul 2019 07:08:55 +0000 (17:08 +1000)] 
add CHANGES

6 years agocheck that bits 64..71 in a dns64 prefix are zero
Mark Andrews [Tue, 23 Jul 2019 18:53:13 +0000 (04:53 +1000)] 
check that bits 64..71 in a dns64 prefix are zero

6 years agoMerge branch 'ondrej/cleanup-isc_thread-api' into 'master'
Ondřej Surý [Wed, 31 Jul 2019 10:09:45 +0000 (06:09 -0400)] 
Merge branch 'ondrej/cleanup-isc_thread-api' into 'master'

Cleanup the isc_thread API

See merge request isc-projects/bind9!2159

6 years agoMake isc_thread_join() assert internally on failure
Ondřej Surý [Thu, 18 Jul 2019 15:47:40 +0000 (17:47 +0200)] 
Make isc_thread_join() assert internally on failure

Previously isc_thread_join() would return ISC_R_UNEXPECTED on a failure to
create new thread.  All such occurences were caught and wrapped into assert
function at higher level.  The function was simplified to assert directly in the
isc_thread_join() function and all caller level assertions were removed.

6 years agoMake isc_thread_create() assert internally on failure
Ondřej Surý [Thu, 18 Jul 2019 15:24:05 +0000 (17:24 +0200)] 
Make isc_thread_create() assert internally on failure

Previously isc_thread_create() would return ISC_R_UNEXPECTED on a failure to
create new thread.  All such occurences were caught and wrapped into assert
function at higher level.  The function was simplified to assert directly in the
isc_thread_create() function and all caller level assertions were removed.

6 years agoMerge branch 'michal/wildcard-system-test-make-root-hints-consistent-with-authoritati...
Michał Kępień [Wed, 31 Jul 2019 09:43:17 +0000 (05:43 -0400)] 
Merge branch 'michal/wildcard-system-test-make-root-hints-consistent-with-authoritative-data' into 'master'

"wildcard" system test: make root hints consistent with authoritative data

See merge request isc-projects/bind9!2190

6 years agoMake root hints consistent with authoritative data
Michał Kępień [Wed, 31 Jul 2019 09:06:34 +0000 (11:06 +0200)] 
Make root hints consistent with authoritative data

Multiple resolvers in the "wildcard" system test are configured with a
single root hint: "ns.root-servers.nil", pointing to 10.53.0.1, which is
inconsistent with authoritative data served by ns1.  This may cause
intermittent resolution failures, triggering false positives for the
"wildcard" system test.  Prevent this from happening by making ns2, ns3,
and ns5 use root hints corresponding to the contents of ns1/root.db.in.

6 years agoMerge branch '1123-remove-isc-config.sh' into 'master'
Ondřej Surý [Wed, 31 Jul 2019 09:04:00 +0000 (05:04 -0400)] 
Merge branch '1123-remove-isc-config.sh' into 'master'

The BIND 9 libraries are now internal-only, so remove isc-config.sh

Closes #1123

See merge request isc-projects/bind9!2115

6 years agoThe BIND 9 libraries are now internal-only, so remove isc-config.sh
Ondřej Surý [Wed, 26 Jun 2019 08:21:49 +0000 (10:21 +0200)] 
The BIND 9 libraries are now internal-only, so remove isc-config.sh

The isc-config.sh script was introduced before pkg-config as is a purely
historical thing.  There are two reason for removal of isc-config.sh scripts:

a) The BIND 9 libraries are now meant to be used only from BIND 9, so there's no
   reason to provide convenience script to link with the libraries.

b) Even if that was not the case, we should and would replace the isc-config.sh
   with respective pkg-config (.pc) file for every library.

6 years agoMerge branch '1160-properly-use-isc_mem_putanddetach' into 'master'
Ondřej Surý [Wed, 31 Jul 2019 08:39:40 +0000 (04:39 -0400)] 
Merge branch '1160-properly-use-isc_mem_putanddetach' into 'master'

Resolve "Replace the isc_mem_put(mctx, ...)+isc_mem_detach(&mctx) usage with isc_mem_putanddetach(&mctx)"

Closes #1160

See merge request isc-projects/bind9!2195

6 years agoWe need to wrap isc__mem_putanddetach in tkey_test.c unit too now
Ondřej Surý [Thu, 25 Jul 2019 19:36:35 +0000 (21:36 +0200)] 
We need to wrap isc__mem_putanddetach in tkey_test.c unit too now

6 years agoReplace usage of isc_mem_put+isc_mem_detach with isc_mem_putanddetach
Ondřej Surý [Tue, 23 Jul 2019 21:16:57 +0000 (17:16 -0400)] 
Replace usage of isc_mem_put+isc_mem_detach with isc_mem_putanddetach

Using isc_mem_put(mctx, ...) + isc_mem_detach(mctx) required juggling with the
local variables when mctx was part of the freed object. The isc_mem_putanddetach
function can handle this case internally, but it wasn't used everywhere.  This
commit apply the semantic patching plus bit of manual work to replace all such
occurrences with proper usage of isc_mem_putanddetach().

6 years agoAdd spatch to replace isc_mem_put+isc_mem_detach with isc_mem_putanddetach
Ondřej Surý [Tue, 23 Jul 2019 21:28:02 +0000 (17:28 -0400)] 
Add spatch to replace isc_mem_put+isc_mem_detach with isc_mem_putanddetach

6 years agoMerge branch '1151-inconsistent-usage-of-stdout-vs-stderr-in-signing-tools' into...
Ondřej Surý [Wed, 31 Jul 2019 08:24:50 +0000 (04:24 -0400)] 
Merge branch '1151-inconsistent-usage-of-stdout-vs-stderr-in-signing-tools' into 'master'

Resolve "Inconsistent usage of stdout vs stderr in signing tools"

Closes #1151

See merge request isc-projects/bind9!2165

6 years agoAdd CHANGES and release note
Ondřej Surý [Sun, 21 Jul 2019 12:18:56 +0000 (08:18 -0400)] 
Add CHANGES and release note

6 years agoadd -q to getopt flags, and use newlines consistently with report()
Evan Hunt [Tue, 30 Jul 2019 15:43:30 +0000 (08:43 -0700)] 
add -q to getopt flags, and use newlines consistently with report()

6 years agodocument `-q` option in dnssec-signzone and dnssec-verify man pages
Evan Hunt [Tue, 30 Jul 2019 15:43:12 +0000 (08:43 -0700)] 
document `-q` option in dnssec-signzone and dnssec-verify man pages

6 years agoAdd -q (quiet) option to dnssec-signzone and dnssec-verify tool
Ondřej Surý [Mon, 22 Jul 2019 14:33:17 +0000 (10:33 -0400)] 
Add -q (quiet) option to dnssec-signzone and dnssec-verify tool

With the move of the normal output to stdout, we need a way how to silence the
extra output, so the signed file name can be captured in a simple way.  This
commit adds `-q` command line option that will silence all the normal output
that get's printed from both tools.

6 years agoRemove 2>&1 from the dnssec-signzone invocation in tests
Ondřej Surý [Sat, 20 Jul 2019 22:06:16 +0000 (18:06 -0400)] 
Remove 2>&1 from the dnssec-signzone invocation in tests

6 years agoChange the zoneverify.c to print the information to user supplied function
Ondřej Surý [Sun, 21 Jul 2019 12:07:20 +0000 (08:07 -0400)] 
Change the zoneverify.c to print the information to user supplied function

The lib/dns/zoneverify.c output was hardwired to stderr, which was inconsistent
with lib/dns/dnssec.c.  This commit changes zoneverify.c to print the normal run
information to caller supplied function - same model as in the lib/dns/dnssec.c.

6 years agoUse stdout to print information about signing
Ondřej Surý [Sun, 21 Jul 2019 11:36:13 +0000 (07:36 -0400)] 
Use stdout to print information about signing

Previously, the default output from the libdns library went to stderr by
default.  This was inconsistent with the rest of the output.  This commit
changes the default logging to go to stdout, with notable exception - when the
output of the signing process goes to stdout, the messages are printed to the
stderr.  This is consistent with other functions that output information about
the signing process - e.g. print_stats().

6 years agoMerge branch 'michal/staticstub-system-test-make-root-hints-consistent-with-authorita...
Michał Kępień [Wed, 31 Jul 2019 07:42:41 +0000 (03:42 -0400)] 
Merge branch 'michal/staticstub-system-test-make-root-hints-consistent-with-authoritative-data' into 'master'

"staticstub" system test: make root hints consistent with authoritative data

See merge request isc-projects/bind9!2161

6 years agoMake root hints consistent with authoritative data
Michał Kępień [Wed, 31 Jul 2019 07:18:02 +0000 (09:18 +0200)] 
Make root hints consistent with authoritative data

The ns2 named instance in the "staticstub" system test is configured
with a single root hint commonly used in BIND system tests
(a.root-servers.nil with an address of 10.53.0.1), which is inconsistent
with authoritative data served by ns1.  This may cause intermittent
resolution failures, triggering false positives for the "staticstub"
system test.  Prevent this from happening by making ns1 serve data
corresponding to the contents of bin/tests/system/common/root.hint.

6 years agoMerge branch 'michal/update-gitlab-ci-to-fedora-30' into 'master'
Michał Kępień [Wed, 31 Jul 2019 07:14:25 +0000 (03:14 -0400)] 
Merge branch 'michal/update-gitlab-ci-to-fedora-30' into 'master'

Update GitLab CI to Fedora 30

See merge request isc-projects/bind9!2196

6 years agoUpdate GitLab CI to Fedora 30
Michał Kępień [Wed, 31 Jul 2019 06:47:02 +0000 (08:47 +0200)] 
Update GitLab CI to Fedora 30

Since Fedora 30 is the current Fedora release, replace Fedora 29 GitLab
CI jobs with their up-to-date counterparts.

6 years agoMerge branch '1152-dig-expandaaaa-doesn-t-work-with-short' into 'master'
Mark Andrews [Wed, 31 Jul 2019 01:40:49 +0000 (21:40 -0400)] 
Merge branch '1152-dig-expandaaaa-doesn-t-work-with-short' into 'master'

Resolve "dig +expandaaaa doesn't work with +short"

Closes #1152

See merge request isc-projects/bind9!2169