bind9/bin
Witold Kręcicki b49310ac06 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.
2019-01-16 17:41:13 -05:00
..
check update copyrights 2019-01-02 10:20:43 +11:00
confgen update copyrights 2019-01-02 10:20:43 +11:00
delv update copyrights 2019-01-02 10:20:43 +11:00
dig Fix cleanup upon an error before TCP socket creation 2019-01-08 11:17:39 +01:00
dnssec indenting 2019-01-02 10:56:59 +11:00
named fix incorrect comments 2019-01-15 23:20:38 -08:00
nsupdate update copyrights 2019-01-02 10:20:43 +11:00
pkcs11 update copyrights 2019-01-02 10:20:43 +11:00
plugins silence coverity issues; move isc_refcount_decrement out of INSIST 2019-01-10 14:42:28 +11:00
python update copyrights 2019-01-02 10:20:43 +11:00
rndc update copyrights 2019-01-02 10:20:43 +11:00
tests If possible don't use forwarders when priming the resolver. 2019-01-16 17:41:13 -05:00
tools update copyrights 2019-01-02 10:20:43 +11:00
win32/BINDInstall Bump the minimum required Windows version to Windows Vista and Windows Server 2008 2018-08-29 22:03:09 +02:00
Makefile.in name change from "hook modules" to "plugins" 2018-12-06 10:36:50 -08:00