From: tcarpay Date: Mon, 23 Aug 2021 12:26:32 +0000 (+0200) Subject: add localzones test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fba1c302ac876d7324eb167864b66eeeb4159a5b;p=thirdparty%2Funbound.git add localzones test --- diff --git a/testdata/ede.tdir/ede.conf b/testdata/ede.tdir/ede.conf index 2281f463f..1b9635432 100644 --- a/testdata/ede.tdir/ede.conf +++ b/testdata/ede.tdir/ede.conf @@ -10,3 +10,7 @@ server: # @TODO change this to local file auto-trust-anchor-file: "/var/lib/unbound/root.key" + +server: + local-zone: hopsa.kidee. always_refuse + local-data: "hopsa.kidee. TXT hela hola" \ No newline at end of file diff --git a/testdata/ede.tdir/ede.test b/testdata/ede.tdir/ede.test index 2c98f702c..d07b86650 100644 --- a/testdata/ede.tdir/ede.test +++ b/testdata/ede.tdir/ede.test @@ -12,7 +12,7 @@ echo "UNBOUND_PORT=$UNBOUND_PORT" >> .tpkg.var.test echo "FWD_PORT=$FWD_PORT" >> .tpkg.var.test # rewrite config file with created ports -sed -e 's/@PORT\@/'$UNBOUND_PORT'/' < fwd_tcp.conf > ub.conf +sed -e 's/@PORT\@/'$UNBOUND_PORT'/' < ede.conf > ub.conf # start unbound in the background PRE="../.." @@ -27,11 +27,18 @@ dig @127.0.0.1 -p $UNBOUND_PORT +tcp +ednsopt=11:010203 > keepalive.txt # refused nonrec (cache snoop) (Not Auth) dig @127.0.0.1 -p $UNBOUND_PORT +norec > snoop.text +# @TODO dnssec bogus local zones something +dig @127.0.0.1 qwerqwer.hopsa.kidee. TXT +dnssec > bogus.txt + +# refused, not auth ??? + + # DNAME expansion + # teardown kill_pid $UNBOUND_PID \ No newline at end of file