Handle dig timing out gracefully in upforwd

(cherry picked from commit 7b77574b6d)
This commit is contained in:
Tom Krizek
2024-01-05 15:14:26 +01:00
parent 43f9261157
commit 1878a91a30

View File

@@ -273,7 +273,7 @@ if test -f keyname; then
update add unsigned.example2. 600 TXT Foo
send
EOF
$DIG -p ${PORT} unsigned.example2 A @10.53.0.1 >dig.out.ns1.test$n
$DIG -p ${PORT} unsigned.example2 A @10.53.0.1 >dig.out.ns1.test$n || ret=1
grep "status: NOERROR" dig.out.ns1.test$n >/dev/null || ret=1
if [ $ret != 0 ]; then echo_i "failed"; fi
status=$(expr $status + $ret)