]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
WIP: send _control queries to ans4
authorŠtěpán Balážik <stepan@isc.org>
Wed, 1 Apr 2026 12:43:05 +0000 (14:43 +0200)
committerŠtěpán Balážik <stepan@isc.org>
Thu, 9 Apr 2026 00:28:13 +0000 (02:28 +0200)
fold into the rewrite

bin/tests/system/reclimit/tests.sh

index 10ef4c34b1eed5a51765bdc59915e117b9b2b51c..1b703566f760eb933e9d9cb5c5a09a9907a488cc 100644 (file)
@@ -39,6 +39,13 @@ ns3_sends_aaaa_queries() {
   fi
 }
 
+set_limit() {
+  IP=$1
+  LIMIT=$2
+  LOGID=$3
+  dig_with_opts @${IP} $LIMIT.limit._control TXT >dig.out.limit.${LOGID}
+}
+
 # Check whether the number of queries ans2 received from ns3 (this value is
 # read from dig output stored in file $1) is as expected.  The expected query
 # count is variable:
@@ -71,6 +78,7 @@ echo_i "attempt excessive-depth lookup ($n)"
 ret=0
 echo "1000" >ans2/ans.limit
 echo "1000" >ans4/ans.limit
+set_limit 10.53.0.4 1000 $n
 dig_with_opts @10.53.0.2 reset >/dev/null || ret=1
 dig_with_opts @10.53.0.4 reset >/dev/null || ret=1
 dig_with_opts @10.53.0.3 indirect1.example.org >dig.out.1.test$n || ret=1
@@ -86,6 +94,7 @@ echo_i "attempt permissible lookup ($n)"
 ret=0
 echo "12" >ans2/ans.limit
 echo "12" >ans4/ans.limit
+set_limit 10.53.0.4 12 $n
 ns3_reset
 dig_with_opts @10.53.0.2 reset >/dev/null || ret=1
 dig_with_opts @10.53.0.4 reset >/dev/null || ret=1
@@ -120,6 +129,7 @@ echo_i "attempt permissible lookup ($n)"
 ret=0
 echo "5" >ans2/ans.limit
 echo "5" >ans4/ans.limit
+set_limit 10.53.0.4 5 $n
 ns3_reset
 dig_with_opts @10.53.0.2 reset >/dev/null || ret=1
 dig_with_opts @10.53.0.4 reset >/dev/null || ret=1
@@ -138,6 +148,7 @@ echo_i "attempt excessive-queries lookup ($n)"
 ret=0
 echo "13" >ans2/ans.limit
 echo "13" >ans4/ans.limit
+set_limit 10.53.0.4 13 $n
 cp ns3/named3.conf ns3/named.conf
 ns3_reset
 dig_with_opts @10.53.0.2 reset >/dev/null || ret=1