Skip to content
GitLab
Menu
Projects
Groups
Snippets
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
706c6ac5
Commit
706c6ac5
authored
Apr 20, 2017
by
Mark Andrews
Browse files
fix 'minimal-any yes;' to force TCP / UDP
parent
600b0277
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/tests/system/additional/tests.sh
View file @
706c6ac5
...
...
@@ -236,9 +236,27 @@ $RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 reconfig 2>&1 | sed 's/^/I:ns1
sleep
2
n
=
`
expr
$n
+ 1
`
echo
"I:testing with 'minimal-any yes;' (
$n
)"
echo
"I:testing with 'minimal-any yes;'
over UDP
(
$n
)"
ret
=
0
$DIG
-t
ANY www.rt.example @10.53.0.1
-p
5300
>
dig.out.
$n
||
ret
=
1
$DIG
-t
ANY +notcp www.rt.example @10.53.0.1
-p
5300
>
dig.out.
$n
||
ret
=
1
grep
"ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1"
dig.out.
$n
>
/dev/null
||
ret
=
1
if
[
$ret
-eq
1
]
;
then
echo
"I: failed"
;
status
=
1
fi
n
=
`
expr
$n
+ 1
`
echo
"I:testing with 'minimal-any yes;' over TCP (
$n
)"
ret
=
0
$DIG
-t
ANY +tcp www.rt.example @10.53.0.1
-p
5300
>
dig.out.
$n
||
ret
=
1
grep
"ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1"
dig.out.
$n
>
/dev/null
||
ret
=
1
if
[
$ret
-eq
1
]
;
then
echo
"I: failed"
;
status
=
1
fi
n
=
`
expr
$n
+ 1
`
echo
"I:testing with 'minimal-any yes;' over UDP (
$n
)"
ret
=
0
$DIG
-t
ANY +notcp www.rt.example @10.53.0.1
-p
5300
>
dig.out.
$n
||
ret
=
1
grep
"ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1"
dig.out.
$n
>
/dev/null
||
ret
=
1
if
[
$ret
-eq
1
]
;
then
echo
"I: failed"
;
status
=
1
...
...
Write
Preview
Supports
Markdown
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