Avoid network traffic during test, a bit of cleanup

This commit is contained in:
Philip Homburg 2022-06-14 17:04:23 +02:00
parent 0e1c266f86
commit b8e111e379
3 changed files with 4 additions and 8 deletions

View file

@ -14,12 +14,7 @@ server:
auth-zone:
name: blanks.example.com
zonefile: "blanks.example.com"
url: "https://www.example.com/blanks.example.com.zone"
zonefile: "blanks.example.com.zone"
url: "https://127.0.0.1:@TOPORT@/blanks.example.com.zone"
for-upstream: yes
for-downstream: yes
#rpz:
# name: blanks.example.com
# zonefile: "blanks.example.com"
# url: "https://127.0.0.1:@TOPORT@/blanks.example.com.zone"

View file

@ -8,10 +8,11 @@ PRE="../.."
. ../common.sh
get_random_port 2
UNBOUND_PORT=$RND_PORT
UNUSED_PORT=$(($RND_PORT + 1))
echo "UNBOUND_PORT=$UNBOUND_PORT" >> .tpkg.var.test
# make config file
sed -e 's/@PORT\@/'$UNBOUND_PORT'/' < blanks_cached_zone.conf > ub.conf
sed -e 's/@PORT\@/'$UNBOUND_PORT'/' -e 's/@TOPORT\@/'$UNUSED_PORT'/' < blanks_cached_zone.conf > ub.conf
# start unbound in the background
$PRE/unbound -d -c ub.conf >unbound.log 2>&1 &
UNBOUND_PID=$!