]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.20] new: usr: Tighten 'max-recursion-queries' and add 'max-query-restarts' option
authorEvan Hunt <each@isc.org>
Wed, 7 Aug 2024 22:52:52 +0000 (22:52 +0000)
committerEvan Hunt <each@isc.org>
Wed, 7 Aug 2024 22:52:52 +0000 (22:52 +0000)
commit42e70b0f0e2b32739eae4c22dfbc51c8ff578378
tree6f74d3f2c4073d164656f5fa07e6d25815f0a0c4
parent3de13146e82d836c22d5e07b88dad5c21a746d85
parent9c292299c0d007b53f859c9922a2bbca32661c16
[9.20] new: usr: Tighten 'max-recursion-queries' and add 'max-query-restarts' option

There were cases in resolver.c when the `max-recursion-queries` quota was ineffective. It was possible to craft zones that would cause a resolver to waste resources by sending excessive queries while attempting to resolve a name. This has been addressed by correcting errors in the implementation of `max-recursion-queries`, and by reducing the default value from 100 to 32.

In addition, a new `max-query-restarts` option has been added which limits the number of times a recursive server will follow CNAME or DNAME records before terminating resolution. This was previously a hard-coded limit of 16, and now defaults to 11.

Closes #4741

Backport of MR !9281

Merge branch 'backport-4741-reclimit-restarts-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!9282