bind9/lib
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
..
bind9 pass the correct object to cfg_obj_log 2018-12-15 09:38:42 +11:00
dns If possible don't use forwarders when priming the resolver. 2019-01-16 22:27:52 -08:00
irs ensure that WSAStartup is called before getservbyname 2019-01-15 16:29:25 +11:00
isc Ensure base64/base32/hex fields in DNS records that should be non-empty are. 2019-01-09 18:52:50 +11:00
isccc add cmocka support to remaining unit test makefiles 2018-11-16 01:05:35 +00:00
isccfg remove ATF source code and Atffiles 2018-11-15 17:52:00 -08:00
lwres update copyrights 2019-01-02 10:26:49 +11:00
samples Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
win32/bindevt Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
.gitignore added gitignore, removed cvsignore 2012-03-03 23:10:05 -08:00
Kyuafile link in lib/isccc/tests/Kyuafile 2018-11-13 07:50:30 +11:00
Makefile.in update file headers to remove copyright years 2018-03-14 16:40:20 -07:00