mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
committed by
Evan Hunt
parent
0ba997b4c2
commit
a60cef9dec
29
bin/tests/system/cookie/ns7/named.conf.in
Normal file
29
bin/tests/system/cookie/ns7/named.conf.in
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
*
|
||||||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
*
|
||||||
|
* See the COPYRIGHT file distributed with this work for additional
|
||||||
|
* information regarding copyright ownership.
|
||||||
|
*/
|
||||||
|
|
||||||
|
options {
|
||||||
|
query-source address 10.53.0.7 dscp 1;
|
||||||
|
notify-source 10.53.0.7 dscp 2;
|
||||||
|
transfer-source 10.53.0.7 dscp 3;
|
||||||
|
port @PORT@;
|
||||||
|
pid-file "named.pid";
|
||||||
|
listen-on { 10.53.0.7; };
|
||||||
|
listen-on-v6 { none; };
|
||||||
|
recursion no;
|
||||||
|
answer-cookie no;
|
||||||
|
send-cookie yes;
|
||||||
|
nocookie-udp-size 512;
|
||||||
|
};
|
||||||
|
|
||||||
|
zone "." {
|
||||||
|
type master;
|
||||||
|
file "root.db";
|
||||||
|
};
|
22
bin/tests/system/cookie/ns7/root.db
Normal file
22
bin/tests/system/cookie/ns7/root.db
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
;
|
||||||
|
; This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
; License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
;
|
||||||
|
; See the COPYRIGHT file distributed with this work for additional
|
||||||
|
; information regarding copyright ownership.
|
||||||
|
|
||||||
|
@ SOA a.root-servers.nil. hostmaster.isc.org. 1 600 600 1200 600
|
||||||
|
@ NS a.root-servers.nil.
|
||||||
|
a.root-servers.nil. A 10.53.0.2
|
||||||
|
large.xxx TXT ( large large large large large large large large
|
||||||
|
large large large large large large large large
|
||||||
|
large large large large large large large large
|
||||||
|
large large large large large large large large
|
||||||
|
large large large large large large large large
|
||||||
|
large large large large large large large large
|
||||||
|
large large large large large large large large
|
||||||
|
large large large large large large large large
|
||||||
|
large large large large large large large large
|
||||||
|
large large large large large large large large )
|
@@ -19,3 +19,4 @@ copy_setports ns3/named.conf.in ns3/named.conf
|
|||||||
copy_setports ns4/named.conf.in ns4/named.conf
|
copy_setports ns4/named.conf.in ns4/named.conf
|
||||||
copy_setports ns5/named.conf.in ns5/named.conf
|
copy_setports ns5/named.conf.in ns5/named.conf
|
||||||
copy_setports ns6/named.conf.in ns6/named.conf
|
copy_setports ns6/named.conf.in ns6/named.conf
|
||||||
|
copy_setports ns7/named.conf.in ns7/named.conf
|
||||||
|
@@ -73,14 +73,23 @@ if [ $ret != 0 ]; then echo_i "failed"; fi
|
|||||||
status=`expr $status + $ret`
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
n=`expr $n + 1`
|
n=`expr $n + 1`
|
||||||
echo_i "checking COOKIE token returned to empty COOKIE option ($n)"
|
echo_i "checking COOKIE token is returned to empty COOKIE option ($n)"
|
||||||
ret=0
|
ret=0
|
||||||
$DIG $DIGOPTS +qr +cookie version.bind txt ch @10.53.0.1 > dig.out.test$n
|
$DIG $DIGOPTS +cookie version.bind txt ch @10.53.0.1 > dig.out.test$n
|
||||||
grep COOKIE: dig.out.test$n > /dev/null || ret=1
|
grep COOKIE: dig.out.test$n > /dev/null || ret=1
|
||||||
grep "status: NOERROR" dig.out.test$n > /dev/null || ret=1
|
grep "status: NOERROR" dig.out.test$n > /dev/null || ret=1
|
||||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||||
status=`expr $status + $ret`
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
|
n=`expr $n + 1`
|
||||||
|
echo_i "checking COOKIE is not returned when answer-cookie is false ($n)"
|
||||||
|
ret=0
|
||||||
|
$DIG $DIGOPTS +cookie version.bind txt ch @10.53.0.7 > dig.out.test$n
|
||||||
|
grep COOKIE: dig.out.test$n > /dev/null && ret=1
|
||||||
|
grep "status: NOERROR" dig.out.test$n > /dev/null || ret=1
|
||||||
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||||
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
n=`expr $n + 1`
|
n=`expr $n + 1`
|
||||||
echo_i "checking response size without COOKIE ($n)"
|
echo_i "checking response size without COOKIE ($n)"
|
||||||
ret=0
|
ret=0
|
||||||
|
@@ -867,6 +867,8 @@
|
|||||||
./bin/tests/system/cookie/ns5/root.hint ZONE 2017,2018
|
./bin/tests/system/cookie/ns5/root.hint ZONE 2017,2018
|
||||||
./bin/tests/system/cookie/ns6/named.conf.in CONF-C 2017,2018
|
./bin/tests/system/cookie/ns6/named.conf.in CONF-C 2017,2018
|
||||||
./bin/tests/system/cookie/ns6/root.hint ZONE 2017,2018
|
./bin/tests/system/cookie/ns6/root.hint ZONE 2017,2018
|
||||||
|
./bin/tests/system/cookie/ns7/named.conf.in CONF-C 2018
|
||||||
|
./bin/tests/system/cookie/ns7/root.db ZONE 2018
|
||||||
./bin/tests/system/cookie/setup.sh SH 2018
|
./bin/tests/system/cookie/setup.sh SH 2018
|
||||||
./bin/tests/system/cookie/tests.sh SH 2014,2015,2016,2017,2018
|
./bin/tests/system/cookie/tests.sh SH 2014,2015,2016,2017,2018
|
||||||
./bin/tests/system/coverage/01-ksk-inactive/README X 2013,2018
|
./bin/tests/system/coverage/01-ksk-inactive/README X 2013,2018
|
||||||
|
Reference in New Issue
Block a user