From: Yorgos Thessalonikefs Date: Fri, 24 Nov 2023 14:26:35 +0000 (+0100) Subject: - Use 127.0.0.1 explicitly in tests to avoid delays and errors on newer X-Git-Tag: release-1.19.3rc1~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15a9b0f2be1b5d9d53806c817ed52bc88f8f3a60;p=thirdparty%2Funbound.git - Use 127.0.0.1 explicitly in tests to avoid delays and errors on newer systems. --- diff --git a/doc/Changelog b/doc/Changelog index 894a9a6c7..c424bd832 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/testdata/auth_axfr.tdir/auth_axfr.test b/testdata/auth_axfr.tdir/auth_axfr.test index f9171eea0..39b9f9742 100644 --- a/testdata/auth_axfr.tdir/auth_axfr.test +++ b/testdata/auth_axfr.tdir/auth_axfr.test @@ -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 diff --git a/testdata/auth_https.tdir/auth_https.test b/testdata/auth_https.tdir/auth_https.test index c2471b7d6..a99be1a7a 100644 --- a/testdata/auth_https.tdir/auth_https.test +++ b/testdata/auth_https.tdir/auth_https.test @@ -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 diff --git a/testdata/blanks_cached_zone.tdir/blanks_cached_zone.test b/testdata/blanks_cached_zone.tdir/blanks_cached_zone.test index c405950c3..580cd22b3 100644 --- a/testdata/blanks_cached_zone.tdir/blanks_cached_zone.test +++ b/testdata/blanks_cached_zone.tdir/blanks_cached_zone.test @@ -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 diff --git a/testdata/blanks_https.tdir/blanks_https.test b/testdata/blanks_https.tdir/blanks_https.test index 2c4c5dc7a..7e0ac8936 100644 --- a/testdata/blanks_https.tdir/blanks_https.test +++ b/testdata/blanks_https.tdir/blanks_https.test @@ -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 diff --git a/testdata/cachedb_no_store.tdir/cachedb_no_store.test b/testdata/cachedb_no_store.tdir/cachedb_no_store.test index 352026844..597b80e1a 100644 --- a/testdata/cachedb_no_store.tdir/cachedb_no_store.test +++ b/testdata/cachedb_no_store.tdir/cachedb_no_store.test @@ -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 diff --git a/testdata/fwd_bogus.tdir/fwd_bogus.test b/testdata/fwd_bogus.tdir/fwd_bogus.test index 743b4e66a..c0c38bb25 100644 --- a/testdata/fwd_bogus.tdir/fwd_bogus.test +++ b/testdata/fwd_bogus.tdir/fwd_bogus.test @@ -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 diff --git a/testdata/fwd_capsid.tdir/fwd_capsid.test b/testdata/fwd_capsid.tdir/fwd_capsid.test index 8b49691e5..79dc997f9 100644 --- a/testdata/fwd_capsid.tdir/fwd_capsid.test +++ b/testdata/fwd_capsid.tdir/fwd_capsid.test @@ -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 diff --git a/testdata/fwd_capsid_fallback.tdir/fwd_capsid_fallback.test b/testdata/fwd_capsid_fallback.tdir/fwd_capsid_fallback.test index eba834f14..b392a3958 100644 --- a/testdata/fwd_capsid_fallback.tdir/fwd_capsid_fallback.test +++ b/testdata/fwd_capsid_fallback.tdir/fwd_capsid_fallback.test @@ -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 diff --git a/testdata/fwd_capsid_strip.tdir/fwd_capsid_strip.test b/testdata/fwd_capsid_strip.tdir/fwd_capsid_strip.test index a74f89f79..414ceb074 100644 --- a/testdata/fwd_capsid_strip.tdir/fwd_capsid_strip.test +++ b/testdata/fwd_capsid_strip.tdir/fwd_capsid_strip.test @@ -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 diff --git a/testdata/fwd_capsid_white.tdir/fwd_capsid_white.test b/testdata/fwd_capsid_white.tdir/fwd_capsid_white.test index d287259e0..d4dd9106d 100644 --- a/testdata/fwd_capsid_white.tdir/fwd_capsid_white.test +++ b/testdata/fwd_capsid_white.tdir/fwd_capsid_white.test @@ -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 diff --git a/testdata/fwd_edns_bksec.tdir/fwd_edns_bksec.test b/testdata/fwd_edns_bksec.tdir/fwd_edns_bksec.test index 4acd01e88..93bbef88d 100644 --- a/testdata/fwd_edns_bksec.tdir/fwd_edns_bksec.test +++ b/testdata/fwd_edns_bksec.tdir/fwd_edns_bksec.test @@ -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 diff --git a/testdata/fwd_edns_probe.tdir/fwd_edns_probe.test b/testdata/fwd_edns_probe.tdir/fwd_edns_probe.test index 225120421..2e3ae1dc2 100644 --- a/testdata/fwd_edns_probe.tdir/fwd_edns_probe.test +++ b/testdata/fwd_edns_probe.tdir/fwd_edns_probe.test @@ -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 diff --git a/testdata/fwd_malformed.tdir/fwd_malformed.test b/testdata/fwd_malformed.tdir/fwd_malformed.test index 621605dae..8d6567bef 100644 --- a/testdata/fwd_malformed.tdir/fwd_malformed.test +++ b/testdata/fwd_malformed.tdir/fwd_malformed.test @@ -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 diff --git a/testdata/fwd_no_edns.tdir/fwd_no_edns.test b/testdata/fwd_no_edns.tdir/fwd_no_edns.test index bc209ea09..405d17b09 100644 --- a/testdata/fwd_no_edns.tdir/fwd_no_edns.test +++ b/testdata/fwd_no_edns.tdir/fwd_no_edns.test @@ -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 diff --git a/testdata/fwd_oneport.tdir/fwd_oneport.test b/testdata/fwd_oneport.tdir/fwd_oneport.test index 59d5b0163..930277112 100644 --- a/testdata/fwd_oneport.tdir/fwd_oneport.test +++ b/testdata/fwd_oneport.tdir/fwd_oneport.test @@ -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 diff --git a/testdata/fwd_tcp.tdir/fwd_tcp.test b/testdata/fwd_tcp.tdir/fwd_tcp.test index 9ecc5df15..e887b50d2 100644 --- a/testdata/fwd_tcp.tdir/fwd_tcp.test +++ b/testdata/fwd_tcp.tdir/fwd_tcp.test @@ -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 diff --git a/testdata/fwd_tcp_tc.tdir/fwd_tcp_tc.test b/testdata/fwd_tcp_tc.tdir/fwd_tcp_tc.test index 1a8f9edc1..80f15e438 100644 --- a/testdata/fwd_tcp_tc.tdir/fwd_tcp_tc.test +++ b/testdata/fwd_tcp_tc.tdir/fwd_tcp_tc.test @@ -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 diff --git a/testdata/fwd_three.tdir/fwd_three.test b/testdata/fwd_three.tdir/fwd_three.test index 962d0bf1c..b0c8b9af9 100644 --- a/testdata/fwd_three.tdir/fwd_three.test +++ b/testdata/fwd_three.tdir/fwd_three.test @@ -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 diff --git a/testdata/fwd_three_service.tdir/fwd_three_service.test b/testdata/fwd_three_service.tdir/fwd_three_service.test index 6c5e34a7c..7262cb724 100644 --- a/testdata/fwd_three_service.tdir/fwd_three_service.test +++ b/testdata/fwd_three_service.tdir/fwd_three_service.test @@ -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 diff --git a/testdata/fwd_ttlexpire.tdir/fwd_ttlexpire.test b/testdata/fwd_ttlexpire.tdir/fwd_ttlexpire.test index 41ea3953c..13a83e617 100644 --- a/testdata/fwd_ttlexpire.tdir/fwd_ttlexpire.test +++ b/testdata/fwd_ttlexpire.tdir/fwd_ttlexpire.test @@ -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" diff --git a/testdata/fwd_udp.tdir/fwd_udp.test b/testdata/fwd_udp.tdir/fwd_udp.test index 9bd37adb3..837fe6c88 100644 --- a/testdata/fwd_udp.tdir/fwd_udp.test +++ b/testdata/fwd_udp.tdir/fwd_udp.test @@ -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 diff --git a/testdata/fwd_udp_with_tcp_upstream.tdir/fwd_udp_with_tcp_upstream.test b/testdata/fwd_udp_with_tcp_upstream.tdir/fwd_udp_with_tcp_upstream.test index fad6497be..576e65a0d 100644 --- a/testdata/fwd_udp_with_tcp_upstream.tdir/fwd_udp_with_tcp_upstream.test +++ b/testdata/fwd_udp_with_tcp_upstream.tdir/fwd_udp_with_tcp_upstream.test @@ -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 diff --git a/testdata/fwd_udptmout.tdir/fwd_udptmout.test b/testdata/fwd_udptmout.tdir/fwd_udptmout.test index 8d8996104..1f8feda35 100644 --- a/testdata/fwd_udptmout.tdir/fwd_udptmout.test +++ b/testdata/fwd_udptmout.tdir/fwd_udptmout.test @@ -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 diff --git a/testdata/fwd_waitudp.tdir/fwd_waitudp.test b/testdata/fwd_waitudp.tdir/fwd_waitudp.test index 124788534..5158bd065 100644 --- a/testdata/fwd_waitudp.tdir/fwd_waitudp.test +++ b/testdata/fwd_waitudp.tdir/fwd_waitudp.test @@ -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 diff --git a/testdata/fwd_zero.tdir/fwd_zero.test b/testdata/fwd_zero.tdir/fwd_zero.test index 2e0806d6f..c93918883 100644 --- a/testdata/fwd_zero.tdir/fwd_zero.test +++ b/testdata/fwd_zero.tdir/fwd_zero.test @@ -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 diff --git a/testdata/http_user_agent.tdir/http_user_agent.test b/testdata/http_user_agent.tdir/http_user_agent.test index dce2d476c..958030895 100644 --- a/testdata/http_user_agent.tdir/http_user_agent.test +++ b/testdata/http_user_agent.tdir/http_user_agent.test @@ -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 diff --git a/testdata/local_nodefault.tdir/local_nodefault.test b/testdata/local_nodefault.tdir/local_nodefault.test index 01e0ac042..9bca12261 100644 --- a/testdata/local_nodefault.tdir/local_nodefault.test +++ b/testdata/local_nodefault.tdir/local_nodefault.test @@ -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 diff --git a/testdata/local_norec.tdir/local_norec.test b/testdata/local_norec.tdir/local_norec.test index b32f0aed1..ce01d6b7c 100644 --- a/testdata/local_norec.tdir/local_norec.test +++ b/testdata/local_norec.tdir/local_norec.test @@ -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 diff --git a/testdata/local_nosnoop.tdir/local_nosnoop.test b/testdata/local_nosnoop.tdir/local_nosnoop.test index 1e762d5dc..70a9de5f5 100644 --- a/testdata/local_nosnoop.tdir/local_nosnoop.test +++ b/testdata/local_nosnoop.tdir/local_nosnoop.test @@ -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 diff --git a/testdata/pymod.tdir/pymod.test b/testdata/pymod.tdir/pymod.test index 5ea87282b..8d8ffcc3a 100644 --- a/testdata/pymod.tdir/pymod.test +++ b/testdata/pymod.tdir/pymod.test @@ -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 diff --git a/testdata/pymod_thread.tdir/pymod_thread.test b/testdata/pymod_thread.tdir/pymod_thread.test index 7c55d19ab..2b0464ae8 100644 --- a/testdata/pymod_thread.tdir/pymod_thread.test +++ b/testdata/pymod_thread.tdir/pymod_thread.test @@ -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. diff --git a/testdata/root_zonemd.tdir/root_zonemd.test b/testdata/root_zonemd.tdir/root_zonemd.test index da64ab6e9..0dfada134 100644 --- a/testdata/root_zonemd.tdir/root_zonemd.test +++ b/testdata/root_zonemd.tdir/root_zonemd.test @@ -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" diff --git a/testdata/stat_timer.tdir/stat_timer.test b/testdata/stat_timer.tdir/stat_timer.test index 8a84c3f41..1dfd8dc71 100644 --- a/testdata/stat_timer.tdir/stat_timer.test +++ b/testdata/stat_timer.tdir/stat_timer.test @@ -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" diff --git a/testdata/stub_auth_tc.tdir/stub_auth_tc.test b/testdata/stub_auth_tc.tdir/stub_auth_tc.test index 7b7440274..f50c2b8fc 100644 --- a/testdata/stub_auth_tc.tdir/stub_auth_tc.test +++ b/testdata/stub_auth_tc.tdir/stub_auth_tc.test @@ -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 diff --git a/testdata/zonemd_reload.tdir/zonemd_reload.test b/testdata/zonemd_reload.tdir/zonemd_reload.test index fbdf07511..aac23d6b8 100644 --- a/testdata/zonemd_reload.tdir/zonemd_reload.test +++ b/testdata/zonemd_reload.tdir/zonemd_reload.test @@ -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