mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Avoid network traffic during test, a bit of cleanup
This commit is contained in:
parent
0e1c266f86
commit
b8e111e379
3 changed files with 4 additions and 8 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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=$!
|
||||
|
|
|
|||
Loading…
Reference in a new issue