From: Peter van Dijk Date: Thu, 11 Apr 2019 13:24:32 +0000 (+0200) Subject: auth: export TAs and forward zones for rec testing with auth zones X-Git-Tag: dnsdist-1.4.0-alpha2~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7713%2Fhead;p=thirdparty%2Fpdns.git auth: export TAs and forward zones for rec testing with auth zones --- 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