Commit Graph
26916 Commits
Author SHA1 Message Date
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
Mark Andrews 3f12f4d4ec turn off ixfr-from-differences on signed instance of in-line zone
(cherry picked from commit cfccd8d246)
2018-08-02 14:27:21 +10:00
Mark Andrews 252aa79fe4 rename zone to mayberaw
(cherry picked from commit 3ea9861e7a)
2018-08-02 14:27:20 +10:00
Mark Andrews 2f64e4e11e Merge branch '453-master-build-broken-in-documentation-tree-v9_12' into 'v9_12'
add /opt/local/share/xsl/docbook-xsl-nons to the places to look for manpages/docbook.xsl under macports

See merge request isc-projects/bind9!583
2018-08-02 00:18:33 -04:00
Mark Andrews 06dcf1ac31 add /opt/local/share/xsl/docbook-xsl-nons to the places to look for manpages/docbook.xsl under macports
(cherry picked from commit 7425252207)
2018-08-02 14:09:09 +10:00
Mark Andrews d5aa5eeb4d Merge branch '359-question-about-using-hashtable-size-log-messages-for-rpzs-v9_12' into 'v9_12'
Resolve "Question about 'using hashtable size' log messages for RPZs"

See merge request isc-projects/bind9!582
2018-08-01 23:59:05 -04:00
Mark Andrews bcbe414861 lower log level to debug(1)
(cherry picked from commit 12d45c5cd1)
2018-08-01 23:25:58 -04:00
Mark Andrews 3f32afeff9 Merge branch '424-nsupdate-tests-fail-intermittently-v9_12' into 'v9_12'
Resolve "nsupdate tests fail intermittently"

See merge request isc-projects/bind9!580
2018-08-01 23:25:36 -04:00
Mark Andrews eb506cf14e use guard values for testing unixtime serial
(cherry picked from commit abe41ba011)
2018-08-02 11:29:04 +10:00
Mark Andrews 8e12e6f7ce save SOA values
(cherry picked from commit 6b30bc73c0)
2018-08-02 11:29:04 +10:00
Mark Andrews 4935fde60c Merge branch '406-dns_acl_isinsecure-does-not-handle-geoip-elements-v9_12' into 'v9_12'
Resolve "dns_acl_isinsecure does not handle geoip elements."

See merge request isc-projects/bind9!578
2018-08-01 20:03:33 -04:00
Mark Andrews 3447493505 add CHANGES note
(cherry picked from commit b0b76d259f)
2018-08-02 09:55:13 +10:00
Mark Andrews 56e7e43230 handle dns_aclelementtype_geoip
(cherry picked from commit 57eadf4d4f)
2018-08-02 09:55:13 +10:00
Mark Andrews 6ac1507f4f test dns_acl_isinsecure with geoip element
(cherry picked from commit fb8bb4e306)
2018-08-02 09:55:13 +10:00
Mark Andrews 5a6bda87ca Merge branch '410-missing-sanity-check-for-call-to-next_token-in-file-mdig-c-for-bind-9-12-1-p2-v9_12' into 'v9_12'
Resolve "Missing Sanity Check for call to next_token() in file 'mdig.c' for BIND 9.12.1-P2"

See merge request isc-projects/bind9!576
2018-08-01 19:51:14 -04:00
Mark Andrews 0a5d85df9f add CHANGES note
(cherry picked from commit 84f1d9a204)
2018-08-02 09:43:05 +10:00
Mark Andrews 3d40bc4e1a test mdig '+ednsopt=:' handling
(cherry picked from commit 2e688488f7)
2018-08-02 09:42:13 +10:00
Mark Andrews 3f7a651d3a fix handling of '+ednsopt=:'; support 100 ednsopts per query rather than 100 total
(cherry picked from commit d2943440a0)
2018-08-02 09:42:09 +10:00
Mark Andrews 8e3c67b345 Merge branch '372-smimea-and-tlsa-methods-incorrectly-use-txt-type-v9_12' into 'v9_12'
Resolve "smimea and tlsa methods incorrectly use txt type"

See merge request isc-projects/bind9!574
2018-08-01 19:01:28 -04:00
Mark Andrews 06bfd671b5 use tlsa and smime structs to set common values
(cherry picked from commit 63c9ec367f)
2018-08-02 08:52:17 +10:00
Ondřej Surý 40027d3035 Merge branch '443-isc_buffer_printf-fixes-v9_12' into 'v9_12'
Resolve "isc_buffer_printf() grows buffer without autorealloc being set + nit in isc_buffer_realloc()"

See merge request isc-projects/bind9!569
2018-08-01 02:51:10 -04:00
Ondřej Surý 38a6d1d44d Change isc_buffer_reallocate() into a static functions as it is not used outside of isc_buffer_reserve()
(cherry picked from commit 20faf4652a)
2018-08-01 08:41:25 +02:00
Ondřej Surý 56117f9799 Remove illogical condition from isc_buffer_reallocate that would return ISC_R_NOSPACE when requested size is less than available size
(cherry picked from commit 7785f644c3)
2018-08-01 08:41:25 +02:00