]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
7 years agoMerge branch 'u/fanf2/man-dnssec-keygen-again' into 'master'
Mark Andrews [Thu, 14 Mar 2019 03:06:05 +0000 (23:06 -0400)] 
Merge branch 'u/fanf2/man-dnssec-keygen-again' into 'master'

A bit more cleanup in the dnssec-keygen manual

See merge request isc-projects/bind9!1678

7 years agoA bit more cleanup in the dnssec-keygen manual
Tony Finch [Wed, 13 Mar 2019 15:47:31 +0000 (15:47 +0000)] 
A bit more cleanup in the dnssec-keygen manual

Remove another remnant of shared secret HMAC-MD5 support.

Explain that with currently recommended setups DNSKEY records are
inserted automatically, but you can still use $INCLUDE in other cases.

7 years agoMerge branch 'placeholder' into 'master'
Mark Andrews [Thu, 14 Mar 2019 01:55:21 +0000 (21:55 -0400)] 
Merge branch 'placeholder' into 'master'

placeholder

See merge request isc-projects/bind9!1681

7 years agoplaceholder
Mark Andrews [Thu, 14 Mar 2019 01:53:18 +0000 (12:53 +1100)] 
placeholder

7 years agoMerge branch '936-missing-unlocks-in-sdlz-c' into 'master'
Mark Andrews [Wed, 13 Mar 2019 21:56:14 +0000 (17:56 -0400)] 
Merge branch '936-missing-unlocks-in-sdlz-c' into 'master'

Resolve "Missing unlocks in sdlz.c"

Closes #936

See merge request isc-projects/bind9!1677

7 years agoadd CHANGES
Mark Andrews [Wed, 13 Mar 2019 21:55:35 +0000 (08:55 +1100)] 
add CHANGES

7 years agoadd missing MAYBE_UNLOCK
Mark Andrews [Tue, 12 Mar 2019 23:51:56 +0000 (10:51 +1100)] 
add missing MAYBE_UNLOCK

7 years agoMerge branch '881-cleanup-ecs' into 'master'
Evan Hunt [Tue, 12 Mar 2019 20:56:26 +0000 (16:56 -0400)] 
Merge branch '881-cleanup-ecs' into 'master'

clean up ECS before reusing clients

Closes #881

See merge request isc-projects/bind9!1675

7 years agoCHANGES
Evan Hunt [Tue, 12 Mar 2019 20:38:06 +0000 (13:38 -0700)] 
CHANGES

7 years agoClean up client->ecs when we're done with the request.
Witold Kręcicki [Sun, 17 Feb 2019 19:32:07 +0000 (20:32 +0100)] 
Clean up client->ecs when we're done with the request.

7 years agoMerge branch '834-fix-race-in-fctx-cancel' into 'master'
Evan Hunt [Tue, 12 Mar 2019 18:35:57 +0000 (14:35 -0400)] 
Merge branch '834-fix-race-in-fctx-cancel' into 'master'

fix race in socket code

Closes #834

See merge request isc-projects/bind9!1671

7 years agoCHANGES
Witold Kręcicki [Tue, 12 Mar 2019 17:43:38 +0000 (18:43 +0100)] 
CHANGES

7 years agoFix a race in fctx_cancelquery.
Witold Kręcicki [Wed, 13 Feb 2019 10:10:31 +0000 (11:10 +0100)] 
Fix a race in fctx_cancelquery.

When sending an udp query (resquery_send) we first issue an asynchronous
isc_socket_connect and increment query->connects, then isc_socket_sendto2
and increment query->sends.
If we happen to cancel this query (fctx_cancelquery) we need to cancel
all operations we might have issued on this socket. If we are under very high
load the callback from isc_socket_connect (resquery_udpconnected) might have
not yet been fired. In this case we only cancel the CONNECT event on socket,
and ignore the SEND that's waiting there (as there is an `else if`).
Then we call dns_dispatch_removeresponse which kills the dispatcher socket
and calls isc_socket_close - but if system is under very high load, the send
we issued earlier might still not be complete - which triggers an assertion
because we're trying to close a socket that's still in use.

The fix is to always check if we have incomplete sends on the socket and cancel
them if we do.

7 years agoMerge branch 'michal/silence-a-perl-warning-output-by-stop.pl' into 'master'
Michał Kępień [Tue, 12 Mar 2019 08:04:12 +0000 (04:04 -0400)] 
Merge branch 'michal/silence-a-perl-warning-output-by-stop.pl' into 'master'

Silence a Perl warning output by stop.pl

See merge request isc-projects/bind9!1649

7 years agoSilence a Perl warning output by stop.pl
Michał Kępień [Tue, 12 Mar 2019 07:42:48 +0000 (08:42 +0100)] 
Silence a Perl warning output by stop.pl

On Unix systems, the CYGWIN environment variable is not set at all when
BIND system tests are run.  If a named instance crashes on shutdown or
otherwise fails to clean up its pidfile and the CYGWIN environment
variable is not set, stop.pl will print an uninitialized value warning
on standard error.  Prevent this by using defined().

7 years agoMerge branch 'ifconfig.sh-anywhere' into 'master'
Mark Andrews [Tue, 12 Mar 2019 03:08:52 +0000 (23:08 -0400)] 
Merge branch 'ifconfig.sh-anywhere' into 'master'

Allow ifconfig to be called from any directory

See merge request isc-projects/bind9!1563

7 years agoAllow ifconfig to be called from any directory
Petr Menšík [Mon, 25 Feb 2019 09:58:14 +0000 (10:58 +0100)] 
Allow ifconfig to be called from any directory

ifconfig.sh depends on config.guess for platform guessing. It uses it to
choose between ifconfig or ip tools to configure interfaces. If
system-wide automake script is installed and local was not found, use
platform guess. It should work well on mostly any sane platform. Still
prefers local guess, but passes when if cannot find it.

7 years agoMerge branch '928-stabilize-delzsk.example-zone-checks' into 'master'
Michał Kępień [Mon, 11 Mar 2019 12:28:13 +0000 (08:28 -0400)] 
Merge branch '928-stabilize-delzsk.example-zone-checks' into 'master'

Stabilize "delzsk.example" zone checks

See merge request isc-projects/bind9!1640

7 years agoStabilize "delzsk.example" zone checks
Michał Kępień [Mon, 11 Mar 2019 12:02:54 +0000 (13:02 +0100)] 
Stabilize "delzsk.example" zone checks

When a zone is converted from NSEC to NSEC3, the private record at zone
apex indicating that NSEC3 chain creation is in progress may be removed
during a different (later) zone_nsec3chain() call than the one which
adds the NSEC3PARAM record.  The "delzsk.example" zone check only waits
for the NSEC3PARAM record to start appearing in dig output while private
records at zone apex directly affect "rndc signing -list" output.  This
may trigger false positives for the "autosign" system test as the output
of the "rndc signing -list" command used for checking ZSK deletion
progress may contain extra lines which are not accounted for.  Ensure
the private record is removed from zone apex before triggering ZSK
deletion in the aforementioned check.

Also future-proof the ZSK deletion progress check by making it only look
at lines it should care about.

7 years agoMerge branch '129-dnssec-system-test-tweaks' into 'master'
Michał Kępień [Mon, 11 Mar 2019 12:02:06 +0000 (08:02 -0400)] 
Merge branch '129-dnssec-system-test-tweaks' into 'master'

"dnssec" system test tweaks

Closes #129

See merge request isc-projects/bind9!1545

7 years ago${ttl} must exist and be non null
Mark Andrews [Thu, 21 Feb 2019 00:14:54 +0000 (11:14 +1100)] 
${ttl} must exist and be non null

7 years agoMake ANSWER TTL capping checks stricter
Michał Kępień [Mon, 11 Mar 2019 11:04:42 +0000 (12:04 +0100)] 
Make ANSWER TTL capping checks stricter

For checks querying a named instance with "dnssec-accept-expired yes;"
set, authoritative responses have a TTL of 300 seconds.  Assuming empty
resolver cache, TTLs of RRsets in the ANSWER section of the first
response to a given query will always match their authoritative
counterparts.  Also note that for a DNSSEC-validating named resolver,
validated RRsets replace any existing non-validated RRsets with the same
owner name and type, e.g. cached from responses received while resolving
CD=1 queries.  Since TTL capping happens before a validated RRset is
inserted into the cache and RRSIG expiry time does not impose an upper
TTL bound when "dnssec-accept-expired yes;" is set and, as pointed out
above, the original TTLs of the relevant RRsets equal 300 seconds, the
RRsets in the ANSWER section of the responses to expiring.example/SOA
and expired.example/SOA queries sent with CD=0 should always be exactly
120 seconds, never a lower value.  Make the relevant TTL checks stricter
to reflect that.

7 years agoRelax ADDITIONAL TTL capping checks
Michał Kępień [Mon, 11 Mar 2019 11:04:42 +0000 (12:04 +0100)] 
Relax ADDITIONAL TTL capping checks

Always expecting a TTL of exactly 300 seconds for RRsets found in the
ADDITIONAL section of responses received for CD=1 queries sent during
TTL capping checks is too strict since these responses will contain
records cached from multiple DNS messages received during the resolution
process.

In responses to queries sent with CD=1, ns.expiring.example/A in the
ADDITIONAL section will come from a delegation returned by ns2 while the
ANSWER section will come from an authoritative answer returned by ns3.
If the queries to ns2 and ns3 happen at different Unix timestamps,
RRsets cached from the older response will have a different TTL by the
time they are returned to dig, triggering a false positive.

Allow a safety margin of 60 seconds for checks inspecting the ADDITIONAL
section of responses to queries sent with CD=1 to fix the issue.  A
safety margin this large is likely overkill, but it is used nevertheless
for consistency with similar safety margins used in other TTL capping
checks.

7 years agoFix message section checked in a TTL capping test
Michał Kępień [Mon, 11 Mar 2019 11:04:42 +0000 (12:04 +0100)] 
Fix message section checked in a TTL capping test

Commit c032c54dda2d75c0ec68017e1331bc9880c03ae1 inadvertently changed
the DNS message section inspected by one of the TTL capping checks from
ADDITIONAL to ANSWER, introducing a discrepancy between that check's
description and its actual meaning.  Revert to inspecting the ADDITIONAL
section in the aforementioned check.

7 years agoFix NTA-related races
Michał Kępień [Mon, 11 Mar 2019 11:04:42 +0000 (12:04 +0100)] 
Fix NTA-related races

Changes introduced by commit 6b8e4d6e695fc13b2d2a93437418a047b5adce81
were incomplete as not all time-sensitive checks were updated to match
revised "nta-lifetime" and "nta-recheck" values.  Prevent rare false
positives by updating all NTA-related checks so that they work reliably
with "nta-lifetime 12s;" and "nta-recheck 9s;".  Update comments as well
to prevent confusion.

7 years agoMerge branch '803-add-return-code-to-allow-dlz-s-allowzonexfr-to-fall-back-to-to...
Mark Andrews [Mon, 11 Mar 2019 03:42:17 +0000 (23:42 -0400)] 
Merge branch '803-add-return-code-to-allow-dlz-s-allowzonexfr-to-fall-back-to-to-the-view-s-allow-transfer-setting' into 'master'

Resolve "Add return code to allow dlz's allowzonexfr to fall back to to the view's allow-transfer setting."

Closes #803

See merge request isc-projects/bind9!1292

7 years agoCHANGES
Evan Hunt [Fri, 8 Mar 2019 07:30:30 +0000 (23:30 -0800)] 
CHANGES

7 years agotest the use of the view ACL in DLZ
Evan Hunt [Fri, 8 Mar 2019 06:55:16 +0000 (22:55 -0800)] 
test the use of the view ACL in DLZ

7 years agoallow dlz to signal that the view's transfer acl should be used
Mark Andrews [Wed, 2 Jan 2019 06:29:59 +0000 (17:29 +1100)] 
allow dlz to signal that the view's transfer acl should be used

7 years agoMerge branch 'ondrej/restore-flockfile-check' into 'master'
Ondřej Surý [Fri, 8 Mar 2019 20:34:16 +0000 (15:34 -0500)] 
Merge branch 'ondrej/restore-flockfile-check' into 'master'

Restore missing check for flockfile and getc_unlocked

See merge request isc-projects/bind9!1653

7 years agoRestore missing check for flockfile and getc_unlocked
Ondřej Surý [Thu, 7 Mar 2019 12:32:30 +0000 (13:32 +0100)] 
Restore missing check for flockfile and getc_unlocked

7 years agoMerge branch '4-use-autoconf-check-for-lfs-support' into 'master'
Ondřej Surý [Fri, 8 Mar 2019 20:14:57 +0000 (15:14 -0500)] 
Merge branch '4-use-autoconf-check-for-lfs-support' into 'master'

autoconf has native support for detecting LFS support

See merge request isc-projects/bind9!1652

7 years agoEnable LFS using standard autoconf macros
Ondřej Surý [Thu, 7 Mar 2019 12:32:30 +0000 (13:32 +0100)] 
Enable LFS using standard autoconf macros

7 years agoMerge branch '4-set-crlf-in-all-vcxproj-files' into 'master'
Ondřej Surý [Fri, 8 Mar 2019 17:05:42 +0000 (12:05 -0500)] 
Merge branch '4-set-crlf-in-all-vcxproj-files' into 'master'

Set crlf in all *.vcxproj.* files

See merge request isc-projects/bind9!1651

7 years agoConvert *.vcxproj.user to CRLF line endings
Ondřej Surý [Fri, 8 Mar 2019 17:01:48 +0000 (18:01 +0100)] 
Convert *.vcxproj.user to CRLF line endings

7 years agoSet crlf in all *.vcxproj.* files
Ondřej Surý [Tue, 30 Oct 2018 10:40:34 +0000 (11:40 +0100)] 
Set crlf in all *.vcxproj.* files

7 years agoMerge branch '4-autoinclude-config.h' into 'master'
Ondřej Surý [Fri, 8 Mar 2019 16:39:20 +0000 (11:39 -0500)] 
Merge branch '4-autoinclude-config.h' into 'master'

Use compiler directive to include config.h as a first file

See merge request isc-projects/bind9!1650

7 years agoUpdate dev documentation to explicitly mention that #include <config.h> should not...
Ondřej Surý [Fri, 8 Mar 2019 14:38:07 +0000 (15:38 +0100)] 
Update dev documentation to explicitly mention that #include <config.h> should not be used

7 years agoUse ForcedIncludeFiles directive to include config.h everywhere automatically
Ondřej Surý [Fri, 8 Mar 2019 14:13:31 +0000 (15:13 +0100)] 
Use ForcedIncludeFiles directive to include config.h everywhere automatically

7 years agoDon't generate #include <config.h> line from mksymtbl.pl
Ondřej Surý [Fri, 8 Mar 2019 13:56:56 +0000 (14:56 +0100)] 
Don't generate #include <config.h> line from mksymtbl.pl

7 years agoRemove config.h check from util/checklibs.sh
Ondřej Surý [Fri, 8 Mar 2019 13:56:16 +0000 (14:56 +0100)] 
Remove config.h check from util/checklibs.sh

7 years agoRemove explicit '#include <config.h>' from the header files (the include should not...
Ondřej Surý [Fri, 8 Mar 2019 13:56:00 +0000 (14:56 +0100)] 
Remove explicit '#include <config.h>' from the header files (the include should not have been there in the first place)

7 years agoUse coccinelle to remove explicit '#include <config.h>' from the source files
Ondřej Surý [Fri, 8 Mar 2019 13:52:45 +0000 (14:52 +0100)] 
Use coccinelle to remove explicit '#include <config.h>' from the source files

7 years agoAdd semantic patch to remove occurences of '#include <config.h>'
Ondřej Surý [Fri, 8 Mar 2019 13:46:29 +0000 (14:46 +0100)] 
Add semantic patch to remove occurences of '#include <config.h>'

7 years agoUse -include directive to always include config.h
Ondřej Surý [Fri, 8 Mar 2019 13:33:49 +0000 (14:33 +0100)] 
Use -include directive to always include config.h

7 years agoMerge branch 'michal/fix-regex-used-for-mangling-druz-dnskey' into 'master'
Michał Kępień [Fri, 8 Mar 2019 13:08:55 +0000 (08:08 -0500)] 
Merge branch 'michal/fix-regex-used-for-mangling-druz-dnskey' into 'master'

Fix regex used for mangling druz/DNSKEY (in the "dlv" system test)

See merge request isc-projects/bind9!1641

7 years agoFix regex used for mangling druz/DNSKEY
Michał Kępień [Fri, 8 Mar 2019 12:47:13 +0000 (13:47 +0100)] 
Fix regex used for mangling druz/DNSKEY

During "dlv" system test setup, the "sed" regex used for mangling the
DNSKEY RRset for the "druz" zone does not include the plus sign ("+"),
which may:

  - cause the replacement to happen near the end of DNSKEY RDATA, which
    can cause the latter to become an invalid Base64 string,

  - prevent the replacement from being performed altogether.

Both cases prevent the "dlv" system test from behaving as intended and
may trigger false positives.  Add the missing character to the
aforementioned regex to ensure the replacement is always performed on
bytes 10-25 of DNSKEY RDATA.

7 years agoMerge branch '925-make-delv-use-os-supplied-ephemeral-port-range' into 'master'
Michał Kępień [Fri, 8 Mar 2019 12:46:07 +0000 (07:46 -0500)] 
Merge branch '925-make-delv-use-os-supplied-ephemeral-port-range' into 'master'

Make delv use OS-supplied ephemeral port range

Closes #925

See merge request isc-projects/bind9!1611

7 years agoAdd CHANGES entry
Michał Kępień [Fri, 8 Mar 2019 12:13:32 +0000 (13:13 +0100)] 
Add CHANGES entry

5180. [bug] delv now honors the operating system's preferred
ephemeral port range. [GL #925]

7 years agoMake delv use OS-supplied ephemeral port range
Michał Kępień [Fri, 8 Mar 2019 12:13:32 +0000 (13:13 +0100)] 
Make delv use OS-supplied ephemeral port range

Make delv honor the operating system's preferred ephemeral port range
instead of always using the default 1024-65535 range for outgoing
messages.

7 years agoMerge branch 'u/fanf2/sectypes' into 'master'
Mark Andrews [Fri, 8 Mar 2019 08:26:18 +0000 (03:26 -0500)] 
Merge branch 'u/fanf2/sectypes' into 'master'

cleanup: use dns_secalg_t and dns_dsdigest_t where appropriate

See merge request isc-projects/bind9!1498

7 years agocleanup: use dns_secalg_t and dns_dsdigest_t where appropriate
Tony Finch [Fri, 8 Feb 2019 17:54:56 +0000 (17:54 +0000)] 
cleanup: use dns_secalg_t and dns_dsdigest_t where appropriate

Use them in structs for various rdata types where they are missing.
This doesn't change the structs since we are replacing explicit
uint8_t field types with aliases for uint8_t.

Use dns_dsdigest_t in library function arguments.

Improve dnssec-cds with these more specific types.

7 years agoMerge branch 'marka-define-path-max' into 'master'
Mark Andrews [Fri, 8 Mar 2019 07:21:46 +0000 (02:21 -0500)] 
Merge branch 'marka-define-path-max' into 'master'

#include <limits.h> for PATH_MAX, define if not found

See merge request isc-projects/bind9!1635

7 years ago#include <limits.h> for PATH_MAX, define if not found
Mark Andrews [Fri, 8 Mar 2019 06:15:01 +0000 (17:15 +1100)] 
#include <limits.h> for PATH_MAX, define if not found

7 years agoMerge branch 'each-silence-warning' into 'master'
Evan Hunt [Fri, 8 Mar 2019 05:46:17 +0000 (00:46 -0500)] 
Merge branch 'each-silence-warning' into 'master'

silence a warning about potential snprintf overrun

See merge request isc-projects/bind9!1558

7 years agosilence a warning about potential snprintf overrun
Evan Hunt [Thu, 21 Feb 2019 19:21:36 +0000 (11:21 -0800)] 
silence a warning about potential snprintf overrun

7 years agoMerge branch '902-hang-when-unexpected-errno-encountered-during-log-rename' into...
Evan Hunt [Fri, 8 Mar 2019 05:22:35 +0000 (00:22 -0500)] 
Merge branch '902-hang-when-unexpected-errno-encountered-during-log-rename' into 'master'

Resolve "Hang when unexpected errno encountered during log rename"

Closes #902

See merge request isc-projects/bind9!1567

7 years agoHandle EDQUOT and ENOSPC errors
Mark Andrews [Tue, 26 Feb 2019 02:01:53 +0000 (13:01 +1100)] 
Handle EDQUOT and ENOSPC errors

7 years agoMerge branch '884-patches-to-review-3' into 'master'
Evan Hunt [Fri, 8 Mar 2019 04:18:49 +0000 (23:18 -0500)] 
Merge branch '884-patches-to-review-3' into 'master'

fix the use of dns_wildcardname as an optimisation in DLZ

Closes #884

See merge request isc-projects/bind9!1532

7 years agofix the use of dns_wildcardname as an optimisation in DLZ
Mark Andrews [Mon, 18 Feb 2019 01:57:35 +0000 (12:57 +1100)] 
fix the use of dns_wildcardname as an optimisation in DLZ

7 years agoMerge branch 'ckb-statistics-test-nit' into 'master'
Evan Hunt [Fri, 8 Mar 2019 01:32:49 +0000 (20:32 -0500)] 
Merge branch 'ckb-statistics-test-nit' into 'master'

the wrong variable was used to count the test cases in one place.

See merge request isc-projects/bind9!1625

7 years agothe wrong variable was used to count the test cases in one place.
Curtis Blackburn [Fri, 8 Mar 2019 00:09:10 +0000 (16:09 -0800)] 
the wrong variable was used to count the test cases in one place.

7 years agoMerge branch '927-teach-clang-that-_fail-does-not-return' into 'master'
Mark Andrews [Fri, 8 Mar 2019 01:11:53 +0000 (20:11 -0500)] 
Merge branch '927-teach-clang-that-_fail-does-not-return' into 'master'

Resolve "teach clang that _fail() does not return."

Closes #927

See merge request isc-projects/bind9!1621

7 years agoadd noreturn attribute
Mark Andrews [Thu, 7 Mar 2019 05:45:04 +0000 (16:45 +1100)] 
add noreturn attribute

7 years agoMerge branch '865-option-to-disable-information-leak-on-rpz-rewrites-isc-support...
Evan Hunt [Thu, 7 Mar 2019 05:16:42 +0000 (00:16 -0500)] 
Merge branch '865-option-to-disable-information-leak-on-rpz-rewrites-isc-support-14178' into 'master'

Resolve "Option to disable information leak on RPZ rewrites [ISC-support #14178]"

Closes #865

See merge request isc-projects/bind9!1514

7 years agoCHANGES, release note
Mark Andrews [Mon, 18 Feb 2019 05:57:45 +0000 (16:57 +1100)] 
CHANGES, release note

7 years agodisable a previously broken test under dnsrps
Evan Hunt [Thu, 7 Mar 2019 04:48:30 +0000 (20:48 -0800)] 
disable a previously broken test under dnsrps

7 years agoadd the ability to control whether SOA records are added response-policy modified...
Mark Andrews [Thu, 14 Feb 2019 06:50:10 +0000 (17:50 +1100)] 
add the ability to control whether SOA records are added response-policy modified answers

7 years agoMerge branch '926-statschannel-system-tests-fails-json-only-no-libxml' into 'master'
Mark Andrews [Wed, 6 Mar 2019 23:42:46 +0000 (18:42 -0500)] 
Merge branch '926-statschannel-system-tests-fails-json-only-no-libxml' into 'master'

Resolve "statschannel system tests fails json only (no libxml)"

Closes #926

See merge request isc-projects/bind9!1614

7 years agoadd CHANGES
Mark Andrews [Wed, 6 Mar 2019 23:25:15 +0000 (10:25 +1100)] 
add CHANGES

7 years agoremove dependancy on libxml
Mark Andrews [Wed, 6 Mar 2019 23:09:33 +0000 (10:09 +1100)] 
remove dependancy on libxml

7 years agoMerge branch '882-zone-data-cannot-be-loaded-with-dnssec-coverage' into 'master'
Evan Hunt [Wed, 6 Mar 2019 22:35:05 +0000 (17:35 -0500)] 
Merge branch '882-zone-data-cannot-be-loaded-with-dnssec-coverage' into 'master'

Resolve "Zone data cannot be loaded with dnssec-coverage"

Closes #882

See merge request isc-projects/bind9!1522

7 years agoadd CHANGES
Evan Hunt [Wed, 6 Mar 2019 22:22:58 +0000 (14:22 -0800)] 
add CHANGES

7 years agoexplicitly convert byte to string
Mark Andrews [Mon, 18 Feb 2019 05:36:59 +0000 (16:36 +1100)] 
explicitly convert byte to string

7 years agoMerge branch 'u/fanf2/man-dnssec-keygen' into 'master'
Evan Hunt [Wed, 6 Mar 2019 22:13:38 +0000 (17:13 -0500)] 
Merge branch 'u/fanf2/man-dnssec-keygen' into 'master'

cleanup dnssec-keygen manual page

See merge request isc-projects/bind9!1557

7 years agocleanup dnssec-keygen manual page
Tony Finch [Thu, 21 Feb 2019 18:54:16 +0000 (18:54 +0000)] 
cleanup dnssec-keygen manual page

Alphabetize options and synopsis; remove spurious -z from synopsis;
remove remnants of deprecated -k option; remove mention of long-gone
TSIG support; refer to -T KEY in options that are only relevant to
pre-RFC3755 DNSSEC; remove unnecessary -n ZONE from the example, and
add a -f KSK example.

7 years agoMerge branch '874-fix-race-in-socket-code' into 'master'
Evan Hunt [Wed, 6 Mar 2019 21:19:10 +0000 (16:19 -0500)] 
Merge branch '874-fix-race-in-socket-code' into 'master'

Fix a race in socket code

Closes #874

See merge request isc-projects/bind9!1590

7 years agoCHANGES
Evan Hunt [Wed, 6 Mar 2019 01:55:57 +0000 (17:55 -0800)] 
CHANGES

7 years agoFix a race in socket code when internal_{accept, send, receive} is called
Witold Kręcicki [Fri, 15 Feb 2019 10:28:58 +0000 (11:28 +0100)] 
Fix a race in socket code when internal_{accept, send, receive} is called
from event loop on an socket and, in the meantime, someone has closed this
socket.

7 years agoMerge branch 'michal/log-plugin-unloading-at-debug-level' into 'master'
Evan Hunt [Wed, 6 Mar 2019 20:30:40 +0000 (15:30 -0500)] 
Merge branch 'michal/log-plugin-unloading-at-debug-level' into 'master'

Log plugin unloading at debug level

See merge request isc-projects/bind9!1608

7 years agoLog plugin unloading at debug level
Michał Kępień [Wed, 6 Mar 2019 07:31:07 +0000 (08:31 +0100)] 
Log plugin unloading at debug level

During server reconfiguration, plugin instances set up for the old views
are unloaded very close to the end of the whole process, after new
plugin instances are set up.  As the log message announcing plugin
unloading is emitted at the default "info" level, the user might be
misled into thinking that it is the new plugin instances that are being
unloaded for some reason, particularly because all other messages logged
at the "info" level around the same time inform about setting things up
rather than tearing them down.  Since no distinction is currently made
between destroying a view due to reconfiguration and due to a shutdown
in progress, there is no easy way to vary the contents of the log
message depending on circumstances.  Since this message is not a
particularly critical one, demote it to debug level to prevent
confusion.

7 years agoMerge branch '905-make-nsupdate-use-os-supplied-ephemeral-port-range' into 'master'
Michał Kępień [Wed, 6 Mar 2019 13:27:39 +0000 (08:27 -0500)] 
Merge branch '905-make-nsupdate-use-os-supplied-ephemeral-port-range' into 'master'

Make nsupdate use OS-supplied ephemeral port range

Closes #905

See merge request isc-projects/bind9!1569

7 years agoAdd CHANGES entry
Michał Kępień [Wed, 6 Mar 2019 13:01:24 +0000 (14:01 +0100)] 
Add CHANGES entry

5172. [bug] nsupdate now honors the operating system's preferred
ephemeral port range. [GL #905]

7 years agoMake nsupdate use OS-supplied ephemeral port range
Michał Kępień [Wed, 6 Mar 2019 13:01:24 +0000 (14:01 +0100)] 
Make nsupdate use OS-supplied ephemeral port range

Make nsupdate honor the operating system's preferred ephemeral port
range instead of always using the default 1024-65535 range for outgoing
messages.

7 years agoMerge branch '878-install-named-plugins-into-a-separate-directory' into 'master'
Evan Hunt [Wed, 6 Mar 2019 00:44:49 +0000 (19:44 -0500)] 
Merge branch '878-install-named-plugins-into-a-separate-directory' into 'master'

Install named plugins into a separate directory

Closes #878

See merge request isc-projects/bind9!1512

7 years agoAdd CHANGES entry
Michał Kępień [Tue, 12 Feb 2019 14:59:54 +0000 (15:59 +0100)] 
Add CHANGES entry

5161. [func] named plugins are now installed into a separate
directory.  Supplying a filename (a string without path
separators) in a "plugin" configuration stanza now
causes named to look for that plugin in that directory.
[GL #878]

7 years agoAdd -c to usage message for named-checkconf
Michał Kępień [Tue, 12 Feb 2019 14:59:54 +0000 (15:59 +0100)] 
Add -c to usage message for named-checkconf

Add the -c command line option to the usage message for named-checkconf
as it is not present there despite being documented.

7 years agoLook for named plugins in ${libdir}/named
Michał Kępień [Tue, 12 Feb 2019 14:59:54 +0000 (15:59 +0100)] 
Look for named plugins in ${libdir}/named

When the "library" part of a "plugin" configuration stanza does not
contain at least one path separator, treat it as a filename and assume
it is a name of a shared object present in the named plugin installation
directory.  Absolute and relative paths can still be used and will be
used verbatim.  Get the full path to a plugin before attempting to
check/register it so that all relevant log messages include the same
plugin path (apart from the one logged when the full path cannot be
determined).

7 years agoAdd ns_plugin_expandpath()
Michał Kępień [Tue, 12 Feb 2019 14:59:54 +0000 (15:59 +0100)] 
Add ns_plugin_expandpath()

Implement a helper function which, given an input string:

  - copies it verbatim if it contains at least one path separator,
  - prepends the named plugin installation directory to it otherwise.

This function will allow configuration parsing code to conveniently
determine the full path to a plugin module given either a path or a
filename.

While other, simpler ways exist for making sure filenames passed to
dlopen() cause the latter to look for shared objects in a specific
directory, they are very platform-specific.  Using full paths is thus
likely the most portable and reliable solution.

Also added unit tests for ns_plugin_expandpath() to ensure it behaves
as expected for absolute paths, relative paths, and filenames, for
various target buffer sizes.

(Note: plugins share a directory with named on Windows; there is no
default plugin path. Therefore the source path is copied to the
destination path with no modification.)

7 years agoInstall named plugins into a separate directory
Michał Kępień [Tue, 12 Feb 2019 14:59:54 +0000 (15:59 +0100)] 
Install named plugins into a separate directory

Installing named plugins into ${libdir} clutters the latter and is not
in line with common filesystem conventions.  Instead, install named
plugins into a separate directory, ${libdir}/named.

7 years agoMerge branch '909-add-explicit-link-check-for-libatomic' into 'master'
Evan Hunt [Tue, 5 Mar 2019 23:17:26 +0000 (18:17 -0500)] 
Merge branch '909-add-explicit-link-check-for-libatomic' into 'master'

Add explicit check for libatomic to fix configure step on NetBSD

Closes #909

See merge request isc-projects/bind9!1586

7 years agoAdd information about NetBSD 6 compilation on i386
Ondřej Surý [Fri, 1 Mar 2019 14:19:22 +0000 (15:19 +0100)] 
Add information about NetBSD 6 compilation on i386

7 years agoAdd explicit check for libatomic
Ondřej Surý [Fri, 1 Mar 2019 09:10:17 +0000 (10:10 +0100)] 
Add explicit check for libatomic

7 years agoMerge branch '884-patches-to-review-4' into 'master'
Evan Hunt [Tue, 5 Mar 2019 22:18:47 +0000 (17:18 -0500)] 
Merge branch '884-patches-to-review-4' into 'master'

dlz filesystem driver failed to properly detect period at end of filename.

Closes #884

See merge request isc-projects/bind9!1533

7 years agoproperly detect period as last character in filename
Mark Andrews [Mon, 18 Feb 2019 01:40:11 +0000 (12:40 +1100)] 
properly detect period as last character in filename

7 years agoMerge branch 'michal/disable-servfail-cache-for-ns5-in-the-mkeys-system-test' into...
Evan Hunt [Tue, 5 Mar 2019 21:23:59 +0000 (16:23 -0500)] 
Merge branch 'michal/disable-servfail-cache-for-ns5-in-the-mkeys-system-test' into 'master'

Disable SERVFAIL cache for ns5 in the "mkeys" system test

See merge request isc-projects/bind9!1585

7 years agoDisable SERVFAIL cache for ns5 in the "mkeys" system test
Michał Kępień [Fri, 1 Mar 2019 06:57:45 +0000 (07:57 +0100)] 
Disable SERVFAIL cache for ns5 in the "mkeys" system test

The "check key refreshes are resumed after root servers become
available" check may trigger a false positive for the "mkeys" system
test if the second example/TXT query sent by dig is received by ns5 less
than a second after it receives a REFUSED response to the upstream query
it sends to ns1 in order to resolve the first example/TXT query sent by
dig.  Since that REFUSED response from ns1 causes ns5 to return a
SERVFAIL answer to dig, example/TXT is added to the SERVFAIL cache,
which is enabled by default with a TTL of 1 second.  This in turn may
cause ns5 to return a cached SERVFAIL response to the second example/TXT
query sent by dig, i.e. make ns5 not perform full query processing as
expected by the check.

Since the primary purpose of the check in question is to ensure that key
refreshes are resumed once initially unavailable root servers become
available, the optimal solution appears to be disabling SERVFAIL cache
for ns5 as doing that still allows the check to fulfill its purpose and
it is arguably more prudent than always sleeping for 1 second.

7 years agoMerge branch '889-improve-clang-cmocka-interaction' into 'master'
Evan Hunt [Tue, 5 Mar 2019 18:34:30 +0000 (13:34 -0500)] 
Merge branch '889-improve-clang-cmocka-interaction' into 'master'

Resolve "Improve clang/cmocka interaction."

Closes #889

See merge request isc-projects/bind9!1542

7 years agoimprove clang / cmocka integration
Mark Andrews [Wed, 20 Feb 2019 00:13:17 +0000 (11:13 +1100)] 
improve clang / cmocka integration

7 years agoMerge branch '919-add-win32util-configure-file-list-check-to-ci' into 'master'
Mark Andrews [Tue, 5 Mar 2019 06:28:46 +0000 (01:28 -0500)] 
Merge branch '919-add-win32util-configure-file-list-check-to-ci' into 'master'

Resolve "Add win32util/Configure file list check to CI"

Closes #919

See merge request isc-projects/bind9!1594