mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Handle dig timing out gracefully in rootkeysentinel
(cherry picked from commit de569ad97a)
This commit is contained in:
parent
9a803cc227
commit
b51c74f0bb
1 changed files with 3 additions and 3 deletions
|
|
@ -49,13 +49,13 @@ if [ $ret != 0 ]; then echo_i "failed"; fi
|
|||
status=$((status + ret))
|
||||
|
||||
newtest "check authoritative server (expect NOERROR)"
|
||||
$DIG $DIGOPTS @10.53.0.2 example SOA >dig.out.ns2.test$n
|
||||
$DIG $DIGOPTS @10.53.0.2 example SOA >dig.out.ns2.test$n || ret=1
|
||||
grep "status: NOERROR" dig.out.ns2.test$n >/dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
||||
newtest "check test zone resolves with 'root-key-sentinel yes;'" " (expect NOERROR)"
|
||||
$DIG $DIGOPTS @10.53.0.3 example SOA >dig.out.ns3.test$n
|
||||
$DIG $DIGOPTS @10.53.0.3 example SOA >dig.out.ns3.test$n || ret=1
|
||||
grep "status: NOERROR" dig.out.ns3.test$n >/dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
|
@ -184,7 +184,7 @@ if [ $ret != 0 ]; then echo_i "failed"; fi
|
|||
status=$((status + ret))
|
||||
|
||||
newtest "check test zone resolves with 'root-key-sentinel no;'" " (expect NOERROR)"
|
||||
$DIG $DIGOPTS @10.53.0.4 example SOA >dig.out.ns4.test$n
|
||||
$DIG $DIGOPTS @10.53.0.4 example SOA >dig.out.ns4.test$n || ret=1
|
||||
grep "status: NOERROR" dig.out.ns4.test$n >/dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
|
|
|||
Loading…
Reference in a new issue