4608. [func] DiG now warns about .local queries which are reserved

for Multicast DNS. [RT #44783]

(cherry picked from commit 7ef453bf43)
This commit is contained in:
Mark Andrews
2017-04-24 11:56:22 +10:00
parent 9689922a0d
commit 7c1c9b4dcd
3 changed files with 42 additions and 0 deletions

View File

@@ -391,6 +391,13 @@ if [ -x ${DIG} ] ; then
echo "I:skipping 'dig +idnout' as IDN support is not enabled ($n)"
fi
echo "I:checking that dig warns about .local queries ($n)"
ret=0
$DIG $DIGOPTS @10.53.0.3 local soa > dig.out.test$n 2>&1 || ret=1
grep ";; WARNING: .local is reserved for Multicast DNS" dig.out.test$n > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
else
echo "$DIG is needed, so skipping these dig tests"
fi