]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
7 years agocompare_nxt compared records with identical next fields case insensitively
Mark Andrews [Fri, 26 Oct 2018 06:23:22 +0000 (17:23 +1100)] 
compare_nxt compared records with identical next fields case insensitively

7 years agoMerge branch '638-record-types-with-empty-rdata-fields-were-not-being-handled-correct...
Mark Andrews [Tue, 30 Oct 2018 00:11:22 +0000 (20:11 -0400)] 
Merge branch '638-record-types-with-empty-rdata-fields-were-not-being-handled-correctly' into 'master'

Resolve "Record types with empty rdata fields were not being handled correctly."

Closes #638

See merge request isc-projects/bind9!919

7 years agodocument eol
Mark Andrews [Mon, 29 Oct 2018 23:40:31 +0000 (10:40 +1100)] 
document eol

7 years agoRecord types which support a empty rdata field were not handling the empty rdata...
Mark Andrews [Fri, 26 Oct 2018 22:58:23 +0000 (09:58 +1100)] 
Record types which support a empty rdata field were not handling the empty rdata field case.

7 years agoMerge branch 'wpk-fix-race-in-rpz-with-min-update-interval-0' into 'master'
Witold Krecicki [Mon, 29 Oct 2018 22:12:09 +0000 (18:12 -0400)] 
Merge branch 'wpk-fix-race-in-rpz-with-min-update-interval-0' into 'master'

Fix a race in RPZ with min-update-interval set to 0

Closes #643

See merge request isc-projects/bind9!907

7 years ago<stdlib.h> include in rpz.c for strtoul
Witold Kręcicki [Mon, 29 Oct 2018 22:03:51 +0000 (23:03 +0100)] 
<stdlib.h> include in rpz.c for strtoul

7 years agoRelease all resources when shutting down an RPZ zone during an update
Michał Kępień [Mon, 29 Oct 2018 21:29:31 +0000 (22:29 +0100)] 
Release all resources when shutting down an RPZ zone during an update

If an RPZ zone is to be freed during an update, canceling the
update_quantum() event is not enough because the resources released when
an update completes also need to be accounted for.  Failure to do this
results in a hang upon shutdown.  Fix by copying cleanup code from the
end of update_quantum() to rpz_detach().

7 years agoFix a race in RPZ with min-update-interval set to 0
Witold Kręcicki [Thu, 25 Oct 2018 18:49:28 +0000 (18:49 +0000)] 
Fix a race in RPZ with min-update-interval set to 0

If another RPZ update is pending when processing the previous one nears
completion and min-update-interval is set to 0, isc_timer_reset() gets
called with 'interval' set to 0, which triggers an assertion failure.
To prevent such a scenario from causing a crash, queue the update event
directly instead of asking the timer thread to do it.

7 years agoMerge branch '361-forwarding-qname-minimization' into 'master'
Witold Krecicki [Mon, 29 Oct 2018 19:31:00 +0000 (15:31 -0400)] 
Merge branch '361-forwarding-qname-minimization' into 'master'

Resolve "Issue With MR 253 QNAME Minimization"

Closes #361 and #583

See merge request isc-projects/bind9!933

7 years agoChanges
Witold Kręcicki [Mon, 29 Oct 2018 19:21:29 +0000 (19:21 +0000)] 
Changes

7 years agoStyle nits
Witold Kręcicki [Mon, 29 Oct 2018 19:21:23 +0000 (19:21 +0000)] 
Style nits

7 years agoDon't do qname minimization when forwarding; Avoid some intermittent errors in qmin...
Witold Kręcicki [Mon, 29 Oct 2018 14:25:19 +0000 (14:25 +0000)] 
Don't do qname minimization when forwarding; Avoid some intermittent errors in qmin tests caused by timing

7 years agoTest for #361 - forwarding breaks with qname minimization
Witold Kręcicki [Mon, 29 Oct 2018 12:39:33 +0000 (12:39 +0000)] 
Test for #361 - forwarding breaks with qname minimization

7 years agoMerge branch '642-missing-include' into 'master'
Evan Hunt [Mon, 29 Oct 2018 18:35:23 +0000 (14:35 -0400)] 
Merge branch '642-missing-include' into 'master'

added stdatomic.h and md.h

Closes #642

See merge request isc-projects/bind9!936

7 years agoadded stdatomic.h and md.h
Evan Hunt [Mon, 29 Oct 2018 18:26:38 +0000 (11:26 -0700)] 
added stdatomic.h and md.h

7 years agoMerge branch '641-unquoted-rpz' into 'master'
Evan Hunt [Mon, 29 Oct 2018 16:41:35 +0000 (12:41 -0400)] 
Merge branch '641-unquoted-rpz' into 'master'

allow unquoted response-policy zone names

Closes #641

See merge request isc-projects/bind9!926

7 years agoallow unquoted response-policy zone names
Evan Hunt [Mon, 29 Oct 2018 06:25:46 +0000 (23:25 -0700)] 
allow unquoted response-policy zone names

7 years agoMerge branch '635-unchecked-return-in-query-c' into 'master'
Mark Andrews [Mon, 29 Oct 2018 07:21:26 +0000 (03:21 -0400)] 
Merge branch '635-unchecked-return-in-query-c' into 'master'

Resolve "unchecked return in query.c"

Closes #635

See merge request isc-projects/bind9!925

7 years agoalways call RUNTIME_CHECK(result == ISC_R_SUCCESS); for dns_rdata_tostruct
Mark Andrews [Mon, 29 Oct 2018 06:21:33 +0000 (17:21 +1100)] 
always call RUNTIME_CHECK(result == ISC_R_SUCCESS); for dns_rdata_tostruct

7 years agoMerge branch '553-socket-c-2171-unexpected-error' into 'master'
Mark Andrews [Mon, 29 Oct 2018 06:25:37 +0000 (02:25 -0400)] 
Merge branch '553-socket-c-2171-unexpected-error' into 'master'

Resolve "socket.c:2171: unexpected error"

Closes #553

See merge request isc-projects/bind9!924

7 years agoOnly set IPV6_USE_MIN_MTU on IPv6.
Mark Andrews [Mon, 29 Oct 2018 05:49:33 +0000 (16:49 +1100)] 
Only set IPV6_USE_MIN_MTU on IPv6.

7 years agoMerge branch '624-lib-dns-dnstap_test-totext-does-not-work-well-with-softhsm-pkcs11...
Mark Andrews [Mon, 29 Oct 2018 05:25:05 +0000 (01:25 -0400)] 
Merge branch '624-lib-dns-dnstap_test-totext-does-not-work-well-with-softhsm-pkcs11' into 'master'

Resolve "lib/dns/dnstap_test:totext does not work well with SoftHSM PKCS11"

Closes #624

See merge request isc-projects/bind9!921

7 years agoInitalize TZ environment variable before calling dns_test_begin in dnstap_test.
Mark Andrews [Mon, 29 Oct 2018 05:15:52 +0000 (16:15 +1100)] 
Initalize TZ environment variable before calling dns_test_begin in dnstap_test.

7 years agoMerge branch '639-fix-freebsd-build' into 'master'
Ondřej Surý [Sun, 28 Oct 2018 14:18:47 +0000 (10:18 -0400)] 
Merge branch '639-fix-freebsd-build' into 'master'

avoid makefile conditional

Closes #639

See merge request isc-projects/bind9!920

7 years agoavoid makefile conditional
Evan Hunt [Sat, 27 Oct 2018 06:34:34 +0000 (23:34 -0700)] 
avoid makefile conditional

7 years agoMerge branch '22-remove-last-traces-of-already-removed-algorithms' into 'master'
Ondřej Surý [Fri, 26 Oct 2018 10:01:54 +0000 (06:01 -0400)] 
Merge branch '22-remove-last-traces-of-already-removed-algorithms' into 'master'

Remove various leftovers for algorithms that have been already removed from BIND

See merge request isc-projects/bind9!901

7 years agoConvert the bin/tests/optional/sig0_test.c to use RSASHA1 instead of DSA
Ondřej Surý [Thu, 25 Oct 2018 10:49:59 +0000 (12:49 +0200)] 
Convert the bin/tests/optional/sig0_test.c to use RSASHA1 instead of DSA

7 years agoRemove last traces of ECCGOST algorithm
Ondřej Surý [Thu, 25 Oct 2018 10:24:06 +0000 (12:24 +0200)] 
Remove last traces of ECCGOST algorithm

7 years agoRemove last traces of DSA and NSEC3DSA algorithm, but restore the algnumber -> name...
Ondřej Surý [Thu, 25 Oct 2018 09:42:51 +0000 (11:42 +0200)] 
Remove last traces of DSA and NSEC3DSA algorithm, but restore the algnumber -> name mapping

7 years agoUpdate dst_test.c to use ECDSA256 and RSASHA256 as test algorithms
Ondřej Surý [Thu, 25 Oct 2018 09:39:18 +0000 (11:39 +0200)] 
Update dst_test.c to use ECDSA256 and RSASHA256 as test algorithms

7 years agoRemove traces of DST_ALG_ECC which is now just Reserved in IANA registry
Ondřej Surý [Thu, 25 Oct 2018 08:30:07 +0000 (10:30 +0200)] 
Remove traces of DST_ALG_ECC which is now just Reserved in IANA registry

7 years agoRemove last bits of PKCS#11 DH support that has been already removed
Ondřej Surý [Thu, 25 Oct 2018 09:47:00 +0000 (11:47 +0200)] 
Remove last bits of PKCS#11 DH support that has been already removed

7 years agoMerge branch 'wpk-statschannel-test-timing' into 'master'
Witold Krecicki [Fri, 26 Oct 2018 09:12:34 +0000 (05:12 -0400)] 
Merge branch 'wpk-statschannel-test-timing' into 'master'

statschannel test fix

See merge request isc-projects/bind9!909

7 years agoCHANGES
Witold Kręcicki [Fri, 26 Oct 2018 08:38:00 +0000 (08:38 +0000)] 
CHANGES

7 years agostatschannel test: try 5 times to check if compressed and regular output of statschan...
Witold Kręcicki [Thu, 25 Oct 2018 19:37:32 +0000 (19:37 +0000)] 
statschannel test: try 5 times to check if compressed and regular output of statschannel is the same - some counters can change, minimize risk of bad timing

7 years agoMerge branch 'wpk-non-crypto-secure-cookies' into 'master'
Witold Krecicki [Fri, 26 Oct 2018 08:03:55 +0000 (04:03 -0400)] 
Merge branch 'wpk-non-crypto-secure-cookies' into 'master'

Cookies with non-crypto-secure random

See merge request isc-projects/bind9!887

7 years agoUse non-cryptographically-secure PRNG to generate a nonce for cookies.
Witold Kręcicki [Fri, 12 Oct 2018 11:59:33 +0000 (11:59 +0000)] 
Use non-cryptographically-secure PRNG to generate a nonce for cookies.

Rationale: the nonce here is only used to make sure there is a low
probability of duplication, according to section B.2 of RFC7873.
It is only 32-bit, and even if an attacker knows the algorithm used
to generate nonces it won't, in any way, give him any platform to
attack the server as long as server secret used to sign the
(nonce, time) pair with HMAC-SHA1 is secure.

On the other hand, currently, each packet sent requires (unnecessarily)
a CS pseudo-random number which is ineffective.

7 years agoMerge branch '633-resource-leak-in-hmac_fromdns' into 'master'
Mark Andrews [Fri, 26 Oct 2018 07:04:15 +0000 (03:04 -0400)] 
Merge branch '633-resource-leak-in-hmac_fromdns' into 'master'

Resolve "resource leak in hmac_fromdns"

Closes #633

See merge request isc-projects/bind9!918

7 years agofree hkey on error
Mark Andrews [Fri, 26 Oct 2018 06:46:15 +0000 (17:46 +1100)] 
free hkey on error

7 years agoMerge branch '632-check-for-individual-openssl-functions' into 'master'
Ondřej Surý [Fri, 26 Oct 2018 05:05:34 +0000 (01:05 -0400)] 
Merge branch '632-check-for-individual-openssl-functions' into 'master'

Check for individual OpenSSL functions instead of relying on version number

Closes #632

See merge request isc-projects/bind9!916

7 years agoCheck for individual OpenSSL functions instead of relying on version number
Ondřej Surý [Fri, 26 Oct 2018 03:29:56 +0000 (05:29 +0200)] 
Check for individual OpenSSL functions instead of relying on version number

7 years agoMerge branch '632-evp_cipher_ctx_free-and-evp_cipher_ctx_new-exist-in-openssl-1-0...
Mark Andrews [Fri, 26 Oct 2018 00:30:52 +0000 (20:30 -0400)] 
Merge branch '632-evp_cipher_ctx_free-and-evp_cipher_ctx_new-exist-in-openssl-1-0-1' into 'master'

Resolve "EVP_CIPHER_CTX_free and EVP_CIPHER_CTX_new exist in OpenSSL 1.0.1"

Closes #632

See merge request isc-projects/bind9!915

7 years agoEVP_CIPHER_CTX_new and EVP_CIPHER_CTX_free exist in OpenSSL 1.0.1
Mark Andrews [Thu, 25 Oct 2018 23:01:14 +0000 (10:01 +1100)] 
EVP_CIPHER_CTX_new and EVP_CIPHER_CTX_free exist in OpenSSL 1.0.1

7 years agoMerge branch '626-implement-eid-and-nimloc' into 'master'
Evan Hunt [Thu, 25 Oct 2018 22:29:29 +0000 (18:29 -0400)] 
Merge branch '626-implement-eid-and-nimloc' into 'master'

Resolve "Implement EID and NIMLOC"

Closes #626

See merge request isc-projects/bind9!895

7 years agoAdd support for EID and NIMLOC
Mark Andrews [Thu, 25 Oct 2018 04:27:06 +0000 (15:27 +1100)] 
Add support for EID and NIMLOC

7 years agoMerge branch '627-check-that-gid-uid-and-uinfo-can-be-loaded-using-unknown-record...
Evan Hunt [Thu, 25 Oct 2018 20:34:09 +0000 (16:34 -0400)] 
Merge branch '627-check-that-gid-uid-and-uinfo-can-be-loaded-using-unknown-record-format' into 'master'

Resolve "Check that GID, UID and UINFO can be loaded using unknown record format."

Closes #627

See merge request isc-projects/bind9!896

7 years agoGID, UID and UINFO could not be loaded using unknown record format.
Mark Andrews [Thu, 25 Oct 2018 05:34:27 +0000 (16:34 +1100)] 
GID, UID and UINFO could not be loaded using unknown record format.

7 years agoMerge branch '629-fix-isc_md-on-windows' into 'master'
Ondřej Surý [Thu, 25 Oct 2018 19:20:48 +0000 (15:20 -0400)] 
Merge branch '629-fix-isc_md-on-windows' into 'master'

Resolve "Windows Build Errors After !355 (Refactor Message Digest and HMAC API)"

Closes #629

See merge request isc-projects/bind9!908

7 years agoDon't include inet/arpa.h on Windows
Ondřej Surý [Thu, 25 Oct 2018 18:52:24 +0000 (20:52 +0200)] 
Don't include inet/arpa.h on Windows

7 years agoAdd md.h and md.c to Windows build files
Ondřej Surý [Thu, 25 Oct 2018 18:51:21 +0000 (20:51 +0200)] 
Add md.h and md.c to Windows build files

7 years agoMerge branch '630-dont-enable-fips-mode-on-windows' into 'master'
Ondřej Surý [Thu, 25 Oct 2018 18:58:26 +0000 (14:58 -0400)] 
Merge branch '630-dont-enable-fips-mode-on-windows' into 'master'

Disable FIPS mode on Windows

Closes #630

See merge request isc-projects/bind9!905

7 years agoDisable FIPS mode on Windows
Ondřej Surý [Thu, 25 Oct 2018 17:58:31 +0000 (19:58 +0200)] 
Disable FIPS mode on Windows

7 years agoMerge branch 'fix-openssl-mctx' into 'master'
Ondřej Surý [Thu, 25 Oct 2018 18:47:20 +0000 (14:47 -0400)] 
Merge branch 'fix-openssl-mctx' into 'master'

correctly attach and detach memory context

See merge request isc-projects/bind9!906

7 years agocorrectly attach and detach memory context
Evan Hunt [Thu, 25 Oct 2018 18:27:28 +0000 (11:27 -0700)] 
correctly attach and detach memory context

7 years agoMerge branch 'update-release-checklist-merge-prep-commit' into 'master'
Ondřej Surý [Thu, 25 Oct 2018 12:36:44 +0000 (08:36 -0400)] 
Merge branch 'update-release-checklist-merge-prep-commit' into 'master'

Update release checklist: merge prep commit

See merge request isc-projects/bind9!902

7 years agoUpdate release checklist: merge prep commit
Michał Kępień [Thu, 25 Oct 2018 11:57:21 +0000 (13:57 +0200)] 
Update release checklist: merge prep commit

7 years agoMerge branch '427-list-zones-in-the-web-interface' into 'master'
Michał Kępień [Thu, 25 Oct 2018 08:39:26 +0000 (04:39 -0400)] 
Merge branch '427-list-zones-in-the-web-interface' into 'master'

Display a per-view list of zones in the web interface

Closes #427

See merge request isc-projects/bind9!547

7 years agoAdd CHANGES entry
Michał Kępień [Thu, 25 Oct 2018 08:03:03 +0000 (10:03 +0200)] 
Add CHANGES entry

5059. [bug] Display a per-view list of zones in the web interface.
[GL #427]

7 years agoDisplay a per-view list of zones in the web interface
Michał Kępień [Thu, 25 Oct 2018 08:03:03 +0000 (10:03 +0200)] 
Display a per-view list of zones in the web interface

The XSL stylesheet used by the web interface does not currently include
any element which would cause a list of zones configured in each view to
be displayed, making the "Zones" section of the web interface empty
unless some zone has been configured with "zone-statistics full;" and
queried.  Since this can be confusing, modify the XSL stylesheet so that
a list of zones configured in each view is displayed in the web
interface.

7 years agoMerge branch '305-refactor-message-digest-functions' into 'master'
Ondřej Surý [Thu, 25 Oct 2018 06:33:31 +0000 (02:33 -0400)] 
Merge branch '305-refactor-message-digest-functions' into 'master'

Refactor Message Digest and HMAC API

Closes #305

See merge request isc-projects/bind9!355

7 years agoAdd CHANGES entry for GL #305.
Ondřej Surý [Wed, 24 Oct 2018 08:21:10 +0000 (10:21 +0200)] 
Add CHANGES entry for GL #305.

XXXX.   [func]          Replace old message digest and hmac APIs with more
                        generic isc_md and isc_hmac APIs, and convert their
respective tests to cmocka. [GL #305]

7 years agoSplit isc_crc64 API test into separate unit test and convert it to cmocka
Ondřej Surý [Thu, 11 Oct 2018 16:20:17 +0000 (18:20 +0200)] 
Split isc_crc64 API test into separate unit test and convert it to cmocka

7 years agoRemove internal dst memory context that was used just for OpenSSL and was passthrough...
Ondřej Surý [Thu, 11 Oct 2018 15:13:27 +0000 (15:13 +0000)] 
Remove internal dst memory context that was used just for OpenSSL and was passthrough for malloc and free

7 years agoAdd tkey_test.c with mocked isc_mem object
Ondřej Surý [Mon, 4 Jun 2018 07:50:57 +0000 (09:50 +0200)] 
Add tkey_test.c with mocked isc_mem object

7 years agoAdd generic hashed message authentication code API (isc_hmac) to replace specific...
Ondřej Surý [Tue, 20 Mar 2018 17:20:50 +0000 (17:20 +0000)] 
Add generic hashed message authentication code API (isc_hmac) to replace specific HMAC functions hmacmd5/hmacsha1/hmacsha2...

7 years agoAdd generic message digest API (isc_md) to replace specific MD functions md5/sha1...
Ondřej Surý [Fri, 1 Jun 2018 07:31:59 +0000 (09:31 +0200)] 
Add generic message digest API (isc_md) to replace specific MD functions md5/sha1/sha256

7 years agoAdd kyua.log to .gitignore
Ondřej Surý [Tue, 23 Oct 2018 17:57:09 +0000 (19:57 +0200)] 
Add kyua.log to .gitignore

7 years agoMerge branch '619-implement-atma' into 'master'
Mark Andrews [Thu, 25 Oct 2018 02:32:46 +0000 (22:32 -0400)] 
Merge branch '619-implement-atma' into 'master'

Resolve "Implement ATMA"

Closes #619

See merge request isc-projects/bind9!885

7 years agoAdd support for ATMA
Mark Andrews [Wed, 24 Oct 2018 05:34:40 +0000 (16:34 +1100)] 
Add support for ATMA

7 years agoMerge branch '609-address-memory-leak-on-error' into 'master'
Mark Andrews [Thu, 25 Oct 2018 02:13:27 +0000 (22:13 -0400)] 
Merge branch '609-address-memory-leak-on-error' into 'master'

Resolve "Address memory leak on error"

Closes #609

See merge request isc-projects/bind9!860

7 years agoexpand the pool then copy over the old entries so we that failures do not break the...
Mark Andrews [Fri, 19 Oct 2018 08:36:17 +0000 (19:36 +1100)] 
expand the pool then copy over the old entries so we that failures do not break the old pool; also don't leak the new pool on error

7 years agoMerge branch 'placeholder' into 'master'
Evan Hunt [Wed, 24 Oct 2018 23:08:59 +0000 (19:08 -0400)] 
Merge branch 'placeholder' into 'master'

placeholder

See merge request isc-projects/bind9!890

7 years agoplaceholder
Evan Hunt [Wed, 24 Oct 2018 23:08:16 +0000 (16:08 -0700)] 
placeholder

7 years agoMerge branch '564-mirror-zone-configuration-tweaks-and-cleanups' into 'master'
Ondřej Surý [Wed, 24 Oct 2018 18:51:37 +0000 (14:51 -0400)] 
Merge branch '564-mirror-zone-configuration-tweaks-and-cleanups' into 'master'

Mirror zone configuration tweaks and cleanups

Closes #564, #375, and #342

See merge request isc-projects/bind9!815

7 years agoAdd CHANGES entry
Michał Kępień [Tue, 9 Oct 2018 08:54:51 +0000 (10:54 +0200)] 
Add CHANGES entry

XXXX. [func] A default list of primary servers for the root zone is
now built into named, allowing the "masters" statement
to be omitted when configuring an IANA root zone
mirror. [GL #564]

XXXX. [func] Attempts to use mirror zones with recursion disabled
are now considered a configuration error. [GL #564]

XXXX. [func] The only valid zone-level NOTIFY settings for mirror
zones are now "notify no;" and "notify explicit;".
[GL #564]

XXXX. [func] Mirror zones are now configured using "type mirror;"
rather than "mirror yes;". [GL #564]

7 years agoUpdate documentation
Michał Kępień [Tue, 9 Oct 2018 08:54:51 +0000 (10:54 +0200)] 
Update documentation

7 years agoTest whether mirror zones can be added and removed dynamically
Michał Kępień [Tue, 9 Oct 2018 08:54:51 +0000 (10:54 +0200)] 
Test whether mirror zones can be added and removed dynamically

Extend the "mirror" zone system test to make sure mirror zones can be
added and removed dynamically using rndc.

7 years agoDefine a default master server list for the root zone
Michał Kępień [Tue, 9 Oct 2018 08:54:51 +0000 (10:54 +0200)] 
Define a default master server list for the root zone

To minimize the effort required to set up IANA root zone mirroring,
define a default master server list for the root zone and use it when
that zone is to be mirrored and no master server list was explicitly
specified.  Contents of that list are taken from RFC 7706 and are
subject to change in future releases.

Since the static get_masters_def() function in bin/named/config.c does
exactly what named_zone_configure() in bin/named/zoneconf.c needs to do,
make the former non-static and use it in the latter to prevent code
duplication.

7 years agoPrevent mirror zones from being used when recursion is disabled
Michał Kępień [Tue, 9 Oct 2018 08:54:51 +0000 (10:54 +0200)] 
Prevent mirror zones from being used when recursion is disabled

Since mirror zone data is treated as cache data for access control
purposes, configuring a mirror zone and disabling recursion at the same
time would effectively prevent mirror zone data from being used since
disabling recursion also disables cache access to all clients by
default.  Even though this behavior can be inhibited by configuration,
mirror zones are a recursive resolver feature and thus recursion is now
required to use them.

Ignore the fact that certain configurations might still trick named into
assuming recursion is enabled when it effectively is not since this
change is not meant to put a hard policy in place but rather just to
prevent accidental mirror zone misuse.

7 years agoClean up handling of NOTIFY settings for mirror zones
Michał Kępień [Tue, 9 Oct 2018 08:54:51 +0000 (10:54 +0200)] 
Clean up handling of NOTIFY settings for mirror zones

Previous way of handling NOTIFY settings for mirror zones was a bit
tricky: any value of the "notify" option was accepted, but it was
subsequently overridden with dns_notifytype_explicit.  Given the way
zone configuration is performed, this resulted in the following
behavior:

  - if "notify yes;" was set explicitly at any configuration level or
    inherited from default configuration, it was silently changed and so
    only hosts specified in "also-notify", if any, were notified,

  - if "notify no;" was set at any configuration level, it was
    effectively honored since even though zone->notifytype was silently
    set to dns_notifytype_explicit, the "also-notify" option was never
    processed due to "notify no;" being set.

Effectively, this only allowed the hosts specified in "also-notify" to
be notified, when either "notify yes;" or "notify explicit;" was
explicitly set or inherited from default configuration.

Clean up handling of NOTIFY settings for mirror zones by:

  - reporting a configuration error when anything else than "notify no;"
    or "notify explicit;" is set for a mirror zone at the zone level,

  - overriding inherited "notify yes;" setting with "notify explicit;"
    for mirror zones,

  - informing the user when the "notify" setting is overridden, unless
    the setting in question was inherited from default configuration.

7 years agoReplace the "mirror" zone option with "type mirror;"
Michał Kępień [Tue, 9 Oct 2018 08:54:51 +0000 (10:54 +0200)] 
Replace the "mirror" zone option with "type mirror;"

Use a zone's 'type' field instead of the value of its DNS_ZONEOPT_MIRROR
option for checking whether it is a mirror zone.  This makes said zone
option and its associated helper function, dns_zone_mirror(), redundant,
so remove them.  Remove a check specific to mirror zones from
named_zone_reusable() since another check in that function ensures that
changing a zone's type prevents it from being reused during
reconfiguration.

7 years agoDefine a separate dns_zonetype_t for mirror zones
Michał Kępień [Tue, 9 Oct 2018 08:54:51 +0000 (10:54 +0200)] 
Define a separate dns_zonetype_t for mirror zones

Rather than overloading dns_zone_slave and discerning between a slave
zone and a mirror zone using a zone option, define a separate enum
value, dns_zone_mirror, to be used exclusively by mirror zones.  Update
code handling slave zones to ensure it also handles mirror zones where
applicable.

7 years agoHandle "type mirror;" when parsing zone configuration
Michał Kępień [Tue, 9 Oct 2018 08:54:51 +0000 (10:54 +0200)] 
Handle "type mirror;" when parsing zone configuration

Add a new zone type, CFG_ZONE_MIRROR, to libisccfg, in order to limit
the list of options which are considered valid for mirror zones.  Update
the relevant configuration checks.

7 years agoMerge branch '582-fix-server-addresses-configuration-type' into 'master'
Ondřej Surý [Wed, 24 Oct 2018 13:39:01 +0000 (09:39 -0400)] 
Merge branch '582-fix-server-addresses-configuration-type' into 'master'

Fix the configuration type used by the "server-addresses" option

Closes #582

See merge request isc-projects/bind9!856

7 years agoAdd CHANGES entry
Michał Kępień [Thu, 18 Oct 2018 13:48:44 +0000 (15:48 +0200)] 
Add CHANGES entry

5048. [doc] Documentation incorrectly stated that the
"server-addresses" static-stub zone option accepts
custom port numbers. [GL #582]

7 years agoFix the configuration type used by the "server-addresses" option
Michał Kępień [Thu, 18 Oct 2018 13:48:44 +0000 (15:48 +0200)] 
Fix the configuration type used by the "server-addresses" option

Contrary to what the documentation states, the "server-addresses"
static-stub zone option does not accept custom port numbers.  Fix the
configuration type used by the "server-addresses" option to ensure
documentation matches source code.  Remove a check_zoneconf() test which
is unnecessary with this fix in place.

7 years agoMerge branch 'wpk-temporarily-disable-qmin-for-rpz' into 'master'
Evan Hunt [Wed, 24 Oct 2018 02:49:29 +0000 (22:49 -0400)] 
Merge branch 'wpk-temporarily-disable-qmin-for-rpz' into 'master'

Disable qname minimization in RPZ test for now

See merge request isc-projects/bind9!882

7 years agoDisable qname minimization in RPZ test for now
Witold Kręcicki [Tue, 23 Oct 2018 21:48:23 +0000 (21:48 +0000)] 
Disable qname minimization in RPZ test for now

7 years agoMerge branch '610-address-memory-leak-on-error' into 'master'
Mark Andrews [Wed, 24 Oct 2018 00:51:58 +0000 (20:51 -0400)] 
Merge branch '610-address-memory-leak-on-error' into 'master'

Resolve "Address memory leak on error"

Closes #610

See merge request isc-projects/bind9!859

7 years agofree key on error
Mark Andrews [Fri, 19 Oct 2018 08:23:39 +0000 (19:23 +1100)] 
free key on error

7 years agoMerge branch 'cleanup-changes' into 'master'
Evan Hunt [Tue, 23 Oct 2018 20:29:51 +0000 (16:29 -0400)] 
Merge branch 'cleanup-changes' into 'master'

minor CHANGES edits

See merge request isc-projects/bind9!880

7 years agominor edits
Evan Hunt [Tue, 23 Oct 2018 20:28:57 +0000 (13:28 -0700)] 
minor edits

7 years agoMerge branch '187-libirs-handle-scoped-ipv6-addresses-in-etc-resolv.conf' into 'master'
Michał Kępień [Tue, 23 Oct 2018 13:13:14 +0000 (09:13 -0400)] 
Merge branch '187-libirs-handle-scoped-ipv6-addresses-in-etc-resolv.conf' into 'master'

libirs: handle scoped IPv6 addresses in /etc/resolv.conf

Closes #187

See merge request isc-projects/bind9!854

7 years agoAdd CHANGES entry
Michał Kępień [Tue, 23 Oct 2018 12:50:00 +0000 (14:50 +0200)] 
Add CHANGES entry

5050. [bug] The libirs version of getaddrinfo() was unable to parse
scoped IPv6 addresses present in /etc/resolv.conf.
[GL #187]

7 years agolibirs: handle scoped IPv6 addresses in /etc/resolv.conf
Michał Kępień [Tue, 23 Oct 2018 12:50:00 +0000 (14:50 +0200)] 
libirs: handle scoped IPv6 addresses in /etc/resolv.conf

Commonly used network configuration tools write scoped IPv6 nameserver
addresses to /etc/resolv.conf.  libirs only handles these when it is
compiled with -DIRS_HAVE_SIN6_SCOPE_ID, which is not the default, and
only handles numeric scopes, which is not what network configuration
tools typically use.  This causes dig to be practically unable to handle
scoped IPv6 nameserver addresses in /etc/resolv.conf.

Fix the problem by:

  - not requiring a custom compile-time flag to be set in order for
    scoped IPv6 addresses to be processed by getaddrinfo(),

  - parsing non-numeric scope identifiers using if_nametoindex(),

  - setting the sin6_scope_id field in struct sockaddr_in6 structures
    returned by getaddrinfo() even if the AI_CANONNAME flag is not set.

7 years agoMerge branch '16-qname-minimization-newfctx' into 'master'
Witold Krecicki [Tue, 23 Oct 2018 12:33:12 +0000 (08:33 -0400)] 
Merge branch '16-qname-minimization-newfctx' into 'master'

QNAME minimization remake

See merge request isc-projects/bind9!548

7 years agouse ns_client_log
Mark Andrews [Mon, 8 Oct 2018 00:19:00 +0000 (11:19 +1100)] 
use ns_client_log

7 years agolog pre rrl check state
Mark Andrews [Thu, 4 Oct 2018 23:23:45 +0000 (09:23 +1000)] 
log pre rrl check state

7 years agochanges
Witold Kręcicki [Fri, 17 Aug 2018 14:20:20 +0000 (16:20 +0200)] 
changes

7 years agostop.pl: report test being stopped
Mark Andrews [Fri, 17 Aug 2018 06:24:51 +0000 (16:24 +1000)] 
stop.pl: report test being stopped