]> git.ipfire.org Git - thirdparty/bind9.git/commit
Bound the amount of work performed for delegations
authorMichał Kępień <michal@isc.org>
Thu, 8 Sep 2022 09:11:30 +0000 (11:11 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 8 Sep 2022 09:11:30 +0000 (11:11 +0200)
commit3a44097fd6c6c260765b628cd1d2c9cb7efb0b2a
tree9305e72e15ef574460aee76bbc86c97d99262421
parent529425b89d70c9d192f785b9f5faf8075b10bbe3
Bound the amount of work performed for delegations

Limit the amount of database lookups that can be triggered in
fctx_getaddresses() (i.e. when determining the name server addresses to
query next) by setting a hard limit on the number of NS RRs processed
for any delegation encountered.  Without any limit in place, named can
be forced to perform large amounts of database lookups per each query
received, which severely impacts resolver performance.

The limit used (20) is an arbitrary value that is considered to be big
enough for any sane DNS delegation.
lib/dns/resolver.c