]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
4 years agoPrepare release notes for BIND 9.17.18
Michał Kępień [Tue, 7 Sep 2021 07:28:48 +0000 (09:28 +0200)] 
Prepare release notes for BIND 9.17.18

4 years agoAdd release note for GL #2878
Michał Kępień [Tue, 7 Sep 2021 07:28:48 +0000 (09:28 +0200)] 
Add release note for GL #2878

4 years agoAdd release note for GL #2844
Michał Kępień [Tue, 7 Sep 2021 07:28:48 +0000 (09:28 +0200)] 
Add release note for GL #2844

4 years agoAdd release note for GL #1944
Michał Kępień [Tue, 7 Sep 2021 07:28:48 +0000 (09:28 +0200)] 
Add release note for GL #1944

4 years agoReorder release notes
Michał Kępień [Tue, 7 Sep 2021 07:28:48 +0000 (09:28 +0200)] 
Reorder release notes

4 years agoTweak and reword release notes
Michał Kępień [Tue, 7 Sep 2021 07:28:48 +0000 (09:28 +0200)] 
Tweak and reword release notes

4 years agoTweak and reword recent CHANGES entries
Michał Kępień [Tue, 7 Sep 2021 07:28:48 +0000 (09:28 +0200)] 
Tweak and reword recent CHANGES entries

4 years agoUpdate release checklist
Michał Kępień [Tue, 7 Sep 2021 07:28:48 +0000 (09:28 +0200)] 
Update release checklist

Add an item to the release checklist to make sure regression tests
reproducing publicly disclosed security issues are eventually merged
into each maintained branch.

4 years agoMerge branch '2904-typo-in-nsupdate-1' into 'main'
Mark Andrews [Wed, 15 Sep 2021 08:28:03 +0000 (08:28 +0000)] 
Merge branch '2904-typo-in-nsupdate-1' into 'main'

Resolve "Typo in nsupdate(1)"

Closes #2904

See merge request isc-projects/bind9!5403

4 years agoFix closing brackets in help message
Mark Andrews [Wed, 15 Sep 2021 07:01:00 +0000 (17:01 +1000)] 
Fix closing brackets in help message

4 years agoMerge branch '2902-fix-httpport' into 'main'
Evan Hunt [Tue, 14 Sep 2021 21:00:37 +0000 (21:00 +0000)] 
Merge branch '2902-fix-httpport' into 'main'

use named_g_httpport correctly when creating listeners

Closes #2902

See merge request isc-projects/bind9!5397

4 years agouse named_g_httpport correctly when creating listeners
Evan Hunt [Mon, 13 Sep 2021 21:03:51 +0000 (14:03 -0700)] 
use named_g_httpport correctly when creating listeners

when the default http port was set on the command line, it was
not used correctly by listeners. [GL #2902]

4 years agoMerge branch '2866-placeholder' into 'main'
Ondřej Surý [Tue, 14 Sep 2021 18:56:36 +0000 (18:56 +0000)] 
Merge branch '2866-placeholder' into 'main'

Add placeholder CHANGES for [GL #2866]

See merge request isc-projects/bind9!5395

4 years agoAdd placeholder CHANGES for [GL #2866]
Ondřej Surý [Wed, 8 Sep 2021 12:49:26 +0000 (14:49 +0200)] 
Add placeholder CHANGES for [GL #2866]

4 years agoMerge branch '2888-be-more-strict-about-clashing-source-ports' into 'main'
Ondřej Surý [Tue, 14 Sep 2021 17:59:29 +0000 (17:59 +0000)] 
Merge branch '2888-be-more-strict-about-clashing-source-ports' into 'main'

check port in *-source and *-source-v6 options in named.conf

Closes #2888

See merge request isc-projects/bind9!5399

4 years agoAdd CHANGES and release notes for [GL #2888]
Ondřej Surý [Tue, 14 Sep 2021 13:19:01 +0000 (15:19 +0200)] 
Add CHANGES and release notes for [GL #2888]

4 years agoDocument caveats related to single source port in the ARM
Ondřej Surý [Tue, 14 Sep 2021 14:48:38 +0000 (16:48 +0200)] 
Document caveats related to single source port in the ARM

Discourage the single source port on general level and document that the
source port cannot be same as the listening port.  This applies to
query-source, transfer-source, notify-source, parental-source, and their
respective IPv6 counterparts.

4 years agocheck port in *-source and *-source-v6 options in named.conf
Evan Hunt [Tue, 14 Sep 2021 00:55:34 +0000 (17:55 -0700)] 
check port in *-source and *-source-v6 options in named.conf

- when transfer-source(-v6), query-source(-v6), notify-source(-v6)
  or parental-source(-v6) are specified with a port number, issue a
  warning.
- when the port specified is the same as the DNS listener port (i.e.,
  53, or whatever was specified as "port" in "options"), issue a fatal
  error.
- check that "port" is in range. (previously this was only checked
  by named, not by named-checkconf.)
- added checkconf tests.
- incidental fix: removed dead code in check.c:bind9_check_namedconf().

(note: if the DNS port is specified on the command line with "named -p",
that is not conveyed to libbind9, so these checks will not take it into
account.)

4 years agoMerge branch '2852-remove-adjust_interfaces' into 'main'
Ondřej Surý [Tue, 14 Sep 2021 14:24:25 +0000 (14:24 +0000)] 
Merge branch '2852-remove-adjust_interfaces' into 'main'

Remove the code to adjust listening interfaces for *-source-v6

Closes #2852

See merge request isc-projects/bind9!5386

4 years agoAdd CHANGES and release note for [GL #2852]
Ondřej Surý [Tue, 7 Sep 2021 19:44:17 +0000 (21:44 +0200)] 
Add CHANGES and release note for [GL #2852]

4 years agoAdjust system forward test to also use IPv6 addresses
Ondřej Surý [Tue, 7 Sep 2021 13:00:06 +0000 (15:00 +0200)] 
Adjust system forward test to also use IPv6 addresses

The ns3->ns2 forwarding is now done using the IPv6 addresses, so we also
test that the query-source-v6 address is still operational after removal
of interface adjustment.

4 years agoRemove the code to adjust listening interfaces for *-source-v6
Ondřej Surý [Tue, 7 Sep 2021 12:40:19 +0000 (14:40 +0200)] 
Remove the code to adjust listening interfaces for *-source-v6

Previously, named would run with a configuration
where *-source-v6 (notify-source-v6, transfer-source-v6 and
query-source-v6) address and port could be simultaneously used for
listening.  This is no longer true for BIND 9.16+ and the code that
would do interface adjustments would unexpectedly disable listening on
TCP for such interfaces.

This commit removes the code that would adjust listening interfaces
for addresses/ports configured in *-source-v6 option.

4 years agoMerge branch '2818-catz-config-synonyms' into 'main'
Arаm Sаrgsyаn [Tue, 14 Sep 2021 08:36:11 +0000 (08:36 +0000)] 
Merge branch '2818-catz-config-synonyms' into 'main'

Add synonym configuration options for catalog zones

Closes #2818

See merge request isc-projects/bind9!5382

4 years agoAdd a CHANGES entry [GL #2818]
Aram Sargsyan [Fri, 3 Sep 2021 11:24:12 +0000 (11:24 +0000)] 
Add a CHANGES entry [GL #2818]

4 years agoFix an off-by-one error in catz_opt_cmp() function
Aram Sargsyan [Fri, 3 Sep 2021 00:59:57 +0000 (00:59 +0000)] 
Fix an off-by-one error in catz_opt_cmp() function

This commit fixes an off-by-one error in catz_opt_cmp() function which
was resulting in ignoring the last character of the compared string.

4 years agoAdd synonym configuration options for catalog zones
Aram Sargsyan [Fri, 3 Sep 2021 00:56:47 +0000 (00:56 +0000)] 
Add synonym configuration options for catalog zones

This commit adds 'primaries' and 'default-primaries' catalog zones
configuration options synonyms for 'masters' and 'default-masters'
respectively.

4 years agoMerge branch '2691-remove-native-pkcs-11-support-from-bind-9-17-9-18' into 'main'
Ondřej Surý [Thu, 9 Sep 2021 14:11:48 +0000 (14:11 +0000)] 
Merge branch '2691-remove-native-pkcs-11-support-from-bind-9-17-9-18' into 'main'

Remove native PKCS#11 support

Closes #2691

See merge request isc-projects/bind9!5074

4 years agoAdd CHANGES and release note for GL #2691
Ondřej Surý [Thu, 20 May 2021 14:35:48 +0000 (16:35 +0200)] 
Add CHANGES and release note for GL #2691

4 years agoDisable softhsm2.4 and softhsm2.6 builds and tests from the CI
Ondřej Surý [Tue, 7 Sep 2021 19:54:48 +0000 (21:54 +0200)] 
Disable softhsm2.4 and softhsm2.6 builds and tests from the CI

Until we have a system test that would directly test the engine_pkcs11
integration, we need to disable the system tests that enabled native
PKCS#11 in the CI because it's currently broken.

4 years agoRemove native PKCS#11 support
Ondřej Surý [Thu, 20 May 2021 14:26:53 +0000 (16:26 +0200)] 
Remove native PKCS#11 support

The native PKCS#11 support has been removed in favour of better
maintained, more performance and easier to use OpenSSL PKCS#11 engine
from the OpenSC project.

4 years agoMerge branch '2344-devpoll-lockid-dead-code' into 'main'
Arаm Sаrgsyаn [Wed, 8 Sep 2021 11:12:24 +0000 (11:12 +0000)] 
Merge branch '2344-devpoll-lockid-dead-code' into 'main'

Remove dead code

Closes #2344

See merge request isc-projects/bind9!5384

4 years agoRemove dead code
Aram Sargsyan [Fri, 3 Sep 2021 16:58:19 +0000 (16:58 +0000)] 
Remove dead code

Remove dead code from the USE_DEVPOLL branch in libisc's socket.c

4 years agoMerge branch '2635-default-iana-root-zone-primaries-update' into 'main'
Arаm Sаrgsyаn [Wed, 8 Sep 2021 10:08:21 +0000 (10:08 +0000)] 
Merge branch '2635-default-iana-root-zone-primaries-update' into 'main'

Update the default IANA root zone primaries

Closes #2635

See merge request isc-projects/bind9!5383

4 years agoUpdate the default IANA root zone primaries list
Aram Sargsyan [Fri, 3 Sep 2021 14:48:49 +0000 (14:48 +0000)] 
Update the default IANA root zone primaries list

The default IANA root zone primaries list was outdated, this commit
updates it.

4 years agoMerge branch '69-relax-fetchlimit-test' into 'main' 5390/head
Evan Hunt [Fri, 3 Sep 2021 06:24:26 +0000 (06:24 +0000)] 
Merge branch '69-relax-fetchlimit-test' into 'main'

increase 1-second timeout in fetchlimit

Closes #69

See merge request isc-projects/bind9!5380

4 years agoincrease 1-second timeout in fetchlimit
Evan Hunt [Thu, 2 Sep 2021 16:11:02 +0000 (09:11 -0700)] 
increase 1-second timeout in fetchlimit

when "checking lame server clients are dropped below the hard limit",
periodically a query is sent for a name for which the server is
authoritative, to verify that legitimate queries can still be
processed while the server is dealing with a flood of lame delegation
queries. those queries used the same dig options as elsewhere in the
fetchlimit test, including "+tries=1 +timeout=1". on slow systems, a
1-second timeout may be insufficient to get an answer even if the server
is behaving well. this commit increases the timeout for the check
queries to 2 seconds in hopes that will be enough to eliminate test
failures in CI.

4 years agoMerge branch '2890-update-documentation-with-respect-to-sig-validity-interval-and...
Mark Andrews [Fri, 3 Sep 2021 03:17:14 +0000 (03:17 +0000)] 
Merge branch '2890-update-documentation-with-respect-to-sig-validity-interval-and-update' into 'main'

Resolve "Update documentation with respect to sig-validity-interval and UPDATE"

Closes #2890

See merge request isc-projects/bind9!5371

4 years agoUpdate sig-validity-interval description
Mark Andrews [Thu, 2 Sep 2021 05:28:45 +0000 (15:28 +1000)] 
Update sig-validity-interval description

Document that the interval on new RRSIG records is randomally
chosen between the limits specified by sig-validity-interval.
document the operatations when this occurs.

4 years agoMerge branch '2878-large-map-file' into 'main'
Evan Hunt [Wed, 1 Sep 2021 15:24:26 +0000 (15:24 +0000)] 
Merge branch '2878-large-map-file' into 'main'

map files over 2GB could not be loaded

Closes #2878

See merge request isc-projects/bind9!5356

4 years agoCHANGES
Evan Hunt [Tue, 24 Aug 2021 20:14:59 +0000 (13:14 -0700)] 
CHANGES

4 years agoadd a test for large map files
Evan Hunt [Tue, 24 Aug 2021 20:10:13 +0000 (13:10 -0700)] 
add a test for large map files

- a test has been added to 'masterformat', but disabled by default,
  because it takes several minutes to run and uses a lot of disk.

4 years agomap files over 2GB could not be loaded
Evan Hunt [Tue, 24 Aug 2021 19:22:32 +0000 (12:22 -0700)] 
map files over 2GB could not be loaded

- fixed a size comparison using "signed int" that failed if the file
  size was more than 2GB, since that was treated as a negative number.
- incidentally renamed deserialize32() to just deserialize(). we no
  longer have separate 32 and 64 bit rbtdb implementations.

4 years agoMerge branch '2837-sync-isc-trampoline-in-main-with-v9_16' into 'main'
Michał Kępień [Wed, 1 Sep 2021 09:06:54 +0000 (09:06 +0000)] 
Merge branch '2837-sync-isc-trampoline-in-main-with-v9_16' into 'main'

Synchronize the isc_trampoline API with changes needed in v9_16

Closes #2837

See merge request isc-projects/bind9!5373

4 years agoSynchronize the isc_trampoline API with changes needed in v9_16
Ondřej Surý [Tue, 31 Aug 2021 17:25:07 +0000 (17:25 +0000)] 
Synchronize the isc_trampoline API with changes needed in v9_16

This commit synchronizes the isc_trampoline API to match the changes
needed to fix Windows service in v9_16.

4 years agoMerge branch 'artem/reenable-some-tls-options-for-builds-without-doh' into 'main'
Artem Boldariev [Wed, 1 Sep 2021 08:39:31 +0000 (08:39 +0000)] 
Merge branch 'artem/reenable-some-tls-options-for-builds-without-doh' into 'main'

Dependencies regression: Re-enable some common TLS-related options for non-DoH builds, making DoT usable in them

See merge request isc-projects/bind9!5377

4 years agoRe-enable some TLS-related options for non-DoH builds
Artem Boldariev [Wed, 1 Sep 2021 07:38:01 +0000 (10:38 +0300)] 
Re-enable some TLS-related options for non-DoH builds

This commit fixes a regression introduced at
ea80bcc41c933efaf4572a36c961913a6e8a58b0. Some options, which are
common to both DoH and DoT were mistakenly disabled for non-DoH
builds. That is a mistake, because DoH does not imply DoT and vice
versa. Not fixing this would make DoT functionality not accessible
without DoH.

4 years agoMerge branch 'marka-changes' into 'main'
Mark Andrews [Wed, 1 Sep 2021 07:29:12 +0000 (07:29 +0000)] 
Merge branch 'marka-changes' into 'main'

add placeholder for [GL #2891]

See merge request isc-projects/bind9!5376

4 years agoadd placeholder for [GL #2891]
Mark Andrews [Wed, 1 Sep 2021 07:25:38 +0000 (17:25 +1000)] 
add placeholder for [GL #2891]

4 years agoMerge branch '2860-fix-nodoh-build' into 'main'
Artem Boldariev [Tue, 31 Aug 2021 13:41:10 +0000 (13:41 +0000)] 
Merge branch '2860-fix-nodoh-build' into 'main'

Fix building BIND without DoH support

Closes #2860

See merge request isc-projects/bind9!5372

4 years agoFix building BIND without DoH support
Artem Boldariev [Tue, 31 Aug 2021 11:06:51 +0000 (14:06 +0300)] 
Fix building BIND without DoH support

The body of the listenelt_http() function was not properly wrapped in
ifdef ... endif, leading to build failures with DoH disabled.

4 years agoMerge branch '1944-primary-secondary' into 'main'
Evan Hunt [Mon, 30 Aug 2021 18:30:22 +0000 (18:30 +0000)] 
Merge branch '1944-primary-secondary' into 'main'

update to primary/secondary terminology internally

Closes #1944

See merge request isc-projects/bind9!5366

4 years agoCHANGES
Evan Hunt [Thu, 26 Aug 2021 06:06:27 +0000 (23:06 -0700)] 
CHANGES

4 years agoswitch to primary/secondary in config.c
Evan Hunt [Thu, 26 Aug 2021 05:58:05 +0000 (22:58 -0700)] 
switch to primary/secondary in config.c

some of the built-in configuration was still using outdated terms.

4 years agouse "primary" and "secondary" in statschannel output
Evan Hunt [Thu, 26 Aug 2021 05:33:52 +0000 (22:33 -0700)] 
use "primary" and "secondary" in statschannel output

zone statistics were still using the old terminology. NOTE: this
change may affect scripts that parse statistics output.

4 years agochange CFG_ZONE_MASTER and CFG_ZONE_SLAVE
Evan Hunt [Thu, 26 Aug 2021 05:31:18 +0000 (22:31 -0700)] 
change CFG_ZONE_MASTER and CFG_ZONE_SLAVE

these values have been renamed as CFG_ZONE_PRIMARY and
CFG_ZONE_SECONDARY.

4 years agorename dns_zone_master and dns_zone_slave
Evan Hunt [Thu, 26 Aug 2021 05:29:25 +0000 (22:29 -0700)] 
rename dns_zone_master and dns_zone_slave

dns_zone_master and dns_zone_slave are renamed as dns_zone_primary
and dns_zone_secondary.

4 years agoMerge branch '2856-CVE-2021-25218-regression-test' into 'main'
Petr Špaček [Mon, 30 Aug 2021 15:30:26 +0000 (15:30 +0000)] 
Merge branch '2856-CVE-2021-25218-regression-test' into 'main'

Add a regression test in the RRL system test

See merge request isc-projects/bind9!5360

4 years agoLower loopback MTU size on other unix systems as well
Petr Špaček [Wed, 25 Aug 2021 12:58:46 +0000 (14:58 +0200)] 
Lower loopback MTU size on other unix systems as well

This change should cover recent versions of:
Solaris, illumos, OpenBSD, FreeBSD, Dragonfly BSD, NetBSD.

4 years agoAdd a regression test in the RRL system test
Evan Hunt [Wed, 28 Jul 2021 00:55:08 +0000 (17:55 -0700)] 
Add a regression test in the RRL system test

This commit modifies the MTU of the loopback interface on
Linux systems to 1500, so that oversized UDP packets can
trigger EMSGSIZE errors, and tests that named handles
such errors correctly.

Note that the loopback MTU size has not yet been modified
for other platforms.

4 years agoMerge branch '2837-placeholder' into 'main'
Ondřej Surý [Mon, 30 Aug 2021 09:17:35 +0000 (09:17 +0000)] 
Merge branch '2837-placeholder' into 'main'

Add CHANGES placeholder for [GL #2837]

See merge request isc-projects/bind9!5369

4 years agoAdd CHANGES placeholder for [GL #2837]
Ondřej Surý [Mon, 30 Aug 2021 09:14:07 +0000 (11:14 +0200)] 
Add CHANGES placeholder for [GL #2837]

4 years agoMerge branch '2860-generate-correct-uris-for-doh-in-dig' into 'main'
Artem Boldariev [Mon, 30 Aug 2021 07:52:29 +0000 (07:52 +0000)] 
Merge branch '2860-generate-correct-uris-for-doh-in-dig' into 'main'

Unify DoH URI making throughout the codebase

Closes #2861 and #2860

See merge request isc-projects/bind9!5325

4 years agoAdd a CHANGES entry [GL #2860]
Artem Boldariev [Thu, 12 Aug 2021 11:45:03 +0000 (14:45 +0300)] 
Add a CHANGES entry [GL #2860]

Mention in the CHANGES file that the dig now can query IPv6 addresses
via DoH.

4 years agoReplace multiple /dns-query constants with a global one
Artem Boldariev [Thu, 12 Aug 2021 11:56:34 +0000 (14:56 +0300)] 
Replace multiple /dns-query constants with a global one

This commit replaces the constants defining /dns-query, the default
DoH endpoint, with a global definition.

4 years agoExtend the doth system test with IPv6 support [GL #2861]
Artem Boldariev [Thu, 12 Aug 2021 09:42:13 +0000 (12:42 +0300)] 
Extend the doth system test with IPv6 support [GL #2861]

This commit ensures that DoH (and DoT) functionality works well via
IPv6 as well.

The changes were made because it turned out that dig could not make
DoH queries against an IPv6 IP address. These tests ensure that such a
bug will not remain unnoticed.

The commit also increases the servers' startup timeout to 25 seconds
because the initial timeout of 14 seconds was too short to generate
(!) eight 4096 bit ephemeral RSA certificates on a heavily loaded CI
runner in some pipeline runs.

4 years agoMake dig generate DoH URI using isc_nm_http_makeuri()
Artem Boldariev [Thu, 12 Aug 2021 07:18:26 +0000 (10:18 +0300)] 
Make dig generate DoH URI using isc_nm_http_makeuri()

This commit replaces ad-hoc code for DoH connect URI construction with
isc_nm_http_makeuri(), making it handle IPv6 adresses properly (among
other things).

4 years agoUnify DoH URI making throughout the codebase
Artem Boldariev [Thu, 12 Aug 2021 07:14:30 +0000 (10:14 +0300)] 
Unify DoH URI making throughout the codebase

This commit adds new function isc_nm_http_makeuri() which is supposed
to unify DoH URI construction throughout the codebase.

It handles IPv6 addresses, hostnames, and IPv6 addresses given as
hostnames properly, and replaces similar ad-hoc code in the codebase.

4 years agoMerge branch 'ondrej/remove-lib_isc_register-function' into 'main'
Ondřej Surý [Mon, 30 Aug 2021 07:20:03 +0000 (07:20 +0000)] 
Merge branch 'ondrej/remove-lib_isc_register-function' into 'main'

Remove support for external applications to register libisc

See merge request isc-projects/bind9!2420

4 years agoAdd CHANGES note for [GL !2420]
Evan Hunt [Thu, 12 Aug 2021 17:51:28 +0000 (10:51 -0700)] 
Add CHANGES note for [GL !2420]

4 years agoclean up dns_client API
Evan Hunt [Thu, 12 Aug 2021 20:51:47 +0000 (13:51 -0700)] 
clean up dns_client API

- removed unused functions
- changed some public functions to static that are never called
  from outside client.c
- removed unused types and function prototypes
- renamed dns_client_destroy() to dns_client_detach()

4 years agoRemove support for external applications to register libisc
Ondřej Surý [Tue, 1 Oct 2019 07:47:19 +0000 (09:47 +0200)] 
Remove support for external applications to register libisc

The previous versions of BIND 9 exported its internal libraries so that
they can be used by third-party applications more easily.  Certain
library functions were altered from specific BIND-only behavior to more
generic behavior when used by other applications.

This commit removes the function isc_lib_register() that was used by
external applications to enable the functionality.

4 years agoMerge branch '2872-fix-map-zonefile-version-number' into 'main'
Evan Hunt [Sat, 28 Aug 2021 14:34:45 +0000 (14:34 +0000)] 
Merge branch '2872-fix-map-zonefile-version-number' into 'main'

Fix crash while loading map zone files generated by BIND >= 9.17.0 && <= 9.17.16

Closes #2872

See merge request isc-projects/bind9!5345

4 years agoCHANGES, release note
Evan Hunt [Thu, 26 Aug 2021 18:22:44 +0000 (11:22 -0700)] 
CHANGES, release note

4 years agoexpand map file documentation
Evan Hunt [Thu, 26 Aug 2021 18:57:51 +0000 (11:57 -0700)] 
expand map file documentation

discuss map file compatibility issues in more detail.

4 years agoincrease MAPAPI
Petr Špaček [Thu, 19 Aug 2021 17:54:44 +0000 (19:54 +0200)] 
increase MAPAPI

bump the map zonefile version number to avoid an assertion
failure when loading map files from versions of BIND prior to
the most recent change to the in-memory structure of zone
databases.

4 years agoMerge branch '1927-fix-keepalive' into 'main'
Evan Hunt [Fri, 27 Aug 2021 19:55:47 +0000 (19:55 +0000)] 
Merge branch '1927-fix-keepalive' into 'main'

Resolve "keepalive appears to be unused"

Closes #1927

See merge request isc-projects/bind9!4348

4 years agoCHANGES
Evan Hunt [Fri, 11 Jun 2021 02:29:23 +0000 (19:29 -0700)] 
CHANGES

4 years agoadd a test of the keepalive timeout
Evan Hunt [Thu, 15 Jul 2021 06:15:15 +0000 (23:15 -0700)] 
add a test of the keepalive timeout

test server now has tcp-idle-timeout set to 5 seconds and
tcp-keepalive-timeout set to 7, so queries that follow a 6-second sleep
should either succeed or fail depending on whether the keepalive option
was sent.

4 years agoreplace per-protocol keepalive functions with a common one
Evan Hunt [Thu, 15 Jul 2021 04:12:37 +0000 (21:12 -0700)] 
replace per-protocol keepalive functions with a common one

this commit removes isc__nm_tcpdns_keepalive() and
isc__nm_tlsdns_keepalive(); keepalive for these protocols and
for TCP will now be set directly from isc_nmhandle_keepalive().

protocols that have an underlying TCP socket (i.e., TLS stream
and HTTP), now have protocol-specific routines, called by
isc_nmhandle_keeaplive(), to set the keepalive value on the
underlying socket.

4 years agoenable keepalive when the keepalive EDNS option is seen
Evan Hunt [Tue, 3 Nov 2020 02:33:20 +0000 (18:33 -0800)] 
enable keepalive when the keepalive EDNS option is seen

previously, receiving a keepalive option had no effect on how
long named would keep the connection open; there was a place to
configure the keepalive timeout but it was never used. this commit
corrects that.

this also fixes an error in isc__nm_{tcp,tls}dns_keepalive()
in which the sense of a REQUIRE test was reversed; previously this
error had not been noticed because the functions were not being
used.

4 years agocleanup netmgr-int.h
Evan Hunt [Tue, 3 Nov 2020 02:33:20 +0000 (18:33 -0800)] 
cleanup netmgr-int.h

- fix some duplicated and out-of-order prototypes declared in
  netmgr-int.h
- rename isc_nm_tcpdns_keepalive to isc__nm_tcpdns_keepalive as
  it's for internal use

4 years agoMerge branch '2858-fix-a-crash-when-closing-http-socket-with-unused-http-session...
Artem Boldariev [Fri, 27 Aug 2021 09:38:30 +0000 (09:38 +0000)] 
Merge branch '2858-fix-a-crash-when-closing-http-socket-with-unused-http-session' into 'main'

DoH: Fix a crash (in dig) when closing an HTTP socket with an unused HTTP/2 session

Closes #2858

See merge request isc-projects/bind9!5319

4 years agoAdd changes for [GL #2858]
Artem Boldariev [Tue, 10 Aug 2021 14:10:30 +0000 (17:10 +0300)] 
Add changes for [GL #2858]

This commit adds information about the fix for the issue #2858 to the
CHANGES file.

4 years agoFix a crash (in dig) when closing HTTP socket with unused session
Artem Boldariev [Tue, 10 Aug 2021 14:02:19 +0000 (17:02 +0300)] 
Fix a crash (in dig) when closing HTTP socket with unused session

This commit fixes a crash (caused by an assert) when closing an HTTP/2
socket with unused HTTP/2 session.

4 years agoMerge branch '1805-save-failed-build-artifacts' into 'main'
Mark Andrews [Thu, 26 Aug 2021 03:55:28 +0000 (03:55 +0000)] 
Merge branch '1805-save-failed-build-artifacts' into 'main'

Resolve "Save failed build artifacts."

Closes #1805

See merge request isc-projects/bind9!3458

4 years agoalways save build artifacts
Mark Andrews [Thu, 30 Apr 2020 07:15:41 +0000 (17:15 +1000)] 
always save build artifacts

4 years agoMerge branch '2880-timing-issues-with-rndc-system-test' into 'main'
Mark Andrews [Thu, 26 Aug 2021 03:16:21 +0000 (03:16 +0000)] 
Merge branch '2880-timing-issues-with-rndc-system-test' into 'main'

Resolve "timing issues with rndc system test"

Closes #2880

See merge request isc-projects/bind9!5357

4 years agowait for post 'rndc freeze' writes to complete
Mark Andrews [Wed, 25 Aug 2021 03:01:17 +0000 (13:01 +1000)] 
wait for post 'rndc freeze' writes to complete

4 years agoMerge branch '331-further-refactoring-of-functions-in-lib-dns-zoneverify-c' into...
Evan Hunt [Wed, 25 Aug 2021 22:46:45 +0000 (22:46 +0000)] 
Merge branch '331-further-refactoring-of-functions-in-lib-dns-zoneverify-c' into 'main'

Resolve "Further refactoring of functions in lib/dns/zoneverify.c"

Closes #331

See merge request isc-projects/bind9!3718

4 years agoReplace literal 255 with a more descriptive macro name
Diego Fronza [Sat, 27 Jun 2020 19:59:41 +0000 (16:59 -0300)] 
Replace literal 255 with a more descriptive macro name

More details on thread:
https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/291#note_12186

4 years agoAvoid an empty block under if condition
Diego Fronza [Sat, 27 Jun 2020 19:37:23 +0000 (16:37 -0300)] 
Avoid an empty block under if condition

This commit doesn't change the logic flow from previous code, it only
makes the code more readable and consistent.

More details on thread:
https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/291#note_12185

4 years agoRemove redundant function 'newchain'
Diego Fronza [Fri, 26 Jun 2020 21:53:04 +0000 (18:53 -0300)] 
Remove redundant function 'newchain'

The removed function 'newchain(a, b)' was almost the same as calling
!chain_equal(a, b), varying only in the amount of data compared
in the non-fixed-length data portion of given chain nodes.

A third argument 'data_size' has been introduced into 'chain_equal'
function in order to allow it to know how many bytes to compare in the
variable-length data portion of the chain nodes.

A helper function 'chain_length(e)' has been introduced to allow
easy calculation of the total length of the non-fixed-length data part
of chain nodes.

Check the thread below for more details:
https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/291#note_12184

4 years agoUse sizeof instead of arbitrary number to iterate fixed size array
Diego Fronza [Thu, 18 Jun 2020 20:26:46 +0000 (17:26 -0300)] 
Use sizeof instead of arbitrary number to iterate fixed size array

More details on thread:
https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/291#note_12180

4 years agoInitialize buffers with { 0 } instead of memset
Diego Fronza [Thu, 18 Jun 2020 20:23:27 +0000 (17:23 -0300)] 
Initialize buffers with { 0 } instead of memset

More details on threads:
https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/291#note_12178
https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/291#note_12181

4 years agoMinor refactoring on function match_nsec3
Diego Fronza [Thu, 18 Jun 2020 19:49:40 +0000 (16:49 -0300)] 
Minor refactoring on function match_nsec3

The logic for matching a set of nsec3 objects against an nsec3param
object was moved to a specific function.

For more details check thread:
https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/291#note_12176

4 years agoMinor refactoring/cleanup
Diego Fronza [Thu, 18 Jun 2020 17:35:09 +0000 (14:35 -0300)] 
Minor refactoring/cleanup

This commit moves the warning message to the logical block where it
belongs better.

For more details check thread comment:
https://gitlab.isc.org/isc-projects/bind9/merge_requests/291#note_12167

4 years agoMerge branch '2875-doh-do-not-assume-headers-order' into 'main'
Artem Boldariev [Wed, 25 Aug 2021 08:02:27 +0000 (08:02 +0000)] 
Merge branch '2875-doh-do-not-assume-headers-order' into 'main'

Make no assumptions regarding HTTP headers processing order

Closes #2875

See merge request isc-projects/bind9!5350

4 years agoAdd an entry to CHANGES [GL #2875]
Artem Boldariev [Fri, 20 Aug 2021 10:51:02 +0000 (13:51 +0300)] 
Add an entry to CHANGES [GL #2875]

Mention that we now do not rely on HTTP headers processing order in
BIND anymore.

4 years agoMake no assumptions regarding HTTP headers processing order
Artem Boldariev [Fri, 20 Aug 2021 10:44:23 +0000 (13:44 +0300)] 
Make no assumptions regarding HTTP headers processing order

This commit changes the DoH code in such a way that it makes no
assumptions regarding which headers are expected to be processed
first. In particular, the code expected the :method: pseudo-header to
be processed early, which might not be true.

4 years agoMerge branch '2461-named-checkconf-fails-to-detect-illegal-key-names-in-primaries...
Mark Andrews [Wed, 25 Aug 2021 05:55:02 +0000 (05:55 +0000)] 
Merge branch '2461-named-checkconf-fails-to-detect-illegal-key-names-in-primaries-lists' into 'main'

Resolve "Named-checkconf fails to detect illegal key names in primaries lists"

Closes #2461

See merge request isc-projects/bind9!5314