blob: bf10e12892385d80146167bce49930f152b31391 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
set -e
setup() (
service bind9 stop
service bind9 start
)
run() (
repeats=10
while [ "${repeats}" -gt "0" ]; do
# Make a query against an external nameserver and check for DNSSEC validation
echo "Checking for DNSSEC validation status of internetsociety.org"
dig -t a internetsociety.org @127.0.0.1 | grep -E 'flags:.+ad; QUERY' && break
repeats=$((repeats-1))
sleep 1
done
[ "$repeats" -eq "0" ] && exit 1
)
teardown() (
service bind9 stop
)
setup
run
teardown
|