diff --git a/Sanity/no-root-zone-fetch/runtest.sh b/Sanity/no-root-zone-fetch/runtest.sh index ae6efba..61267fc 100755 --- a/Sanity/no-root-zone-fetch/runtest.sh +++ b/Sanity/no-root-zone-fetch/runtest.sh @@ -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"