bind9/util
Witold Kręcicki aa9866c390 If possible don't use forwarders when priming the resolver.
If we try to fetch a record from cache and need to look into
hints database we assume that the resolver is not primed and
start dns_resolver_prime(). Priming query is supposed to return
NSes for "." in ANSWER section and glue records for them in
ADDITIONAL section, so that we can fill that info in 'regular'
cache and not use hints db anymore.
However, if we're using a forwarder the priming query goes through
it, and if it's configured to return minimal answers we won't get
the addresses of root servers in ADDITIONAL section. Since the
only records for root servers we have are in hints database we'll
try to prime the resolver with every single query.

This patch adds a DNS_FETCHOPT_NOFORWARD flag which avoids using
forwarders if possible (that is if we have forward-first policy).
Using this flag on priming fetch fixes the problem as we get the
proper glue. With forward-only policy the problem is non-existent,
as we'll never ask for root server addresses because we'll never
have a need to query them.

Also added a test to confirm priming queries are not forwarded.

(cherry picked from commit b49310ac06)
(cherry picked from commit f8963ad70e)
2019-01-16 22:27:52 -08:00
..
altbuild.sh Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
bindkeys.pl add header guard when generating bind.keys.h 2018-04-22 12:58:27 -07:00
branchsync.sh update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
check-categories.sh update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
check-changes call util/check-changes in setup 2018-06-04 22:14:11 -04:00
check-cocci Add unreachable.spatch coccinelle recipe and run it in precheck CI phase 2018-12-21 09:29:47 +01:00
check-includes.pl Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
check-instincludes.sh Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
check-pullups.pl Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
check-sources.pl Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
checklibs.sh checklibs needs to grep for the cfg_* prefix in lib/isccfg 2018-12-06 18:09:04 -08:00
commit-arm.sh Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
COPYRIGHT Update scripts in util/ to drop the year information from the individual source files. 2018-03-14 16:37:53 -07:00
COPYRIGHT.BRIEF ensure COPYRIGHT file retains years; edit file headers for consistency 2018-03-15 18:38:19 -07:00
COPYRIGHT.BSDI ensure COPYRIGHT file retains years; edit file headers for consistency 2018-03-15 18:38:19 -07:00
COPYRIGHT.NAI ensure COPYRIGHT file retains years; edit file headers for consistency 2018-03-15 18:38:19 -07:00
COPYRIGHT.NOM ensure COPYRIGHT file retains years; edit file headers for consistency 2018-03-15 18:38:19 -07:00
COPYRIGHT.PORTION ensure COPYRIGHT file retains years; edit file headers for consistency 2018-03-15 18:38:19 -07:00
COPYRIGHT.TOP ensure COPYRIGHT file retains years; edit file headers for consistency 2018-03-15 18:38:19 -07:00
copyrights If possible don't use forwarders when priming the resolver. 2019-01-16 22:27:52 -08:00
git-replay-merge.sh fixed an argument counting bug 2018-07-10 21:04:25 -07:00
kit.sh use the correct repository, and get archive by tag not hash 2018-05-21 13:57:16 -07:00
mandoc2docbook.pl Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
mdnbuildtest.sh Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
memleak.pl Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
merge_copyrights Remove embedded atf-src and enforce atf >= 0.20 + kyua as execution engine 2018-11-16 09:17:32 -08:00
mksymtbl.pl Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
models.c update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
nanny.pl Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
new-func Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
nt-kit Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
prepare-softhsm2.sh SoftHSM 2.4.0 only supports softhsm2.conf now, rewrite GitLab CI commands to properly support that 2018-12-21 09:29:47 +01:00
spacewhack.pl Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
tabify-changes Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
update-drafts.pl Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
update_branches Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
update_copyrights Make update_copyrights return error code when error is encountered during processing the files 2018-08-24 08:33:36 -04:00
xc Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00