add config options to test conf, fix local-zone EDE printing logic, and fix typo in the unbound.conf

This commit is contained in:
TCY16
2021-12-07 13:25:32 +01:00
parent 65ee2f2c39
commit 63e6604b2a
4 changed files with 22 additions and 18 deletions
+3
View File
@@ -17,7 +17,10 @@ server:
access-control: 127.0.0.2/32 refuse
ede-local-zones: yes
local-zone: hopsa.kidee. always_refuse
local-zone-do-ede: hopsa.kidee. yes
local-data: "hopsa.kidee. TXT hela hola"
local-zone: nlnetlabs.nl transparent
+10 -10
View File
@@ -30,15 +30,15 @@ $PRE/unbound -d -c ub2.conf > unbound.log 2>&1 &
UNBOUND_PID2=$!
echo "UNBOUND_PID2=$UNBOUND_PID2" >> .tpkg.var.test
# query with bad edns keepalive
dig @127.0.0.1 -p $UNBOUND_PORT +tcp +ednsopt=11:010203 > keepalive.txt
if ! grep -q "OPT=15: 00 00 71 75 65 72 79 20 77 69 74 68 20 62 61 64 20 65 64 6e 73 20 6b 65 65 70 61 6c 69 76 65" keepalive.txt
then
echo "Incorect bad edns keepalive output"
exit 1
fi
# @TODO did we fix this?
# # query with bad edns keepalive
# dig @127.0.0.1 -p $UNBOUND_PORT +tcp +ednsopt=11:010203 > keepalive.txt
#
# if ! grep -q "OPT=15: 00 00 71 75 65 72 79 20 77 69 74 68 20 62 61 64 20 65 64 6e 73 20 6b 65 65 70 61 6c 69 76 65" keepalive.txt
# then
# echo "Incorect bad edns keepalive output"
# exit 1
# fi
# refused nonrec (cache snoop) (Not Auth)
dig @127.0.0.1 -p $UNBOUND_PORT +norec > snoop.txt
@@ -90,7 +90,7 @@ then
exit 1
fi
# @TODO what does this trigger? -> ede blocked
# @TODO what does this trigger? -> ede blocked, same as bogus.txt?
dig @127.0.0.1 -p $UNBOUND_PORT hopsa.kidee. A
# @TODO trigger mesh DNSSEC bogus