]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
add localzones test
authortcarpay <tom@nlnetlabs.nl>
Mon, 23 Aug 2021 12:26:32 +0000 (14:26 +0200)
committertcarpay <tom@nlnetlabs.nl>
Mon, 23 Aug 2021 12:26:32 +0000 (14:26 +0200)
testdata/ede.tdir/ede.conf
testdata/ede.tdir/ede.test

index 2281f463fc4dfe8bf5a199d49b617360e39e01a7..1b96354323460e561ad6505186fcf27e87f1196b 100644 (file)
@@ -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
index 2c98f702c7fda0d79db7173291f921c3be033693..d07b866507747216f80a66d71f6c3abf230fcaa8 100644 (file)
@@ -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