mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Check check-svcb processing in nsupdate
This commit is contained in:
parent
7782c78d15
commit
c040e82c82
@ -1199,6 +1199,33 @@ grep "bad name" nsupdate.out4-$n > /dev/null && ret=1
|
|||||||
|
|
||||||
[ $ret = 0 ] || { echo_i "failed"; status=1; }
|
[ $ret = 0 ] || { echo_i "failed"; status=1; }
|
||||||
|
|
||||||
|
n=$((n + 1))
|
||||||
|
echo_i "check check-svcb processing ($n)"
|
||||||
|
ret=0
|
||||||
|
$NSUPDATE << EOF > nsupdate.out1-$n 2>&1
|
||||||
|
update add _dns.ns.example 0 in svcb 1 ns.example dohpath=/{?dns}
|
||||||
|
EOF
|
||||||
|
grep "check-svcb failed: no ALPN" nsupdate.out1-$n > /dev/null || ret=1
|
||||||
|
|
||||||
|
$NSUPDATE << EOF > nsupdate.out2-$n 2>&1
|
||||||
|
check-svcb off
|
||||||
|
update add _dns.ns.example 0 in svcb 1 ns.example dohpath=/{?dns}
|
||||||
|
EOF
|
||||||
|
grep "check-svcb failed: no ALPN" nsupdate.out2-$n > /dev/null && ret=1
|
||||||
|
|
||||||
|
$NSUPDATE << EOF > nsupdate.out3-$n 2>&1
|
||||||
|
update add _dns.ns.example 0 in svcb 1 ns.example alpn=h2
|
||||||
|
EOF
|
||||||
|
grep "check-svcb failed: no DOHPATH" nsupdate.out3-$n > /dev/null || ret=1
|
||||||
|
|
||||||
|
$NSUPDATE << EOF > nsupdate.out4-$n 2>&1
|
||||||
|
check-svcb off
|
||||||
|
update add _dns.ns.example 0 in svcb 1 ns.example alpn=h2
|
||||||
|
EOF
|
||||||
|
grep "check-svcb failed: no DOHPATH" nsupdate.out4-$n > /dev/null && ret=1
|
||||||
|
|
||||||
|
[ $ret = 0 ] || { echo_i "failed"; status=1; }
|
||||||
|
|
||||||
n=$((n + 1))
|
n=$((n + 1))
|
||||||
echo_i "check adding of delegating NS records processing ($n)"
|
echo_i "check adding of delegating NS records processing ($n)"
|
||||||
ret=0
|
ret=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user