]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Use 127.0.0.1 explicitly in tests to avoid delays and errors on newer
authorYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Fri, 24 Nov 2023 14:26:35 +0000 (15:26 +0100)
committerYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Fri, 24 Nov 2023 14:34:25 +0000 (15:34 +0100)
  systems.

36 files changed:
doc/Changelog
testdata/auth_axfr.tdir/auth_axfr.test
testdata/auth_https.tdir/auth_https.test
testdata/blanks_cached_zone.tdir/blanks_cached_zone.test
testdata/blanks_https.tdir/blanks_https.test
testdata/cachedb_no_store.tdir/cachedb_no_store.test
testdata/fwd_bogus.tdir/fwd_bogus.test
testdata/fwd_capsid.tdir/fwd_capsid.test
testdata/fwd_capsid_fallback.tdir/fwd_capsid_fallback.test
testdata/fwd_capsid_strip.tdir/fwd_capsid_strip.test
testdata/fwd_capsid_white.tdir/fwd_capsid_white.test
testdata/fwd_edns_bksec.tdir/fwd_edns_bksec.test
testdata/fwd_edns_probe.tdir/fwd_edns_probe.test
testdata/fwd_malformed.tdir/fwd_malformed.test
testdata/fwd_no_edns.tdir/fwd_no_edns.test
testdata/fwd_oneport.tdir/fwd_oneport.test
testdata/fwd_tcp.tdir/fwd_tcp.test
testdata/fwd_tcp_tc.tdir/fwd_tcp_tc.test
testdata/fwd_three.tdir/fwd_three.test
testdata/fwd_three_service.tdir/fwd_three_service.test
testdata/fwd_ttlexpire.tdir/fwd_ttlexpire.test
testdata/fwd_udp.tdir/fwd_udp.test
testdata/fwd_udp_with_tcp_upstream.tdir/fwd_udp_with_tcp_upstream.test
testdata/fwd_udptmout.tdir/fwd_udptmout.test
testdata/fwd_waitudp.tdir/fwd_waitudp.test
testdata/fwd_zero.tdir/fwd_zero.test
testdata/http_user_agent.tdir/http_user_agent.test
testdata/local_nodefault.tdir/local_nodefault.test
testdata/local_norec.tdir/local_norec.test
testdata/local_nosnoop.tdir/local_nosnoop.test
testdata/pymod.tdir/pymod.test
testdata/pymod_thread.tdir/pymod_thread.test
testdata/root_zonemd.tdir/root_zonemd.test
testdata/stat_timer.tdir/stat_timer.test
testdata/stub_auth_tc.tdir/stub_auth_tc.test
testdata/zonemd_reload.tdir/zonemd_reload.test

index 894a9a6c7442d3ea16641fa3a662cd77d56a66cf..c424bd8320afe69ac0e7a2521e9982ba329f2e0d 100644 (file)
@@ -1,3 +1,7 @@
+24 November 2023: Yorgos
+       - Use 127.0.0.1 explicitly in tests to avoid delays and errors on
+         newer systems.
+
 9 November 2023: Wouter
        - Fix unit test parse of origin syntax.
 
index f9171eea0728ddf31697fd9aa4e583c57a824f70..39b9f97424ce72cad8acaf46d1aff1c07206f10b 100644 (file)
@@ -7,35 +7,35 @@
 PRE="../.."
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 if grep SERVFAIL outfile; then
        echo "> try again"
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 10
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 10
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 echo "> cat logfiles"
 cat fwd.log 
index c2471b7d6439fc69181bcb76a192172ec56be2fc..a99be1a7ae5d1ed5671ddf181919af321b32766a 100644 (file)
@@ -8,35 +8,35 @@ PRE="../.."
 . ../common.sh
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 if grep SERVFAIL outfile; then
        echo "> try again"
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 10
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 10
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 echo "> cat logfiles"
 cat petal.log 
index c405950c37947f976f895e568d1ee0ee268579dd..580cd22b3fed9be08fb38bd3d018339c679fddb8 100644 (file)
@@ -8,35 +8,35 @@ PRE="../.."
 # do the test
 TARGET=ns1.blanks.example.com.
 echo "> dig $TARGET"
-dig @localhost -p $UNBOUND_PORT $TARGET | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT $TARGET | tee outfile
 if grep SERVFAIL outfile; then
        echo "> try again"
-       dig @localhost -p $UNBOUND_PORT $TARGET | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT $TARGET | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT $TARGET | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT $TARGET | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT $TARGET | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT $TARGET | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT $TARGET | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT $TARGET | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 10
-       dig @localhost -p $UNBOUND_PORT $TARGET | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT $TARGET | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 10
-       dig @localhost -p $UNBOUND_PORT $TARGET | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT $TARGET | tee outfile
 fi
 echo "> cat logfiles"
 cat unbound.log
index 2c4c5dc7a4733fa8e0fc54b5424eca14e9e4ecf1..7e0ac89364d1cf30c48657e2c1754ea174ef67d9 100644 (file)
@@ -8,35 +8,35 @@ PRE="../.."
 # do the test
 TARGET=ns1.blanks.example.com.
 echo "> dig $TARGET"
-dig @localhost -p $UNBOUND_PORT $TARGET | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT $TARGET | tee outfile
 if grep SERVFAIL outfile; then
        echo "> try again"
-       dig @localhost -p $UNBOUND_PORT $TARGET | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT $TARGET | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT $TARGET | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT $TARGET | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT $TARGET | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT $TARGET | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT $TARGET | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT $TARGET | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 10
-       dig @localhost -p $UNBOUND_PORT $TARGET | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT $TARGET | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 10
-       dig @localhost -p $UNBOUND_PORT $TARGET | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT $TARGET | tee outfile
 fi
 echo "> cat logfiles"
 cat petal.log 
index 352026844776efdebbf58f717562f6fdce24cec6..597b80e1ad6bfba93745261c9edaf3160925c4bd 100644 (file)
@@ -13,7 +13,7 @@ get_ldns_testns
 # query for a text record that is stored by unbound's cache and cachedb
 # in the testframe cache.
 echo "> dig txt1.example.com."
-dig @localhost -p $UNBOUND_PORT txt1.example.com. TXT | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT txt1.example.com. TXT | tee outfile
 if grep "example text message" outfile; then
        echo "OK"
 else
@@ -31,7 +31,7 @@ echo "FWD_PID=$FWD_PID" >> .tpkg.var.test
 wait_ldns_testns_up fwd2.log
 
 echo "> dig txt1.example.com. from unbound cache"
-dig @localhost -p $UNBOUND_PORT txt1.example.com. TXT | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT txt1.example.com. TXT | tee outfile
 if grep "example text message" outfile; then
        echo "OK"
 else
@@ -50,7 +50,7 @@ else
 fi
 
 echo "> dig txt1.example.com. from cachedb"
-dig @localhost -p $UNBOUND_PORT txt1.example.com. TXT | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT txt1.example.com. TXT | tee outfile
 if grep "example text message" outfile; then
        echo "OK"
 else
@@ -84,7 +84,7 @@ wait_unbound_up unbound2.log
 
 echo ""
 echo "> dig txt1.example.com."
-dig @localhost -p $UNBOUND_PORT txt1.example.com. TXT | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT txt1.example.com. TXT | tee outfile
 if grep "example text message" outfile; then
        echo "OK"
 else
@@ -102,7 +102,7 @@ echo "FWD_PID=$FWD_PID" >> .tpkg.var.test
 wait_ldns_testns_up fwd4.log
 
 echo "> dig txt1.example.com. from unbound cache"
-dig @localhost -p $UNBOUND_PORT txt1.example.com. TXT | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT txt1.example.com. TXT | tee outfile
 if grep "example text message" outfile; then
        echo "OK"
 else
@@ -121,7 +121,7 @@ else
 fi
 
 echo "> dig txt1.example.com. from cachedb, but that has no message stored"
-dig @localhost -p $UNBOUND_PORT txt1.example.com. TXT | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT txt1.example.com. TXT | tee outfile
 if grep "SERVFAIL" outfile; then
        echo "OK"
 else
index 743b4e66a69416eb4565c3ece1da57e6dce11363..c0c38bb25f09fdbdf8443124a7ca8c30c0da676e 100644 (file)
@@ -8,7 +8,7 @@ PRE="../.."
 
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index 8b49691e5fd5a66fa7fc94ce719a08108917ed50..79dc997f99437c4ac08f4efc72a4cab145397494 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index eba834f14dfd95429a9538ebd1045ea02ebfaea6..b392a3958d88dbdbc74ec86d15012424a40ed42f 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT wwwabcdefghijklmnopqrstuvwxyzwww.example.com | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT wwwabcdefghijklmnopqrstuvwxyzwww.example.com | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index a74f89f79af214d8fa9f1416e24652034d47c00d..414ceb074ac2d95e03200c2e61955b9f8dfbfd11 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT wwwabcdefghijklmnopqrstuvwxyzwww.example.com | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT wwwabcdefghijklmnopqrstuvwxyzwww.example.com | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat fwd2.log 
index d287259e045b77c8bc2cd6e02a8eba2e5f8ecbda..d4dd9106d1611c54be594ac811f6e22842f67a6c 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT wwwabcdefghijklmnopqrstuvwxyzwww.example.com | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT wwwabcdefghijklmnopqrstuvwxyzwww.example.com | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat fwd2.log 
index 4acd01e88dd135db2c3f69eba965834f47af1dbd..93bbef88d7daf0dd03bff5d37e62f53e285f6769 100644 (file)
@@ -10,7 +10,7 @@ PRE="../.."
 # First the nasty name.
 # The server should not have performed EDNS fallback and cached it.
 echo "> dig nasty.example.com."
-dig @localhost -p $UNBOUND_PORT nasty.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT nasty.example.com. | tee outfile
 
 # no answer possible for it.
 echo "> check backed-off"
@@ -27,7 +27,7 @@ fi
 # Then the www name.
 # See if we can still get the EDNS data.
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index 225120421cb06cab00d847003b49986222db6497..2e3ae1dc2a90bbecedee72bd48499d50227028ea 100644 (file)
@@ -10,7 +10,7 @@ PRE="../.."
 # First the nasty name.
 # The server should not have performed EDNS fallback and cached it.
 echo "> dig nasty.example.com."
-dig @localhost -p $UNBOUND_PORT nasty.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT nasty.example.com. | tee outfile
 
 # no answer possible for it.
 echo "> check no-answer"
@@ -27,7 +27,7 @@ fi
 # Then the www name.
 # See if we can still get the EDNS data.
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index 621605daeee846af65e500638a340735e14aab9a..8d6567bef3e81c6363b274320c8b14aff058b277 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index bc209ea09c507706d5874a9f1f223f76d2c5edd7..405d17b09dcb5a1cb5f7c87dd83aee30eab150da 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index 59d5b016308efebaaf61ec9085b25fc346e967af..93027711230075eae5b7b0e0f2b38d0ed4655692 100644 (file)
@@ -11,7 +11,7 @@ PRE="../.."
 # so that all three queries get timeouts during the later test.
 #
 #echo "> dig www1.example.com."
-#dig @localhost -p $UNBOUND_PORT www1.example.com. | tee outfile
+#dig @127.0.0.1 -p $UNBOUND_PORT www1.example.com. | tee outfile
 #echo "> cat logfiles"
 #cat fwd.log 
 #cat unbound.log
@@ -24,17 +24,17 @@ PRE="../.."
 #fi
 
 echo "> do queries"
-dig @localhost -p $UNBOUND_PORT www1.example.com. >outfile1 &
+dig @127.0.0.1 -p $UNBOUND_PORT www1.example.com. >outfile1 &
 digpid1=$!
-dig @localhost -p $UNBOUND_PORT www2.example.com. >outfile2 &
+dig @127.0.0.1 -p $UNBOUND_PORT www2.example.com. >outfile2 &
 digpid2=$!
-dig @localhost -p $UNBOUND_PORT www3.example.com. >outfile3 &
+dig @127.0.0.1 -p $UNBOUND_PORT www3.example.com. >outfile3 &
 digpid3=$!
-dig @localhost -p $UNBOUND_PORT www4.example.com. >outfile4 &
+dig @127.0.0.1 -p $UNBOUND_PORT www4.example.com. >outfile4 &
 digpid4=$!
-dig @localhost -p $UNBOUND_PORT www5.example.com. >outfile5 &
+dig @127.0.0.1 -p $UNBOUND_PORT www5.example.com. >outfile5 &
 digpid5=$!
-dig @localhost -p $UNBOUND_PORT www6.example.com. >outfile6 &
+dig @127.0.0.1 -p $UNBOUND_PORT www6.example.com. >outfile6 &
 digpid6=$!
 sleep 12
 kill -9 $digpid1
index 9ecc5df153e9f8741ffc14ad4305dad633a307cb..e887b50d257fb1b3e75ee9532fb842e60cd065d0 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig www.example.com."
-dig @localhost +vc -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 +vc -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index 1a8f9edc1e64c7a5df382fac62887d51e4efc930..80f15e438b2d013e177c477bf0be025d057a11f7 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index 962d0bf1c12b3fa0ec66dfba89b7d272344ea54e..b0c8b9af91864a5716e272cea4a4db604a8c0030 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig www1.example.com."
-dig @localhost -p $UNBOUND_PORT www1.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www1.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
@@ -20,11 +20,11 @@ else
 fi
 
 echo "> do three queries"
-dig @localhost -p $UNBOUND_PORT +retry=10 +time=1 www1.example.com. >outfile1 &
+dig @127.0.0.1 -p $UNBOUND_PORT +retry=10 +time=1 www1.example.com. >outfile1 &
 digpid1=$!
-dig @localhost -p $UNBOUND_PORT +retry=10 +time=1 www2.example.com. >outfile2 &
+dig @127.0.0.1 -p $UNBOUND_PORT +retry=10 +time=1 www2.example.com. >outfile2 &
 digpid2=$!
-dig @localhost -p $UNBOUND_PORT +retry=10 +time=1 www3.example.com. >outfile3 &
+dig @127.0.0.1 -p $UNBOUND_PORT +retry=10 +time=1 www3.example.com. >outfile3 &
 digpid3=$!
 sleep 5
 kill -9 $digpid1
index 6c5e34a7c3053adcbcd62e5a5b50d0f0e5cc8e3d..7262cb724cbe610b36782d2ba044c65b198f464c 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig www1.example.com."
-dig @localhost -p $UNBOUND_PORT www1.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www1.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
@@ -20,11 +20,11 @@ else
 fi
 
 echo "> do three queries"
-dig @localhost -p $UNBOUND_PORT www1.example.com. >outfile1 &
+dig @127.0.0.1 -p $UNBOUND_PORT www1.example.com. >outfile1 &
 digpid1=$!
-dig @localhost -p $UNBOUND_PORT www2.example.com. >outfile2 &
+dig @127.0.0.1 -p $UNBOUND_PORT www2.example.com. >outfile2 &
 digpid2=$!
-dig @localhost -p $UNBOUND_PORT www3.example.com. >outfile3 &
+dig @127.0.0.1 -p $UNBOUND_PORT www3.example.com. >outfile3 &
 digpid3=$!
 sleep 5
 kill -9 $digpid1
index 41ea3953ccb642d6260e89ee2e54b58e129bd528..13a83e617c4c45e3c42a59e0dae2b0bb57d9edab 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> check answer"
 if grep "10.20.30.40" outfile; then
        echo "OK"
@@ -20,7 +20,7 @@ sleep 4
 # query again
 rm outfile
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> check answer"
 if grep "10.20.30.40" outfile; then
        echo "OK"
index 9bd37adb3a7ac5698b580bc47f813befba2c8e86..837fe6c8806c8b8a6121937b4404784917572080 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index fad6497beb15eb0804b60a2b1c4477522835b32d..576e65a0d1fc4a2c0bc948e826f5093f176e2a79 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig tcp.example.com."
-dig @localhost -p $UNBOUND_PORT tcp.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT tcp.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
@@ -20,7 +20,7 @@ else
 fi
 
 echo "> dig udp.example.com."
-dig @localhost -p $UNBOUND_PORT udp.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT udp.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log
 cat unbound.log
index 8d89961047bc67b32ae25317397108e4a9bc64a4..1f8feda357d5bce66960b765c531a9964c0b0b1d 100644 (file)
@@ -11,7 +11,7 @@ PRE="../.."
 # so that all three queries get timeouts during the later test.
 #
 #echo "> dig www1.example.com."
-#dig @localhost -p $UNBOUND_PORT www1.example.com. | tee outfile
+#dig @127.0.0.1 -p $UNBOUND_PORT www1.example.com. | tee outfile
 #echo "> cat logfiles"
 #cat fwd.log 
 #cat unbound.log
@@ -24,17 +24,17 @@ PRE="../.."
 #fi
 
 echo "> do queries"
-dig @localhost -p $UNBOUND_PORT www1.example.com. >outfile1 &
+dig @127.0.0.1 -p $UNBOUND_PORT www1.example.com. >outfile1 &
 digpid1=$!
-dig @localhost -p $UNBOUND_PORT www2.example.com. >outfile2 &
+dig @127.0.0.1 -p $UNBOUND_PORT www2.example.com. >outfile2 &
 digpid2=$!
-dig @localhost -p $UNBOUND_PORT www3.example.com. >outfile3 &
+dig @127.0.0.1 -p $UNBOUND_PORT www3.example.com. >outfile3 &
 digpid3=$!
-dig @localhost -p $UNBOUND_PORT www4.example.com. >outfile4 &
+dig @127.0.0.1 -p $UNBOUND_PORT www4.example.com. >outfile4 &
 digpid4=$!
-dig @localhost -p $UNBOUND_PORT www5.example.com. >outfile5 &
+dig @127.0.0.1 -p $UNBOUND_PORT www5.example.com. >outfile5 &
 digpid5=$!
-dig @localhost -p $UNBOUND_PORT www6.example.com. >outfile6 &
+dig @127.0.0.1 -p $UNBOUND_PORT www6.example.com. >outfile6 &
 digpid6=$!
 
 sleep 15
index 1247885348acee60c09701dbb3eebd89b140c661..5158bd0652322c74d6d186f1a8958fff6ad74a5b 100644 (file)
@@ -11,7 +11,7 @@ PRE="../.."
 # so that all three queries get timeouts during the later test.
 #
 #echo "> dig www1.example.com."
-#dig @localhost -p $UNBOUND_PORT www1.example.com. | tee outfile
+#dig @127.0.0.1 -p $UNBOUND_PORT www1.example.com. | tee outfile
 #echo "> cat logfiles"
 #cat fwd.log 
 #cat unbound.log
@@ -24,11 +24,11 @@ PRE="../.."
 #fi
 
 echo "> do three queries"
-dig @localhost -p $UNBOUND_PORT www1.example.com. >outfile1 &
+dig @127.0.0.1 -p $UNBOUND_PORT www1.example.com. >outfile1 &
 digpid1=$!
-dig @localhost -p $UNBOUND_PORT www2.example.com. >outfile2 &
+dig @127.0.0.1 -p $UNBOUND_PORT www2.example.com. >outfile2 &
 digpid2=$!
-dig @localhost -p $UNBOUND_PORT www3.example.com. >outfile3 &
+dig @127.0.0.1 -p $UNBOUND_PORT www3.example.com. >outfile3 &
 digpid3=$!
 sleep 15
 kill -9 $digpid1
index 2e0806d6f401779b70886771582b50d2d76bd289..c939188831ac8eaf70f3f50fb1422336d3b0c6f4 100644 (file)
@@ -17,7 +17,7 @@ echo "b4380100000100000000000003777777076578616d706c6503636f6d00" | xxd -r -p |
 
 # now test that server is still up
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index dce2d476c8f6c01a39d79b737029ce6e3fb92898..95803089506c25ece18a10c51117d5832c2e3933 100644 (file)
@@ -9,35 +9,35 @@ PRE="../.."
 # Query and check check that we get the correct answer from the auth_zone
 query () {
        echo "> dig www.example.com."
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
        if grep SERVFAIL outfile; then
                echo "> try again"
-               dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+               dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
        fi
        if grep SERVFAIL outfile; then
                echo "> try again"
                sleep 1
-               dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+               dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
        fi
        if grep SERVFAIL outfile; then
                echo "> try again"
                sleep 1
-               dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+               dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
        fi
        if grep SERVFAIL outfile; then
                echo "> try again"
                sleep 1
-               dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+               dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
        fi
        if grep SERVFAIL outfile; then
                echo "> try again"
                sleep 10
-               dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+               dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
        fi
        if grep SERVFAIL outfile; then
                echo "> try again"
                sleep 10
-               dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+               dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
        fi
        echo "> check answer"
        if grep "1.2.3.4" outfile; then
index 01e0ac0427171c26d61618ea737d8b50d80fff95..9bca122610f5a15740307d920c6e35a3f8130d3e 100644 (file)
@@ -9,7 +9,7 @@ PRE="../.."
 # this one should have NXDOMAIN builtin
 #
 echo "> dig 1.0.31.172.in-addr.arpa."
-dig @localhost -p $UNBOUND_PORT 1.0.31.172.in-addr.arpa. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT 1.0.31.172.in-addr.arpa. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
@@ -23,7 +23,7 @@ fi
 
 # this one should give our own data as the reply
 echo "> dig 1.0.30.172.in-addr.arpa."
-dig @localhost -p $UNBOUND_PORT 1.0.30.172.in-addr.arpa. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT 1.0.30.172.in-addr.arpa. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
@@ -38,7 +38,7 @@ fi
 # this one should give our own data as the reply
 # but different trailing dot in unbound.conf file
 echo "> dig 1.0.29.172.in-addr.arpa."
-dig @localhost -p $UNBOUND_PORT 1.0.29.172.in-addr.arpa. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT 1.0.29.172.in-addr.arpa. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index b32f0aed1a8cc0e42fbcebc62143bbae303433d9..ce01d6b7c85a814b056b5908a6e61412e1d36a81 100644 (file)
@@ -11,7 +11,7 @@ PRE="../.."
 # foo.example.com is available through local-data (and recursion...).
 #
 echo "> dig www.example.com. +RD"
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
@@ -24,7 +24,7 @@ else
 fi
 
 echo "> dig www.example.com. +norec"
-dig @localhost +norec -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 +norec -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
@@ -37,7 +37,7 @@ else
 fi
 
 echo "> dig foo.example.com. +RD"
-dig @localhost -p $UNBOUND_PORT foo.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT foo.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
@@ -50,7 +50,7 @@ else
 fi
 
 echo "> dig foo.example.com. +norec"
-dig @localhost +norec -p $UNBOUND_PORT foo.example.com. | tee outfile
+dig @127.0.0.1 +norec -p $UNBOUND_PORT foo.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index 1e762d5dc921bdeec7c89acb14765b1b4c760504..70a9de5f5579215ca30c20b0e77512333ca8f86d 100644 (file)
@@ -14,7 +14,7 @@ PRE="../.."
 #      dig +norec for www does not work any more.
 #
 echo "> dig www.example.com. +RD"
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
@@ -27,7 +27,7 @@ else
 fi
 
 echo "> dig www.example.com. +norec"
-dig @localhost +norec -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 +norec -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
@@ -47,7 +47,7 @@ else
 fi
 
 echo "> dig foo.example.com. +RD"
-dig @localhost -p $UNBOUND_PORT foo.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT foo.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
@@ -60,7 +60,7 @@ else
 fi
 
 echo "> dig foo.example.com. +norec"
-dig @localhost +norec -p $UNBOUND_PORT foo.example.com. | tee outfile
+dig @127.0.0.1 +norec -p $UNBOUND_PORT foo.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index 5ea87282b6f767a2a2a75b4a40f32c169b380297..8d8ffcc3a56f08c7649a13a3a1237270a65410b9 100644 (file)
@@ -22,7 +22,7 @@ fi
 
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
@@ -35,7 +35,7 @@ else
 fi
 
 echo "> dig www2.example.com."
-dig @localhost -p $UNBOUND_PORT www2.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www2.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log 
 cat unbound.log
index 7c55d19ab49e5a8fb09f79fdbcbe9691ee6b241d..2b0464ae8c473138335ed49a58885a0dc12b3906 100644 (file)
@@ -23,16 +23,16 @@ fi
 # do the test
 # generate some load.
 echo "> dig www[1-10].example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile1 &
-dig @localhost -p $UNBOUND_PORT www2.example.com. | tee outfile3 &
-dig @localhost -p $UNBOUND_PORT www3.example.com. | tee outfile2 &
-dig @localhost -p $UNBOUND_PORT www4.example.com. | tee outfile4 &
-dig @localhost -p $UNBOUND_PORT www5.example.com. | tee outfile5 &
-dig @localhost -p $UNBOUND_PORT www6.example.com. | tee outfile6 &
-dig @localhost -p $UNBOUND_PORT www7.example.com. | tee outfile7 &
-dig @localhost -p $UNBOUND_PORT www8.example.com. | tee outfile8 &
-dig @localhost -p $UNBOUND_PORT www9.example.com. | tee outfile9 &
-dig @localhost -p $UNBOUND_PORT www10.example.com. | tee outfile10 &
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile1 &
+dig @127.0.0.1 -p $UNBOUND_PORT www2.example.com. | tee outfile3 &
+dig @127.0.0.1 -p $UNBOUND_PORT www3.example.com. | tee outfile2 &
+dig @127.0.0.1 -p $UNBOUND_PORT www4.example.com. | tee outfile4 &
+dig @127.0.0.1 -p $UNBOUND_PORT www5.example.com. | tee outfile5 &
+dig @127.0.0.1 -p $UNBOUND_PORT www6.example.com. | tee outfile6 &
+dig @127.0.0.1 -p $UNBOUND_PORT www7.example.com. | tee outfile7 &
+dig @127.0.0.1 -p $UNBOUND_PORT www8.example.com. | tee outfile8 &
+dig @127.0.0.1 -p $UNBOUND_PORT www9.example.com. | tee outfile9 &
+dig @127.0.0.1 -p $UNBOUND_PORT www10.example.com. | tee outfile10 &
 
 wait  # wait for all jobs to complete.
 
index da64ab6e9c2d03e8094177bc6091964c079adb88..0dfada1342176a1568be9639b23da720bcb07d9b 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT . SOA | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT . SOA | tee outfile
 echo "> check answer"
 if grep root-servers outfile | grep "nstld.verisign-grs.com"; then
        echo "OK"
index 8a84c3f41d176ded2bcbdf1c568fba5af3b01683..1dfd8dc71d2103be7a4d89392c2bcd0f2b6b0796 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # test if unbound is up 
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> check answer"
 if grep "10.20.30.40" outfile; then
        echo "OK"
index 7b7440274a6027f27997da2e4c560cd8495d5808..f50c2b8fc273de74b881093acdf0ac7367e9c917 100644 (file)
@@ -7,7 +7,7 @@
 PRE="../.."
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 echo "> cat logfiles"
 cat fwd.log
 cat unbound.log
index fbdf0751130659c0fa8081301dbbfe2b93551e0b..aac23d6b848e02907852f20770d2e5fff427f915 100644 (file)
@@ -7,35 +7,35 @@
 PRE="../.."
 # do the test
 echo "> dig www.example.com."
-dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 if grep SERVFAIL outfile; then
        echo "> try again"
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 1
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 10
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 if grep SERVFAIL outfile; then
        echo "> try again"
        sleep 10
-       dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
+       dig @127.0.0.1 -p $UNBOUND_PORT www.example.com. | tee outfile
 fi
 echo "> cat logfiles"
 cat fwd.log