From 8b59b66cf781bac2f2d0f634c6a4eabb46882b49 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 11 Apr 2019 15:24:32 +0200 Subject: [PATCH] auth: export TAs and forward zones for rec testing with auth zones --- regression-tests/.gitignore | 2 ++ regression-tests/tests/00dnssec-grabkeys/command | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/regression-tests/.gitignore b/regression-tests/.gitignore index be394d170c..5f63aec9e1 100644 --- a/regression-tests/.gitignore +++ b/regression-tests/.gitignore @@ -32,3 +32,5 @@ /remotebackend-access.log /pdns.lmdb* /pdns2.lmdb* +/recursor.forward-zones-file +/recursor.trustedkeys.lua diff --git a/regression-tests/tests/00dnssec-grabkeys/command b/regression-tests/tests/00dnssec-grabkeys/command index 443a8e1b71..234627a672 100755 --- a/regression-tests/tests/00dnssec-grabkeys/command +++ b/regression-tests/tests/00dnssec-grabkeys/command @@ -1,6 +1,8 @@ #!/usr/bin/env bash rm -f trustedkeys rm -f unbound-host.conf +rm -f recursor.trustedkeys.lua +rm -f recursor.forward-zones-file for zone in $(grep 'zone ' named.conf | cut -f2 -d\") addzone.com do @@ -12,6 +14,8 @@ do echo " name: $zone" >> unbound-host.conf echo " stub-addr: $nameserver@$port" >> unbound-host.conf echo "" >> unbound-host.conf + + echo "$zone=$nameserver:$port" >> recursor.forward-zones-file done echo "server:" >> unbound-host.conf @@ -22,3 +26,5 @@ if [ -e trustedkeys ] then cat trustedkeys | grep -c '.' # because wc -l is not portable enough! fi + +ldns-key2ds -n trustedkeys | awk -F '\t' '{print "addTA(\""$1"\", \""$5"\")"}' > recursor.trustedkeys.lua \ No newline at end of file -- 2.47.2