]> git.ipfire.org Git - thirdparty/bind9.git/commit
Limit the additional processing for large RDATA sets
authorOndřej Surý <ondrej@isc.org>
Thu, 14 Nov 2024 09:37:29 +0000 (10:37 +0100)
committerAndoni Duarte Pintado <andoni@isc.org>
Wed, 15 Jan 2025 13:13:45 +0000 (14:13 +0100)
commitfa7b7973e36056440dd688c7f312c89600d4f8cf
treed95fc25df45da49867b691ddddc2b673b60ca8af
parentcd48dcb0f87f8bed8138cbc4635a6a46f3148620
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/tests/system/additional/tests.sh
lib/dns/include/dns/rdataset.h
lib/dns/rbtdb.c
lib/dns/rdataset.c
lib/dns/resolver.c
lib/ns/query.c