no ipv4 attempt over net

This commit is contained in:
psklenar@redhat.com 2025-02-06 13:35:46 +01:00
commit 0fa78bf3b3

View file

@ -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"