]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agoisc/stats: use isc_refcount_t
Witold Kręcicki [Thu, 16 May 2019 17:27:01 +0000 (19:27 +0200)] 
isc/stats: use isc_refcount_t

6 years agoisc/timer: use isc_refcount_t
Witold Kręcicki [Thu, 16 May 2019 16:53:33 +0000 (18:53 +0200)] 
isc/timer: use isc_refcount_t

6 years agolib/isc/task: use isc_refcount_t
Witold Kręcicki [Thu, 16 May 2019 16:51:39 +0000 (18:51 +0200)] 
lib/isc/task: use isc_refcount_t

6 years agodns/zt.c: use isc_refcount_t for reference counting
Witold Kręcicki [Thu, 16 May 2019 16:46:29 +0000 (18:46 +0200)] 
dns/zt.c: use isc_refcount_t for reference counting

6 years agointerfacemgr: use isc_refcount_t for reference counting
Witold Kręcicki [Thu, 16 May 2019 16:43:06 +0000 (18:43 +0200)] 
interfacemgr: use isc_refcount_t for reference counting

6 years agoMake portentry->refs an isc_refcount_t
Witold Kręcicki [Thu, 16 May 2019 16:28:53 +0000 (18:28 +0200)] 
Make portentry->refs an isc_refcount_t

6 years agoMerge branch 'ondrej/missing-ax_restore_flags-geoip2' into 'master'
Ondřej Surý [Tue, 9 Jul 2019 12:20:45 +0000 (08:20 -0400)] 
Merge branch 'ondrej/missing-ax_restore_flags-geoip2' into 'master'

Add missing AX_RESTORE_FLAGS([geoip2]) to configure.ac

See merge request isc-projects/bind9!2140

6 years agoAdd missing AX_RESTORE_FLAGS([geoip2]) to configure.ac
Ondřej Surý [Tue, 9 Jul 2019 11:35:39 +0000 (13:35 +0200)] 
Add missing AX_RESTORE_FLAGS([geoip2]) to configure.ac

6 years agoMerge branch 'ondrej-disable-freebsd-again' into 'master'
Ondřej Surý [Mon, 8 Jul 2019 13:36:28 +0000 (09:36 -0400)] 
Merge branch 'ondrej-disable-freebsd-again' into 'master'

Disable FreeBSD Runner in the CI

See merge request isc-projects/bind9!2138

6 years agoDisable FreeBSD Runner in the CI; it's broken again.
Ondřej Surý [Mon, 8 Jul 2019 13:28:28 +0000 (15:28 +0200)] 
Disable FreeBSD Runner in the CI; it's broken again.

6 years agoMerge branch '1112-remove-legacy-geoip' into 'master'
Evan Hunt [Thu, 4 Jul 2019 16:38:26 +0000 (12:38 -0400)] 
Merge branch '1112-remove-legacy-geoip' into 'master'

Resolve "Remove legacy GeoIP support in 9.15 after GeoIP2 is merged"

Closes #1112

See merge request isc-projects/bind9!2102

6 years agoGet rid of DNS_GEOIP_DATABASE_INIT explicit initializer for geoip dbs
Ondřej Surý [Thu, 4 Jul 2019 09:17:16 +0000 (11:17 +0200)] 
Get rid of DNS_GEOIP_DATABASE_INIT explicit initializer for geoip dbs

Instead of the explicit struct initializer with all member, rely on the fact
that static variables are explicitly initialized to 0 if not explicitly
initialized.

6 years agoremove --with-geoip and change --without-geoip2 to --disable-geoip in CI
Evan Hunt [Tue, 2 Jul 2019 23:33:00 +0000 (16:33 -0700)] 
remove --with-geoip and change --without-geoip2 to --disable-geoip in CI

6 years agoconvert geoip to geoip2 in win32utils/Configure
Thomas Jach [Tue, 2 Jul 2019 23:27:42 +0000 (16:27 -0700)] 
convert geoip to geoip2 in win32utils/Configure

6 years agouse configure --enable-geoip to turn on GeoIP2
Evan Hunt [Fri, 28 Jun 2019 04:19:30 +0000 (21:19 -0700)] 
use configure --enable-geoip to turn on GeoIP2

- instead of --with-geoip2, use --enable-geoip to turn on the GeoIP
  feature
- --with-maxminddb can be used to set the prefix for maxminddb

6 years agoadd CHANGES note; remove references to legacy GeoIP from documentation
Evan Hunt [Fri, 28 Jun 2019 04:11:45 +0000 (21:11 -0700)] 
add CHANGES note; remove references to legacy GeoIP from documentation

6 years agoremove all support for legacy GeoIP
Evan Hunt [Fri, 28 Jun 2019 04:08:20 +0000 (21:08 -0700)] 
remove all support for legacy GeoIP

6 years agoMerge branch '7-matthijs-deprecate-dnssec-lookaside' into 'master'
Matthijs Mekking [Thu, 4 Jul 2019 12:51:32 +0000 (08:51 -0400)] 
Merge branch '7-matthijs-deprecate-dnssec-lookaside' into 'master'

Deprecate dnssec-lookaside option

Closes #7

See merge request isc-projects/bind9!2104

6 years agoremove spurious commas from docbook
Evan Hunt [Tue, 2 Jul 2019 19:59:42 +0000 (12:59 -0700)] 
remove spurious commas from docbook

6 years agoDeprecate dnssec-lookaside option
Matthijs Mekking [Fri, 28 Jun 2019 09:52:08 +0000 (11:52 +0200)] 
Deprecate dnssec-lookaside option

Add the CFG_CLAUSEFLAG_DEPRECATED flag to the option so that people are
discouraged from using DLV.

6 years agoMerge branch 'ondrej/kyua.result-location' into 'master'
Ondřej Surý [Wed, 3 Jul 2019 17:17:25 +0000 (13:17 -0400)] 
Merge branch 'ondrej/kyua.result-location' into 'master'

Use $KYUA_RESULT in kyua report-html invocation for unified file location

See merge request isc-projects/bind9!2127

6 years agoSet number of parallel jobs in .gitlab-ci.yml
Ondřej Surý [Wed, 3 Jul 2019 17:00:18 +0000 (19:00 +0200)] 
Set number of parallel jobs in .gitlab-ci.yml

6 years agoUse $KYUA_RESULT in kyua report-html invocation for unified file location
Ondřej Surý [Wed, 3 Jul 2019 16:03:11 +0000 (18:03 +0200)] 
Use $KYUA_RESULT in kyua report-html invocation for unified file location

6 years agoMerge branch '1114-windows-build-broken' into 'master'
Evan Hunt [Wed, 3 Jul 2019 16:53:18 +0000 (12:53 -0400)] 
Merge branch '1114-windows-build-broken' into 'master'

fix broken windows build

Closes #1114

See merge request isc-projects/bind9!2110

6 years agofix broken windows build
Evan Hunt [Fri, 28 Jun 2019 19:45:26 +0000 (12:45 -0700)] 
fix broken windows build

The MSVS C compiler requires every struct to have at least one member.
The dns_geoip_databases_t structure had one set of members for
HAVE_GEOIP and a different set for HAVE_GEOIP2, and none when neither
API is in use.

This commit silences the compiler error by moving the declaration of
dns_geoip_databases_t to types.h as an opaque reference, and commenting
out the contents of geoip.h when neither version of GeoIP is enabled.

6 years agoMerge branch 'michal/define-ATOMIC_VAR_INIT-on-windows' into 'master'
Ondřej Surý [Wed, 3 Jul 2019 15:58:34 +0000 (11:58 -0400)] 
Merge branch 'michal/define-ATOMIC_VAR_INIT-on-windows' into 'master'

Define ATOMIC_VAR_INIT() on Windows

See merge request isc-projects/bind9!2125

6 years agoDefine ATOMIC_VAR_INIT() on Windows
Michał Kępień [Wed, 3 Jul 2019 12:25:11 +0000 (14:25 +0200)] 
Define ATOMIC_VAR_INIT() on Windows

Commit b104a9bc503033b4c3174f088e2c5bdbc5d8bb51 introduced unconditional
use of the ATOMIC_VAR_INIT() macro in bin/dnssec/dnssec-signzone.c even
though that macro is only defined on Unix platforms.  Define it on
Windows systems as well in order to prevent build failures.

6 years agoMerge branch '1026-make-dnssec-signzone-thread-sanitizer-clean' into 'master'
Ondřej Surý [Wed, 3 Jul 2019 04:20:57 +0000 (00:20 -0400)] 
Merge branch '1026-make-dnssec-signzone-thread-sanitizer-clean' into 'master'

Resolve "Make dnssec-signzone ThreadSanitizer clean"

Closes #1026

See merge request isc-projects/bind9!1938

6 years agoProtect global init_count variable in rbtdb.c by making it atomic
Ondřej Surý [Mon, 13 May 2019 17:59:36 +0000 (00:59 +0700)] 
Protect global init_count variable in rbtdb.c by making it atomic

6 years agobin/dnssec/dnssec-signzone.c: Protect global variables by making them atomic
Ondřej Surý [Mon, 13 May 2019 17:36:02 +0000 (00:36 +0700)] 
bin/dnssec/dnssec-signzone.c: Protect global variables by making them atomic

Both global shuttingdown and finished bool variables were prone to data race
(as reported by ThreadSanitizer).  The commit makes them both atomic.

6 years agoMake isc_rwlock.c thread-safe
Ondřej Surý [Mon, 13 May 2019 17:19:11 +0000 (00:19 +0700)] 
Make isc_rwlock.c thread-safe

The ThreadSanitizer found several possible data races in our rwlock
implementation.  This commit changes all the unprotected variables to atomic and
also changes the explicit memory ordering (atomic_<foo>_explicit(..., <order>)
functions to use our convenience macros (atomic_<foo>_<order>).

6 years agoDefine ATOMIC_VAR_INIT in isc/stdatomic.h shim
Mark Andrews [Fri, 24 May 2019 21:48:12 +0000 (07:48 +1000)] 
Define ATOMIC_VAR_INIT in isc/stdatomic.h shim

6 years agoAdd atomic_compare_exchange_strong_relaxed convenience macro
Ondřej Surý [Mon, 13 May 2019 17:39:37 +0000 (00:39 +0700)] 
Add atomic_compare_exchange_strong_relaxed convenience macro

6 years agoMerge branch 'ondrej/with-or-without-geoip' into 'master'
Ondřej Surý [Tue, 2 Jul 2019 19:08:47 +0000 (15:08 -0400)] 
Merge branch 'ondrej/with-or-without-geoip' into 'master'

Enable GeoIP2 for all builds and enable old GeoIP only for Debian amd64 stretch build

See merge request isc-projects/bind9!2120

6 years agoEnable GeoIP2 for all builds and enable old GeoIP only for Debian jessie and Ubuntu...
Ondřej Surý [Tue, 2 Jul 2019 17:56:32 +0000 (19:56 +0200)] 
Enable GeoIP2 for all builds and enable old GeoIP only for Debian jessie and Ubuntu xenial builds

6 years agoMerge branch 'ondrej/missing-dot-in-job' into 'master'
Ondřej Surý [Tue, 2 Jul 2019 18:22:55 +0000 (14:22 -0400)] 
Merge branch 'ondrej/missing-dot-in-job' into 'master'

Add missing dot in .autoconf job template that caused duplicate job

See merge request isc-projects/bind9!2121

6 years agoAdd missing dot in .autoconf job template that caused duplicate job
Ondřej Surý [Tue, 2 Jul 2019 18:00:25 +0000 (20:00 +0200)] 
Add missing dot in .autoconf job template that caused duplicate job

6 years agoMerge branch 'ondrej/restore-freebsd-runner' into 'master'
Ondřej Surý [Tue, 2 Jul 2019 17:39:49 +0000 (13:39 -0400)] 
Merge branch 'ondrej/restore-freebsd-runner' into 'master'

Restore the FreeBSD Runner

See merge request isc-projects/bind9!2117

6 years agoUse $(pwd) instead of $CI_PROJECT_DIR to always get absolute path
Ondřej Surý [Tue, 2 Jul 2019 10:51:49 +0000 (12:51 +0200)] 
Use $(pwd) instead of $CI_PROJECT_DIR to always get absolute path

6 years agoUse sudo to setup the interfaces when CI job is not running as root
Ondřej Surý [Tue, 2 Jul 2019 10:23:56 +0000 (12:23 +0200)] 
Use sudo to setup the interfaces when CI job is not running as root

6 years agoAdd FreeBSD 11 GitLab CI Runner
Evan Hunt [Wed, 11 Apr 2018 03:24:03 +0000 (20:24 -0700)] 
Add FreeBSD 11 GitLab CI Runner

6 years agoMerge branch 'ondrej/fix-freebsd-make' into 'master'
Ondřej Surý [Tue, 2 Jul 2019 10:58:27 +0000 (06:58 -0400)] 
Merge branch 'ondrej/fix-freebsd-make' into 'master'

Add rules to make sure subdirs are always built before testdirs

See merge request isc-projects/bind9!2116

6 years agoAdd rules to make sure subdirs are always built before testdirs
Ondřej Surý [Tue, 2 Jul 2019 10:16:30 +0000 (12:16 +0200)] 
Add rules to make sure subdirs are always built before testdirs

6 years agoMerge branch '1120-remove-so_bsdcompat-usage' into 'master'
Ondřej Surý [Mon, 1 Jul 2019 15:12:47 +0000 (11:12 -0400)] 
Merge branch '1120-remove-so_bsdcompat-usage' into 'master'

Resolve "Remove SO_BSDCOMPAT usage"

Closes #1120

See merge request isc-projects/bind9!2113

6 years agoAdd CHANGES note:
Ondřej Surý [Mon, 1 Jul 2019 14:19:01 +0000 (16:19 +0200)] 
Add CHANGES note:

5261.  [cleanup]       Remove SO_BSDCOMPAT socket option usage.

6 years agoRemove SO_BSDCOMPAT usage, it's ignore since Linux 2.4
Ondřej Surý [Mon, 1 Jul 2019 14:16:40 +0000 (16:16 +0200)] 
Remove SO_BSDCOMPAT usage, it's ignore since Linux 2.4

The SO_BSDCOMPAT socket option is no-op since Linux 2.4, see the manpage:

SO_BSDCOMPAT
Enable BSD bug-to-bug compatibility.  This is used by the UDP protocol
module in Linux 2.0 and 2.2.  If enabled, ICMP errors received for a UDP
socket will not be passed to the user program.  In later kernel
versions, support for this option has been phased out: Linux 2.4
silently ignores it, and Linux 2.6 generates a kernel warning (printk())
if a program uses this option.  Linux 2.0 also enabled BSD bug-to-bug
compatibility options (random header changing, skipping of the broadcast
flag) for raw sockets with this option, but that was removed in Linux
2.2.

6 years agoMerge branch 'managed-keys-is-deprecated' into 'master'
Matthijs Mekking [Mon, 1 Jul 2019 08:53:16 +0000 (04:53 -0400)] 
Merge branch 'managed-keys-is-deprecated' into 'master'

Mark some managed-keys instances deprecated

See merge request isc-projects/bind9!2105

6 years agoMark some managed-keys instances deprecated
Matthijs Mekking [Fri, 28 Jun 2019 10:19:13 +0000 (12:19 +0200)] 
Mark some managed-keys instances deprecated

The 'managed-keys' (and 'trusted-keys') options have been deprecated
by 'dnssec-keys'.  Some documentation references to 'managed-keys'
had not yet been marked or noted as such.

6 years agoMerge branch 'michal/add-and-use-keyfile_to_key_id-helper-function' into 'master'
Michał Kępień [Fri, 28 Jun 2019 12:33:29 +0000 (08:33 -0400)] 
Merge branch 'michal/add-and-use-keyfile_to_key_id-helper-function' into 'master'

Add and use keyfile_to_key_id() helper function

See merge request isc-projects/bind9!2087

6 years agoAdd and use keyfile_to_key_id() helper function
Michał Kępień [Fri, 28 Jun 2019 11:11:26 +0000 (13:11 +0200)] 
Add and use keyfile_to_key_id() helper function

When trying to extract the key ID from a key file name, some test code
incorrectly attempts to strip all leading zeros.  This breaks tests when
keys with ID 0 are generated.  Add a new helper shell function,
keyfile_to_key_id(), which properly handles keys with ID 0 and use it in
test code whenever a key ID needs to be extracted from a key file name.

6 years agoMerge branch '1093-dnstap-read-clear-buffer-before-expanding-it' into 'master'
Michał Kępień [Fri, 28 Jun 2019 11:08:35 +0000 (07:08 -0400)] 
Merge branch '1093-dnstap-read-clear-buffer-before-expanding-it' into 'master'

dnstap-read: clear buffer before expanding it

Closes #1093

See merge request isc-projects/bind9!2049

6 years agoAdd CHANGES entry
Michał Kępień [Fri, 28 Jun 2019 10:12:46 +0000 (12:12 +0200)] 
Add CHANGES entry

5260. [bug] dnstap-read was producing malformed output for large
packets. [GL #1093]

6 years agodnstap-read: clear buffer before expanding it
Michał Kępień [Fri, 28 Jun 2019 10:12:46 +0000 (12:12 +0200)] 
dnstap-read: clear buffer before expanding it

When printing a packet, dnstap-read checks whether its text form takes
up more than the 2048 bytes allocated for the output buffer by default.
If that is the case, the output buffer is automatically expanded, but
the truncated output is left in the buffer, resulting in malformed data
being printed.  Clear the output buffer before expanding it to prevent
this issue from occurring.

6 years agoMerge branch '1101-matthijs-checkconf-i' into 'master'
Matthijs Mekking [Fri, 28 Jun 2019 09:50:40 +0000 (05:50 -0400)] 
Merge branch '1101-matthijs-checkconf-i' into 'master'

named-checkconf -i: ignore deprecate warnings

Closes #1101

See merge request isc-projects/bind9!2079

6 years agonamed-checkconf -i: ignore deprecate warnings
Matthijs Mekking [Tue, 25 Jun 2019 07:41:51 +0000 (09:41 +0200)] 
named-checkconf -i: ignore deprecate warnings

Adds a new option to named-checkconf, -i.  If set, named-checkconf
will not warn you about deprecated options.  This allows people
to use named-checkconf in automated deployment precoesses where an
operator only cares if their conf is valid, even if it is not optimal.

This was added as a request as part of introducing a policy on
removing named.conf options.

6 years agoMerge branch 'each-missing-dbtype' into 'master'
Evan Hunt [Fri, 28 Jun 2019 03:41:05 +0000 (23:41 -0400)] 
Merge branch 'each-missing-dbtype' into 'master'

accidentally omitted region from valid dbtypes

See merge request isc-projects/bind9!2100

6 years agoaccidentally omitted region from valid dbtypes
Evan Hunt [Thu, 27 Jun 2019 23:38:21 +0000 (16:38 -0700)] 
accidentally omitted region from valid dbtypes

6 years agoMerge branch '182-geoip2-api' into 'master'
Evan Hunt [Thu, 27 Jun 2019 22:12:04 +0000 (18:12 -0400)] 
Merge branch '182-geoip2-api' into 'master'

Resolve "Update GeoIP support to new API (GeoLite2 from Maxmind)"

Closes #182

See merge request isc-projects/bind9!2031

6 years agoCHANGES, release note, README
Evan Hunt [Sun, 23 Jun 2019 03:41:43 +0000 (20:41 -0700)] 
CHANGES, release note, README

6 years agoupdate ARM documentation
Evan Hunt [Sun, 23 Jun 2019 03:57:08 +0000 (20:57 -0700)] 
update ARM documentation

6 years agoadd geoip2 system test
Evan Hunt [Sat, 22 Jun 2019 19:52:26 +0000 (12:52 -0700)] 
add geoip2 system test

6 years agoadd GeoIP2 lookups to unit test
Evan Hunt [Sun, 23 Jun 2019 06:45:59 +0000 (23:45 -0700)] 
add GeoIP2 lookups to unit test

6 years agoimplement searching of geoip2 database
Evan Hunt [Wed, 12 Jun 2019 03:32:21 +0000 (20:32 -0700)] 
implement searching of geoip2 database

- revise mapping of search terms to database types to match the
  GeoIP2 schemas.
- open GeoIP2 databases when starting up; close when shutting down.
- clarify the logged error message when an unknown database type
  is configured.
- add new geoip ACL subtypes to support searching for continent in
  country databases.
- map geoip ACL subtypes to specific MMDB database queries.
- perform MMDB lookups based on subtype, saving state between
  queries so repeated lookups for the same address aren't necessary.

6 years agoadd HAVE_GEOIP2 #ifdef branches, without implementing yet
Evan Hunt [Wed, 12 Jun 2019 01:36:52 +0000 (18:36 -0700)] 
add HAVE_GEOIP2 #ifdef branches, without implementing yet

6 years agoadd a search for GeoIP2 libraries in configure
Evan Hunt [Tue, 11 Jun 2019 22:59:31 +0000 (15:59 -0700)] 
add a search for GeoIP2 libraries in configure

- "--with-geoip" is used to enable the legacy GeoIP library.
- "--with-geoip2" is used to enable the new GeoIP2 library
  (libmaxminddb), and is on by default if the library is found.
- using both "--with-geoip" and "--with-geoip2" at the same time
  is an error.
- an attempt is made to determine the default GeoIP2 database path at
  compile time if pkg-config is able to report the module prefix. if
  this fails, it will be necessary to set the path in named.conf with
  geoip-directory
- Makefiles have been updated, and a stub lib/dns/geoip2.c has been
  added for the eventual GeoIP2 search implementation.

6 years agoMerge branch '1095-when-gnu-c-compiler-is-used-on-solaris-gnu-ld-must-be-used' into...
Ondřej Surý [Thu, 27 Jun 2019 11:29:13 +0000 (07:29 -0400)] 
Merge branch '1095-when-gnu-c-compiler-is-used-on-solaris-gnu-ld-must-be-used' into 'master'

Enforce usage -zrelax=transtls when GNU C Compiler is used on Solaris

Closes #1095

See merge request isc-projects/bind9!2053

6 years agoEnforce usage -zrelax=transtls when GNU C Compiler is used on Solaris
Ondřej Surý [Wed, 19 Jun 2019 09:21:36 +0000 (11:21 +0200)] 
Enforce usage -zrelax=transtls when GNU C Compiler is used on Solaris

When GNU C Compiler is used on Solaris (11), the Thread Local Storage
is completely broken.  The behaviour doesn't manifest when GNU ld is
used.  Thus, we need to enforce usage of GNU ld when GNU C Compiler is
the compiler of choice.

For more background for this change, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90912

6 years agoMerge branch '1030-statistics-channel-fixes' into 'master'
Mark Andrews [Thu, 27 Jun 2019 03:20:16 +0000 (23:20 -0400)] 
Merge branch '1030-statistics-channel-fixes' into 'master'

Statistics Channel Fixes

Closes #1030

See merge request isc-projects/bind9!1945

6 years agoadd CHANGES
Mark Andrews [Thu, 16 May 2019 01:04:43 +0000 (11:04 +1000)] 
add CHANGES

6 years agocheck xsl vs xml
Mark Andrews [Mon, 20 May 2019 05:24:03 +0000 (15:24 +1000)] 
check xsl vs xml

6 years agoadd odd/even shading to the remaining tables
Evan Hunt [Wed, 26 Jun 2019 21:00:49 +0000 (14:00 -0700)] 
add odd/even shading to the remaining tables

6 years agoremove 'Configured Zones'; add even/odd to zone list
Mark Andrews [Thu, 16 May 2019 00:51:50 +0000 (10:51 +1000)] 
remove 'Configured Zones'; add even/odd to zone list

6 years agoFix ISC-Bugs 45340: Statschannel XSL for zones, Traffic
Timothe Litt [Tue, 14 May 2019 20:06:01 +0000 (16:06 -0400)] 
Fix ISC-Bugs 45340: Statschannel XSL for zones, Traffic

In ISC-Bugs 45340, I wrote:

The Statistics channel offers links to Zones and Traffic.
Both produce valid data, but display as blank pages with
a web browser.

Zones never had XSL (I provided the original
implementation, but punted on the XSL).

Traffic has XSL, but it wasn't updated to reflect the
split between IPv4 and IPv6 data.

I've picked up enough XSL to fix my original omission,
and as penance for my sloth, fixed the Traffic bug as well.

6 years agoMerge branch '1068-make-libxml2-library-usage-opaque-fixup' into 'master'
Ondřej Surý [Wed, 26 Jun 2019 16:41:48 +0000 (12:41 -0400)] 
Merge branch '1068-make-libxml2-library-usage-opaque-fixup' into 'master'

Fix printing whether libxml2 is used in the report part of configure.ac

Closes #1068

See merge request isc-projects/bind9!2088

6 years agoFix printing whether libxml2 is used in the report part of configure.ac
Ondřej Surý [Wed, 26 Jun 2019 10:53:35 +0000 (12:53 +0200)] 
Fix printing whether libxml2 is used in the report part of configure.ac

6 years agoMerge branch '1092-allow-priming-glue' into 'master'
Evan Hunt [Wed, 26 Jun 2019 16:15:00 +0000 (12:15 -0400)] 
Merge branch '1092-allow-priming-glue' into 'master'

allow glue in authoritative responses to root priming queries

Closes #1092

See merge request isc-projects/bind9!2045

6 years agoCHANGES, release note
Evan Hunt [Tue, 18 Jun 2019 02:13:59 +0000 (19:13 -0700)] 
CHANGES, release note

6 years agoadd system test to confirm glue is returned in priming queries
Evan Hunt [Tue, 18 Jun 2019 02:12:02 +0000 (19:12 -0700)] 
add system test to confirm glue is returned in priming queries

6 years agoallow glue in authoritative responses to root priming queries
Evan Hunt [Tue, 18 Jun 2019 00:11:00 +0000 (17:11 -0700)] 
allow glue in authoritative responses to root priming queries

- when processing authoritative queries for ./NS, set 'gluedb' so
  that glue will be included in the response, regardless of how
  'minimal-responses' has been configured.

6 years agoMerge branch '1109-inline-reload-error' into 'master'
Evan Hunt [Wed, 26 Jun 2019 15:45:13 +0000 (11:45 -0400)] 
Merge branch '1109-inline-reload-error' into 'master'

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

Closes #1109

See merge request isc-projects/bind9!2084

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

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

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.

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

Prevent "idna" test failures with libidn2 2.2.0+

See merge request isc-projects/bind9!2089

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

6 years agoMerge branch '1108-include-stdlib.h-in-lib-dns-dnsrps.c' into 'master'
Michał Kępień [Wed, 26 Jun 2019 09:06:54 +0000 (05:06 -0400)] 
Merge branch '1108-include-stdlib.h-in-lib-dns-dnsrps.c' into 'master'

Include <stdlib.h> in lib/dns/dnsrps.c

Closes #1108

See merge request isc-projects/bind9!2085

6 years agoInclude <stdlib.h> in lib/dns/dnsrps.c
Michał Kępień [Wed, 26 Jun 2019 06:37:31 +0000 (08:37 +0200)] 
Include <stdlib.h> in lib/dns/dnsrps.c

Since commit 0771dd3be8bad18f669de978f3be5e08cf2dbd6e, <isc/mem.h> no
longer includes <isc/xml.h>.  On some systems (e.g. FreeBSD), this means
that no header included by lib/dns/dnsrps.c (and no header included by
those headers) contains a definition of free() any more, which triggers
a compiler warning as lib/dns/dnsrps.c calls that function.  Add the
missing #include directive to prevent that warning from being triggered.

6 years agoMerge branch 'michal/remove-nonexistent-function-from-libdns.def.in' into 'master'
Michał Kępień [Wed, 26 Jun 2019 05:53:10 +0000 (01:53 -0400)] 
Merge branch 'michal/remove-nonexistent-function-from-libdns.def.in' into 'master'

Remove nonexistent function from libdns.def.in

See merge request isc-projects/bind9!2083

6 years agoRemove nonexistent function from libdns.def.in
Michał Kępień [Tue, 25 Jun 2019 20:27:01 +0000 (22:27 +0200)] 
Remove nonexistent function from libdns.def.in

No function called dns_dnssecsignstats_decrement() actually exists.
Putting it into lib/dns/win32/libdns.def.in breaks at least some Windows
builds.  Remove the nonexistent function from that file.

6 years agoMerge branch 'michal/wait-for-outgoing-transfer-statistics-to-be-logged' into 'master'
Michał Kępień [Tue, 25 Jun 2019 20:15:19 +0000 (16:15 -0400)] 
Merge branch 'michal/wait-for-outgoing-transfer-statistics-to-be-logged' into 'master'

Wait for outgoing transfer statistics to be logged

See merge request isc-projects/bind9!2081

6 years agoWait for outgoing transfer statistics to be logged
Michał Kępień [Tue, 25 Jun 2019 12:30:16 +0000 (14:30 +0200)] 
Wait for outgoing transfer statistics to be logged

Since the message confirming outgoing transfer completion is logged
asynchronously, it may happen that transfer statistics may not yet be
logged by the time the dig command triggering a given transfer returns.
This causes false positives for the "ixfr" and "xfer" system tests.
Prevent this from happening by checking outgoing transfer statistics up
to 10 times, in 1-second intervals.

6 years agoMerge branch '4-rename-OPENSSL_INCLUDES-to-OPENSSL_CFLAGS' into 'master'
Ondřej Surý [Tue, 25 Jun 2019 11:10:08 +0000 (07:10 -0400)] 
Merge branch '4-rename-OPENSSL_INCLUDES-to-OPENSSL_CFLAGS' into 'master'

Rename OPENSSL_INCLUDES to OPENSSL_CFLAGS in AX_CHECK_OPENSSL() macro

See merge request isc-projects/bind9!2073

6 years agoRename OPENSSL_INCLUDES to OPENSSL_CFLAGS in AX_CHECK_OPENSSL() macro
Ondřej Surý [Mon, 24 Jun 2019 12:06:56 +0000 (14:06 +0200)] 
Rename OPENSSL_INCLUDES to OPENSSL_CFLAGS in AX_CHECK_OPENSSL() macro

The ax_check_openssl m4 macro used OPENSSL_INCLUDES.  Rename the
subst variable to OPENSSL_CFLAGS and wrap AX_CHECK_OPENSSL() in
action-if-not-found part of PKG_CHECK_MODULE check for libcrypto.

6 years agoMerge branch '1068-make-libxml2-library-usage-opaque' into 'master'
Ondřej Surý [Tue, 25 Jun 2019 10:23:15 +0000 (06:23 -0400)] 
Merge branch '1068-make-libxml2-library-usage-opaque' into 'master'

Make the usage of json-c and libxml2 libraries opaque to the caller

Closes #1104 and #1068

See merge request isc-projects/bind9!2074

6 years agoExplicitly enable --with-libxml2 and --with-json-c to test whether pkg-config way...
Ondřej Surý [Tue, 25 Jun 2019 09:39:18 +0000 (11:39 +0200)] 
Explicitly enable --with-libxml2 and --with-json-c to test whether pkg-config way works

6 years agoMake the usage of json-c objects opaque to the caller
Ondřej Surý [Mon, 24 Jun 2019 10:21:47 +0000 (12:21 +0200)] 
Make the usage of json-c objects opaque to the caller

The json-c have previously leaked into the global namespace leading
to forced -I<include_path> for every compilation unit using isc/xml.h
header.  This MR fixes the usage making the caller object opaque.

6 years agoMake the usage of libxml2 opaque to the caller
Ondřej Surý [Mon, 24 Jun 2019 12:25:55 +0000 (14:25 +0200)] 
Make the usage of libxml2 opaque to the caller

The libxml2 have previously leaked into the global namespace leading
to forced -I<include_path> for every compilation unit using isc/xml.h
header.  This MR fixes the usage making the caller object opaque.

6 years agoMerge branch '513-matthijs-dnssec-sign-stats' into 'master'
Matthijs Mekking [Tue, 25 Jun 2019 09:59:28 +0000 (05:59 -0400)] 
Merge branch '513-matthijs-dnssec-sign-stats' into 'master'

Resolve "New metrics to report DNSSEC signing operations and IXFRs [ISC-support #13431]"

Closes #513

See merge request isc-projects/bind9!2067

6 years agoDNSSEC sign metrics: CHANGES, doc, release note
Matthijs Mekking [Fri, 21 Jun 2019 09:11:25 +0000 (11:11 +0200)] 
DNSSEC sign metrics: CHANGES, doc, release note

Add some information about the new statistic-channel DNS sign
metrics. Also add a CHANGES and release note entry.

6 years agoAlso collect DNSSEC refresh signature statistics
Matthijs Mekking [Fri, 21 Jun 2019 08:30:05 +0000 (10:30 +0200)] 
Also collect DNSSEC refresh signature statistics

In addition to gather how many times signatures are created per
key in a zone, also count how many of those signature creations are
because of DNSSEC maintenance.  These maintenance counters are
incremented if a signature is refreshed (but the RRset did not
changed), when the DNSKEY RRset is changed, and when that leads
to additional RRset / RRSIG updates (for example SOA, NSEC).