1 # #-- local_nosnoop.test --#
2 # source the master var file when it's there
3 [ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
4 # use .tpkg.var.test for in test variable passing
5 [ -f .tpkg.var.test ] && source .tpkg.var.test
10 # www.example.com is available through recursion.
11 # foo.example.com is available through local-data (and recursion...).
13 # so, with 'allow' the cache snoop stops working:
14 # dig +norec for www does not work any more.
16 echo "> dig www.example.com. +RD"
17 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
22 if grep "10.20.30.40" outfile; then
29 echo "> dig www.example.com. +norec"
30 dig @localhost +norec -p $UNBOUND_PORT www.example.com. | tee outfile
35 if grep "REFUSED" outfile; then
42 if grep "10.20.30.40" outfile; then
49 echo "> dig foo.example.com. +RD"
50 dig @localhost -p $UNBOUND_PORT foo.example.com. | tee outfile
55 if grep "1.1.1.1" outfile; then
62 echo "> dig foo.example.com. +norec"
63 dig @localhost +norec -p $UNBOUND_PORT foo.example.com. | tee outfile
68 if grep "1.1.1.1" outfile; then