Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
aeb7b6e1
Commit
aeb7b6e1
authored
Dec 08, 2015
by
Curtis Blackburn
Browse files
[rt40105] add a system test for dig +zflag
parent
ce0d8b1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/tests/system/digdelv/tests.sh
View file @
aeb7b6e1
...
...
@@ -135,6 +135,15 @@ if [ -x ${DIG} ] ; then
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
n
=
`
expr
$n
+ 1
`
echo
"I:checking dig +zflag works, and that BIND properly ignores it (
$n
)"
ret
=
0
$DIG
$DIGOPTS
+tcp @10.53.0.3 +zflag +qr A example
>
dig.out.test
$n
||
ret
=
1
sed
-n
'/Sending:/,/Got answer:/p'
dig.out.test
$n
|
grep
"^;; flags: rd ad; MBZ: 0x4;"
>
/dev/null
||
ret
=
1
sed
-n
'/Got answer:/,/AUTHORITY SECTION:/p'
dig.out.test
$n
|
grep
"^;; flags: qr rd ra; QUERY: 1"
>
/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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment