4119. [func] Allow dig to set the message opcode. [RT #39550]

This commit is contained in:
Mark Andrews
2015-05-19 12:46:06 +10:00
parent d9a0f1bea7
commit c7463967db
6 changed files with 55 additions and 3 deletions

View File

@@ -536,5 +536,12 @@ grep "skipping nameserver 'cname.tld' because it is a CNAME, while resolving 'al
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
n=`expr $n + 1`
echo "I:check that unexpected opcodes are handled correctly (${n})"
ret=0
$DIG soa all-cnames @10.53.0.5 -p 5300 +opcode=status > dig.out.ns5.test${n} || ret=1
grep "status: NOTIMP" dig.out.ns5.test${n} > /dev/null || ret=1
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status