no ipv4 attempt over net
This commit is contained in:
parent
278ef8d353
commit
0fa78bf3b3
1 changed files with 6 additions and 1 deletions
|
|
@ -18,7 +18,12 @@ rlJournalStart
|
|||
rlRun "dig @127.0.0.1 example.net"
|
||||
sleep 5
|
||||
rlRun "pkill tcpdump"
|
||||
rlRun "find ./tcpdumplog.txt -size 1c | grep tcpdump" 0 "Verify no attempt to contact other DNS server was made"
|
||||
sleep 1
|
||||
rlRun "cat tcpdumplog.txt | grep IP4" 1 "Verify no attempt to contact other DNS server was made"
|
||||
echo "##########################################"
|
||||
cp -a tcpdumplog.txt /tmp/a.log
|
||||
cat ./tcpdumplog.txt
|
||||
echo "##########################################"
|
||||
rlRun "rm -f ./tcpdumplog.txt"
|
||||
else
|
||||
rlRun "printf 'forward-zone:\nname: .\nforward-addr: 127.0.0.1\n' >> /etc/unbound/unbound.conf"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue