if [ $ret != 0 ]; then echo_i "failed"; fi
status=`expr $status + $ret`
+n=`expr $n + 1`
+echo_i "Restart NS4 with -T cookiealwaysvalid ($n)"
+$PERL $SYSTEMTESTTOP/stop.pl cookie ns4
+touch ns4/named.cookiealwaysvalid
+$PERL $SYSTEMTESTTOP/start.pl --noclean --restart --port ${PORT} cookie ns4 || ret=1
+if [ $ret != 0 ]; then echo_i "failed"; fi
+status=$((status + ret))
+
+n=`expr $n + 1`
+echo_i "test NS6 cookie on NS4 with -T cookiealwaysvalid (expect success) ($n)"
+ret=0
+$DIG $DIGOPTS +cookie=$ns6cookie -b 10.53.0.4 +nobadcookie soa . @10.53.0.4 >dig.out.test$n || ret=1
+grep "; COOKIE:.*(good)" 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=$((status + ret))
+
n=`expr $n + 1`
echo_i "check that test server is correctly configured ($n)"
ret=0