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
84932f01
Commit
84932f01
authored
May 02, 2018
by
Mukund Sivaraman
Committed by
Ondřej Surý
May 16, 2018
Browse files
Add system test
(cherry picked from commit
303391ea
)
parent
1f3372f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/tests/system/dnssec/tests.sh
View file @
84932f01
...
...
@@ -73,6 +73,23 @@ israw1 () {
return
$?
}
# strip NS and RRSIG NS from input
stripns
()
{
awk
'($4 == "NS") || ($4 == "RRSIG" && $5 == "NS") { next} { print }'
$1
}
# Check that for a query against a validating resolver where the
# authoritative zone is unsigned (insecure delegation), glue is returned
# in the additional section
echo_i
"checking that additional glue is returned for unsigned delegation (
$n
)"
ret
=
0
$DIG
+tcp +dnssec
-p
${
PORT
}
a.insecure.example. @10.53.0.4 a
>
dig.out.ns4.test
$n
||
ret
=
1
grep
"ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2"
dig.out.ns4.test
$n
>
/dev/null
||
ret
=
1
grep
"ns
\.
insecure
\.
example
\.
.*A.10
\.
53
\.
0
\.
3"
dig.out.ns4.test
$n
>
/dev/null
||
ret
=
1
n
=
`
expr
$n
+ 1
`
if
[
$ret
!=
0
]
;
then
echo_i
"failed"
;
fi
status
=
`
expr
$status
+
$ret
`
# Check the example. domain
echo_i
"checking that zone transfer worked (
$n
)"
...
...
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