]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
WIP: send _control queries to ans2
authorŠtěpán Balážik <stepan@isc.org>
Wed, 1 Apr 2026 12:48:06 +0000 (14:48 +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 1b703566f760eb933e9d9cb5c5a09a9907a488cc..4ffdb384a43b1232089f4c284065939721cbfa3c 100644 (file)
@@ -77,6 +77,7 @@ n=$((n + 1))
 echo_i "attempt excessive-depth lookup ($n)"
 ret=0
 echo "1000" >ans2/ans.limit
+set_limit 10.53.0.2 1000 $n
 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
@@ -93,6 +94,7 @@ n=$((n + 1))
 echo_i "attempt permissible lookup ($n)"
 ret=0
 echo "12" >ans2/ans.limit
+set_limit 10.53.0.2 12 $n
 echo "12" >ans4/ans.limit
 set_limit 10.53.0.4 12 $n
 ns3_reset
@@ -112,6 +114,7 @@ n=$((n + 1))
 echo_i "attempt excessive-depth lookup ($n)"
 ret=0
 echo "12" >ans2/ans.limit
+set_limit 10.53.0.2 12 $n
 cp ns3/named2.conf ns3/named.conf
 ns3_reset
 dig_with_opts @10.53.0.2 reset >/dev/null || ret=1
@@ -128,6 +131,7 @@ n=$((n + 1))
 echo_i "attempt permissible lookup ($n)"
 ret=0
 echo "5" >ans2/ans.limit
+set_limit 10.53.0.2 5 $n
 echo "5" >ans4/ans.limit
 set_limit 10.53.0.4 5 $n
 ns3_reset
@@ -147,6 +151,7 @@ n=$((n + 1))
 echo_i "attempt excessive-queries lookup ($n)"
 ret=0
 echo "13" >ans2/ans.limit
+set_limit 10.53.0.2 13 $n
 echo "13" >ans4/ans.limit
 set_limit 10.53.0.4 13 $n
 cp ns3/named3.conf ns3/named.conf
@@ -171,6 +176,7 @@ n=$((n + 1))
 echo_i "attempt permissible lookup ($n)"
 ret=0
 echo "12" >ans2/ans.limit
+set_limit 10.53.0.2 12 $n
 ns3_reset
 dig_with_opts @10.53.0.2 reset >/dev/null || ret=1
 dig_with_opts @10.53.0.3 indirect6.example.org >dig.out.1.test$n || ret=1
@@ -190,6 +196,7 @@ n=$((n + 1))
 echo_i "attempt excessive-queries lookup ($n)"
 ret=0
 echo "11" >ans2/ans.limit
+set_limit 10.53.0.2 11 $n
 cp ns3/named4.conf ns3/named.conf
 ns3_reset
 dig_with_opts @10.53.0.2 reset >/dev/null || ret=1
@@ -210,6 +217,7 @@ n=$((n + 1))
 echo_i "attempt permissible lookup ($n)"
 ret=0
 echo "9" >ans2/ans.limit
+set_limit 10.53.0.2 9 $n
 ns3_reset
 dig_with_opts @10.53.0.2 reset >/dev/null || ret=1
 dig_with_opts @10.53.0.3 indirect8.example.org >dig.out.1.test$n || ret=1