Commit Graph
26938 Commits
Author SHA1 Message Date
Michał Kępień cb5f86d99e Queue "rndc signing -nsec3param ..." requests if needed
If "rndc signing -nsec3param ..." is ran for a zone which has not yet
been loaded or transferred (i.e. its "db" field is NULL), it will be
silently ignored by named despite rndc logging an "nsec3param request
queued" message, which is misleading.  Prevent this by keeping a
per-zone queue of NSEC3PARAM change requests which arrive before a zone
is loaded or transferred and processing that queue once the raw version
of an inline-signed zone becomes available.

(cherry picked from commit cb40c5229a)
2018-08-14 09:26:38 +02:00
Ondřej Surý b815273642 Merge branch '462-full-recv-queue-on-netbsd-v9_12' into 'v9_12'
Resolve "Full Recv-Queue"

See merge request isc-projects/bind9!630
2018-08-13 13:31:34 -04:00
Ondřej Surý cee556c4dd Make ENOBUFS a soft error
(cherry picked from commit ebf3083e08)
2018-08-13 19:22:56 +02:00
Ondřej Surý 5a5e2f6e51 Merge branch '223-fix-vcredist-path' into 'v9_12'
[v9_12]: Resolve "Fix for Configure to find the path to VC++ redistributables under Visual Studio 2017"

See merge request isc-projects/bind9!618
2018-08-11 06:06:18 -04:00
Ondřej SurýandOndřej Surý 08a962545d Fix various build failures on Windows (Courtesy of rockerinthelocker) 2018-08-11 05:57:42 -04:00
Ondřej SurýandOndřej Surý ce8b6f22bd Remove non-existant GUIDs from bind9.sln.in 2018-08-11 05:57:42 -04:00
Ondřej Surý 51ae74af5f Merge branch 'fix-missing-config.h-v9_12' into 'v9_12'
[v9_12] Fix missing config.h includes

See merge request isc-projects/bind9!623
2018-08-11 04:52:56 -04:00
Ondřej SurýandOndřej Surý d87c1a120d Fix missing config.h in win32/socket.c and replace config.h with <config.h> 2018-08-11 04:45:37 -04:00
Ondřej Surý 80f9512468 Merge branch '469-typo-in-validate-glue-branch-v9_12' into 'v9_12'
Resolve "Typo in validate-glue branch"

See merge request isc-projects/bind9!621
2018-08-11 04:37:12 -04:00
Ondřej Surý 3f5db28568 Fix !!validate typo to -> !validate
(cherry picked from commit bdc9860262)
2018-08-11 10:28:27 +02:00
Evan Hunt 8afef1f823 Merge branch 'fix-ns-log-mismatch-v9_12' into 'v9_12'
mismatch between defined log modules and ns_modules[] in lib/ns/log.c

See merge request isc-projects/bind9!620
2018-08-10 15:29:50 -04:00
Evan Hunt e8e7c597f8 mismatch between defined log modules and ns_modules[] in lib/ns/log.c
(cherry picked from commit b865fb77de)
2018-08-10 12:22:04 -07:00
Ondřej Surý a95dd5b3a9 Merge branch '9-use-C99-integer-types-v9_12' into 'v9_12'
Redefine ISC's int and boolean types to use <stdint.h> and <stdbool.h> types

See merge request isc-projects/bind9!606
2018-08-10 05:27:41 -04:00
Ondřej Surý 0dad73aafa Add compatibility isc/boolean.h and isc/int.h headers 2018-08-10 11:17:51 +02:00
Ondřej Surý b6c281ee7c Add CHANGES entry
5007.   [cleanup]       Replace custom ISC boolean and integer data types
                        with C99 stdint.h and stdbool.h types. [GL #9]

(cherry picked from commit 75c2356f42)
2018-08-10 11:17:51 +02:00
Ondřej Surý 2844f6529d Remove duplicate config.h
(cherry picked from commit 7351c505a0)
2018-08-10 11:17:51 +02:00
Ondřej Surý 884929400c Replace custom isc_boolean_t with C standard bool type
(cherry picked from commit 994e656977)
2018-08-10 11:17:51 +02:00
Ondřej Surý d61e6a3111 Replace custom isc_u?intNN_t types with C99 u?intNN_t types
(cherry picked from commit cb6a185c69)
2018-08-09 18:30:20 +02:00
Ondřej Surý 3523850065 Get rid of extra UINT64_MAX definition in lib/isc/win32/time.c
(cherry picked from commit 055278c936)
2018-08-09 18:30:20 +02:00
Ondřej Surý c863a076ae Replace ISC_PRINT_QUADFORMAT with inttypes.h format constants
(cherry picked from commit 64fe6bbaf2)
2018-08-09 18:30:20 +02:00
Ondřej Surý ee22f606ae Check for C99 compatible compiler
(cherry picked from commit 9e493798c6)
2018-08-09 18:30:20 +02:00
Evan Hunt 3e5ab73cbc Merge branch 'security-v9_12' into 'v9_12'
Merge CVE-2018-5740 fix

See merge request isc-projects/bind9!608
2018-08-08 18:35:21 -04:00
Evan Hunt d97001a37c caclulate nlabels and set *chainingp correctly 2018-08-08 14:24:15 -07:00
Tinderbox UserandEvan Hunt a7213875ff prep 9.12.2-P1 2018-08-08 14:24:15 -07:00
Evan Hunt 3fa62f19d5 CHANGES, release note
(cherry picked from commit 9c492aba65c178f30baafeb5502013f95a9d5b9a)
2018-08-08 14:23:56 -07:00
Evan Hunt 7c50ab65fc test case
(cherry picked from commit 73486c13f743407a50d5bbadde90c949a696506f)
2018-08-08 14:23:26 -07:00
Evan Hunt 45da24f272 explicit DNAME query could trigger a crash if deny-answer-aliases was set
(cherry picked from commit a21c3810d3453548cc05ae19995125dabea9ca9c)
2018-08-08 14:23:26 -07:00
Ondřej Surý ca97a36ce6 Merge branch 'silence-openbsd-warning-v9_12' into 'v9_12'
Silence a compiler warning on openbsd and fix windows build

See merge request isc-projects/bind9!605
2018-08-08 03:53:01 -04:00
Evan HuntandOndřej Surý 2f611cf600 Silence a compiler warning on openbsd and fix windows build
(cherry picked from commit b55338e447)
2018-08-08 09:36:02 +02:00
Michał Kępień ab6d3e758d Merge branch '431-refactor-code-preparing-a-delegation-response-v9_12' into 'v9_12'
[v9_12] Refactor code preparing a delegation response

See merge request isc-projects/bind9!604
2018-08-08 02:26:42 -04:00
Michał Kępień 7ef5192cae Add CHANGES entry
5006.	[cleanup]	Code preparing a delegation response was extracted from
			query_delegation() and query_zone_delegation() into a
			separate function in order to decrease code
			duplication. [GL #431]

(cherry picked from commit 1d9c37876b)
2018-08-08 08:09:30 +02:00
Michał Kępień fe526c3e57 Extract code preparing a delegation response to a separate function
Changes introduced by the previous two commits make the parts of
query_delegation() and query_zone_delegation() which prepare a
delegation response functionally equivalent.  Extract this code into a
separate function, query_prepare_delegation_response(), and then call
the latter from both query_delegation() and query_zone_delegation() in
order to reduce code duplication.  Add a comment describing the purpose
of the extracted code.  Fix coding style issues.

(cherry picked from commit 8e3fc5725f)
2018-08-08 08:09:30 +02:00
Michał Kępień 252b154371 Remove unused NS_QUERYATTR_CACHEGLUEOK query attribute
The NS_QUERYATTR_CACHEGLUEOK query attribute has no influence on query
processing.  Remove it.

(cherry picked from commit 7db4dedf6b)
2018-08-08 08:09:30 +02:00
Michał Kępień 7c58cbd31a Restore zone database and zone node if cache search results are to be ignored
When query processing hits a delegation from a locally configured zone,
an attempt may be made to look for a better answer in the cache.  In
such a case, the zone-sourced delegation data is set aside and the
lookup is retried using the cache database.  When that lookup is
completed, a decision is made whether the answer found in the cache is
better than the answer found in the zone.

Currently, if the zone-sourced answer turns out to be better than the
one found in the cache:

  - qctx->zdb is not restored into qctx->db,
  - qctx->node, holding the zone database node found, is not even saved.

Thus, in such a case both qctx->db and qctx->node will point at cache
data.  This is not an issue for BIND versions which do not support
mirror zones because in these versions non-recursive queries always
cause the zone-sourced delegation to be returned and thus the
non-recursive part of query_delegation() is never reached if the
delegation is coming from a zone.  With mirror zones, however,
non-recursive queries may cause cache lookups even after a zone
delegation is found.  Leaving qctx->db assigned to the cache database
when query_delegation() determines that the zone-sourced delegation is
the best answer to the client's query prevents DS records from being
added to delegations coming from mirror zones.  Fix this issue by
keeping the zone database and zone node in qctx while the cache is
searched for an answer and then restoring them into qctx->db and
qctx->node, respectively, if the zone-sourced delegation turns out to be
the best answer.  Since this change means that qctx->zdb cannot be used
as the glue database any more as it will be reset to NULL by RESTORE(),
ensure that qctx->db is not a cache database before attaching it to
qctx->client->query.gluedb.

If qctx->zdb is not NULL, qctx->zfname will also not be NULL;
qctx->zsigrdataset may be NULL in such a case, but query_putrdataset()
handles pointers to NULL pointers gracefully.  Remove redundant
conditional expressions to make the cleanup code in query_freedata()
match the corresponding sequences of SAVE() / RESTORE() macros more
closely.

(cherry picked from commit b6c77202cb)
2018-08-08 08:09:25 +02:00
Ondřej Surý 56ad915e63 Merge branch '440-root-zone-performance-regression-v9_12' into 'v9_12'
Resolve "Root zone performance regression since 9.12.2rc2 and 9.13.1"

See merge request isc-projects/bind9!598
2018-08-06 10:25:44 -04:00
Ondřej Surý d96765377c Update ARM on the default ordering
(cherry picked from commit 9e11b54bbc)
2018-08-06 13:03:28 +02:00
Ondřej Surý c9094cd8e8 Define and use new DNS_RDATASET_COUNT_UNDEFINED equals ISC_UINT32_MAX to make the code more readable
(cherry picked from commit e80c26b22e)
2018-08-06 13:03:28 +02:00
Ondřej Surý ad09426b99 Modify the rrsetorder test to cope with the rrset order randomization (only four orders are now possible)
(cherry picked from commit afddc2781e)
2018-08-06 13:03:28 +02:00
Ondřej Surý f74ee45e5e Refactor code around random/cyclic/fixed to reduce code duplication
(cherry picked from commit 41a68425ea)
2018-08-06 13:03:28 +02:00
Mark AndrewsandOndřej Surý bf7db87d52 Only get one random number per response when order == random
(cherry picked from commit f7986c8d1a)
2018-08-06 13:03:28 +02:00
Ondřej Surý 8ecc87df6e Merge branch '543-revert-!553-v9.12' into 'v9_12'
Revert "Use make automatic variables to install updated manuals"

See merge request isc-projects/bind9!599
2018-08-06 06:59:49 -04:00
Ondřej Surý e552ea1275 Revert "Use make automatic variables to install updated manuals"
This reverts commit 85deed805b.
2018-08-06 12:51:07 +02:00
Mark Andrews 45d453b043 Merge branch 'remove-dead-code-v9_12' into 'v9_12'
Remove dead code

See merge request isc-projects/bind9!596
2018-08-02 19:58:53 -04:00
Mark Andrews 70d39a86ed remove dead code
(cherry picked from commit 83a1e87dd2)
2018-08-03 09:50:25 +10:00
Mark Andrews c46bc5cfd5 Merge branch '442-dnssec-verify-fails-on-case-sensitivity-of-owner-names-in-nsec-bitmap-v9_12' into 'v9_12'
Resolve "dnssec-verify fails on case-sensitivity of owner names in NSEC bitmap"

See merge request isc-projects/bind9!594
2018-08-02 18:59:47 -04:00
Mark Andrews 65b017829e add CHANGES
(cherry picked from commit 49cd3aac9c)
2018-08-03 08:50:59 +10:00
Mark Andrews 092b739535 only check the bit map
(cherry picked from commit a94db46631)
2018-08-03 08:50:56 +10:00
Mark Andrews f9af68d442 Merge branch '439-the-signed-instance-of-a-in-line-zone-should-be-treated-as-dynamic-v9_12' into 'v9_12'
Resolve "The signed instance of a in-line zone should be treated as dynamic."

See merge request isc-projects/bind9!585
2018-08-02 00:39:04 -04:00
Mark Andrews 9d26a11c6f add CHANGES
(cherry picked from commit d6d9fd1c71)
2018-08-02 14:27:21 +10:00
Mark Andrews 6382cc61ed treat the signed instance of a inline zone as dynamic
(cherry picked from commit 9130f055f4)
2018-08-02 14:27:21 +10:00