bind9/lib/dns
Ondřej Surý 9dc22c65e8 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 a1982cf1bb)
2025-01-20 17:05:38 +01:00
..
include Limit the additional processing for large RDATA sets 2025-01-20 17:05:38 +01:00
rdata Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
tests Clang-format header file changes 2024-05-17 16:45:43 -07:00
win32 Update sources to Clang 18 formatting 2024-04-23 16:59:58 +02:00
.gitignore 4394. [func] Add rndc command "dnstap-reopen" to close and 2016-06-24 09:37:04 +10:00
acl.c Simplify way we tag unreachable code with only ISC_UNREACHABLE() 2022-03-25 09:33:51 +01:00
adb.c Update the source code formatting using clang-format-17 2023-10-17 17:56:31 +02:00
badcache.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
byaddr.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
cache.c Add a limit to the number of RR types for single name 2024-07-29 12:27:25 +02:00
callbacks.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
catz.c Backport isc_ht API changes from BIND 9.18 2024-01-05 11:52:05 +01:00
client.c make "max_restarts" a configurable value 2024-08-20 17:35:07 +00:00
clientinfo.c allow dns_clientinfo to store client ECS data 2022-01-27 16:08:57 -08:00
compress.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
db.c Add a limit to the number of RR types for single name 2024-07-29 12:27:25 +02:00
dbiterator.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
dbtable.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
diff.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
dispatch.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
dlz.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
dns64.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
dnsrps.c Add a limit to the number of RR types for single name 2024-07-29 12:27:25 +02:00
dnssec.c Add the ability specify the signing / verification time 2024-08-02 11:18:25 +02:00
dnstap.c dnstap query_message field was erroneously set with responses 2022-08-31 15:49:25 -07:00
dnstap.proto Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
ds.c Simplify way we tag unreachable code with only ISC_UNREACHABLE() 2022-03-25 09:33:51 +01:00
dst_api.c Optimize selecting the signing key 2024-02-01 21:51:07 +01:00
dst_internal.h Check if key metadata is modified before writing 2022-05-16 10:35:33 +02:00
dst_openssl.h Use autoconf check for BN_GENCB_new() 2022-03-02 09:34:29 +00:00
dst_parse.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
dst_parse.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
dst_pkcs11.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
dst_result.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
dyndb.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
ecdb.c Add a limit to the number of RR types for single name 2024-07-29 12:27:25 +02:00
ecs.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
fixedname.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
forward.c Use sizeof(*ptr) for allocating/freeing memory in forward.c 2023-01-11 13:42:00 +00:00
gen-unix.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
gen-win32.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
gen.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
geoip2.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
gssapi_link.c Remove a redundant variable-length array 2022-03-18 17:21:57 +00:00
gssapictx.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
hmac_link.c In hmac_createctx free ctx on isc_hmac_init failure 2023-02-18 10:27:11 +11:00
ipkeylist.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
iptable.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
journal.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
kasp.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
key.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
keydata.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
keymgr.c Force set DS state after 'rndc dnssec -checkds' 2023-01-27 16:09:06 +01:00
keytable.c Handle dns_rdata_fromstruct failure dns_keytable_deletekey 2023-04-03 17:48:31 +02:00
Kyuafile Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
lib.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
log.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
lookup.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
Makefile.in Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
mapapi Account for changes to struct dns_rbtnode 2024-03-07 09:57:48 +01:00
master.c Update the source code formatting using clang-format-17 2023-10-17 17:56:31 +02:00
masterdump.c Add dns_db_allrdatasets options 2022-12-08 11:20:35 +11:00
message.c Remove support for SIG(0) message verification 2024-07-24 13:15:27 +02:00
name.c Use hashtable when parsing a message 2024-01-05 11:52:05 +01:00
ncache.c Correctly set the value of covered in dns_ncache_current 2023-09-18 16:40:54 +10:00
nsec.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
nsec3.c Update the source code formatting using clang-format-17 2023-10-17 17:56:31 +02:00
nta.c Don't use reference counting in isc_timer unit 2023-01-19 11:28:10 +01:00
openssl_link.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
openssldh_link.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
opensslecdsa_link.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
openssleddsa_link.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
opensslrsa_link.c Only declare 'engine' if it is used 2023-10-28 09:01:51 +11:00
order.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
peer.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
pkcs11.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
pkcs11ecdsa_link.c Consistenly use UNREACHABLE() instead of ISC_UNREACHABLE() 2022-03-28 23:28:05 +02:00
pkcs11eddsa_link.c Consistenly use UNREACHABLE() instead of ISC_UNREACHABLE() 2022-03-28 23:28:05 +02:00
pkcs11rsa_link.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
portlist.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
private.c Update the source code formatting using clang-format-17 2023-10-17 17:56:31 +02:00
rbt.c Create a second pruning task for rbtdb with unlimited quantum 2024-03-06 19:17:32 +01:00
rbtdb.c Limit the additional processing for large RDATA sets 2025-01-20 17:05:38 +01:00
rbtdb.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
rcode.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
rdata.c Explicitly cast chars to unsigned chars for <ctype.h> functions 2023-09-22 17:10:25 +02:00
rdatalist.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
rdatalist_p.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
rdataset.c Limit the additional processing for large RDATA sets 2025-01-20 17:05:38 +01:00
rdatasetiter.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
rdataslab.c Add a limit to the number of RRs in RRSets 2024-07-28 16:55:28 +02:00
request.c Don't use reference counting in isc_timer unit 2023-01-19 11:28:10 +01:00
resolver.c Limit the additional processing for large RDATA sets 2025-01-20 17:05:38 +01:00
result.c Update the source code formatting using clang-format-17 2023-10-17 17:56:31 +02:00
rootns.c Suppress reporting upcoming changes in root hints 2023-11-03 03:44:43 +11:00
rpz.c Backport isc_ht API changes from BIND 9.18 2024-01-05 11:52:05 +01:00
rriterator.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
rrl.c Update sources to Clang 18 formatting 2024-04-23 16:59:58 +02:00
sdb.c Add a limit to the number of RR types for single name 2024-07-29 12:27:25 +02:00
sdlz.c Add a limit to the number of RR types for single name 2024-07-29 12:27:25 +02:00
soa.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
ssu.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
ssu_external.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
stats.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
tcpmsg.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
time.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
timer.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
tkey.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
tsec.c Simplify way we tag unreachable code with only ISC_UNREACHABLE() 2022-03-25 09:33:51 +01:00
tsig.c Add the ability specify the signing / verification time 2024-08-02 11:18:25 +02:00
tsig_p.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
ttl.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
update.c Use 'now' rather than 'inception' in 'add_sigs' 2023-12-19 12:55:03 +11:00
validator.c apply max-recursion-queries quota to validator queries 2024-08-20 17:35:07 +00:00
version.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
view.c make "max_restarts" a configurable value 2024-08-20 17:35:07 +00:00
xfrin.c Add a limit to the number of RRs in RRSets 2024-07-28 16:55:28 +02:00
zone.c fix a memory leak that could occur when signing 2024-07-29 12:27:25 +02:00
zone_p.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
zonekey.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
zoneverify.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
zt.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00