3422. [bug] Added a clear error message for when the SOA does not

match the referral. [RT #31281]
This commit is contained in:
ckb
2012-11-21 16:44:34 -06:00
parent 20b95f5ff6
commit 2786b6c53f
8 changed files with 115 additions and 3 deletions

View File

@@ -293,6 +293,13 @@ done
[ $ret = 0 ] && ret=$foo;
if [ $ret != 0 ]; then echo "I:failed"; status=1; fi
echo "I:check for improved error message with SOA mismatch"
ret=0
$DIG @10.53.0.1 -p 5300 www.sub.broken aaaa > dig.out.${n} || ret=1
grep "not subdomain of zone" ns1/named.run > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status