]> git.ipfire.org Git - thirdparty/bind9.git/commit
Remove dns_badcache usage in the resolver (lame-ttl)
authorOndřej Surý <ondrej@isc.org>
Fri, 22 Nov 2024 14:10:26 +0000 (15:10 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 27 Nov 2024 16:44:53 +0000 (17:44 +0100)
commitb61739836db9d72262e51596ea07ff8571a541f6
tree337a1f3490a1bf476707a94747fa3cf5bfd45e4c
parent2cb5a6210f334374c601f408c6e7c7ec75ee0949
Remove dns_badcache usage in the resolver (lame-ttl)

The lame-ttl processing was overriden to be disabled in the config,
but the code related to the lame-ttl was still kept in the resolver
code.  More importantly, the DNS_RESOLVER_BADCACHETTL() macro would
cause the entries in the resolver badcache to be always cached for at
least 30 seconds even if the lame-ttl would be set to 0.

Remove the dns_badcache code from the dns_resolver unit, so we save some
processing time and memory in the resolver code.
bin/named/server.c
lib/dns/include/dns/resolver.h
lib/dns/resolver.c
lib/dns/validator.c
lib/dns/view.c