mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 09:52:27 -04:00
Merge branch 'each-move-rrl-broken-config-test-case-to-checkconf-bind-9.18' into 'bind-9.18'
[9.18] Move RRL broken-config check to checkconf See merge request isc-projects/bind9!8812
This commit is contained in:
commit
dad3ea96e9
4 changed files with 0 additions and 34 deletions
|
|
@ -11,20 +11,7 @@
|
|||
* information regarding copyright ownership.
|
||||
*/
|
||||
|
||||
controls { /* empty */ };
|
||||
|
||||
options {
|
||||
query-source address 10.53.0.5;
|
||||
notify-source 10.53.0.5;
|
||||
transfer-source 10.53.0.5;
|
||||
port @PORT@;
|
||||
pid-file "named.pid";
|
||||
statistics-file "named.stats";
|
||||
listen-on { 10.53.0.5; };
|
||||
listen-on-v6 { none; };
|
||||
notify no;
|
||||
dnssec-validation no;
|
||||
|
||||
rate-limit {
|
||||
responses-per-second 2;
|
||||
all-per-second 50;
|
||||
|
|
@ -36,12 +23,3 @@ options {
|
|||
max-table-size 0;
|
||||
};
|
||||
};
|
||||
|
||||
key rndc_key {
|
||||
secret "1234abcd8765";
|
||||
algorithm hmac-sha256;
|
||||
};
|
||||
controls {
|
||||
inet 10.53.0.5 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
|
||||
};
|
||||
|
||||
|
|
@ -18,6 +18,4 @@ rm -f */named.memstats */named.run */named.stats */log-* */session.key
|
|||
rm -f ns3/bl*.db */*.jnl */*.core */*.pid
|
||||
rm -f ns*/named.lock
|
||||
rm -f ns*/named.conf
|
||||
rm -f broken.conf
|
||||
rm -f broken.out
|
||||
rm -f ns*/managed-keys.bind*
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@
|
|||
|
||||
$SHELL clean.sh
|
||||
|
||||
copy_setports broken.conf.in broken.conf
|
||||
copy_setports ns1/named.conf.in ns1/named.conf
|
||||
copy_setports ns2/named.conf.in ns2/named.conf
|
||||
copy_setports ns3/named.conf.in ns3/named.conf
|
||||
|
|
|
|||
|
|
@ -278,14 +278,5 @@ $DIG $DIGOPTS @$ns4 TXT big.tld4 >/dev/null 2>&1
|
|||
grep "would limit" ns4/named.run >/dev/null 2>&1 \
|
||||
|| setret "\"would limit\" not found in log file."
|
||||
|
||||
$NAMED -D rrl-ns5 -gc broken.conf >broken.out 2>&1 &
|
||||
sleep 2
|
||||
grep "min-table-size 1" broken.out >/dev/null || setret "min-table-size 0 was not changed to 1"
|
||||
|
||||
if [ -f named.pid ]; then
|
||||
kill $(cat named.pid)
|
||||
setret "named should not have started, but did"
|
||||
fi
|
||||
|
||||
echo_i "exit status: $ret"
|
||||
[ $ret -eq 0 ] || exit 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue