4119. [func] Allow dig to set the message opcode. [RT #39550]
(cherry picked from commit c7463967db)
This commit is contained in:
@@ -509,5 +509,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
|
||||
|
||||
Reference in New Issue
Block a user