]> git.ipfire.org Git - thirdparty/bind9.git/commit
Limit the additional processing for large RDATA sets
authorOndřej Surý <ondrej@isc.org>
Thu, 19 Dec 2024 15:40:52 +0000 (16:40 +0100)
committerNicki Křížek <nicki@isc.org>
Mon, 20 Jan 2025 16:11:21 +0000 (17:11 +0100)
commit89b256efae2d7ed61690fc241a661194481c815d
tree1e2402b991ef42c55fbe21e3ca40167032ac170e
parentf59faf9d92acde0be9510e7d182fc1735b9f4a7e
Limit the additional processing for large RDATA sets

When answering queries, don't add data to the additional section if
the answer has more than 13 names in the RDATA.  This limits the
number of lookups into the database(s) during a single client query,
reducing query processing load.

Also, don't append any additional data to type=ANY queries. The
answer to ANY is already big enough.

(cherry picked from commit a1982cf1bb95c818aa7b58988b5611dec80f2408)
bin/named/query.c
bin/tests/system/additional/tests.sh
bin/tests/system/resolver/tests.sh
lib/dns/include/dns/rdataset.h
lib/dns/rdataset.c
lib/dns/resolver.c