From: Kees Monshouwer Date: Mon, 2 Sep 2013 23:28:30 +0000 (+0200) Subject: fix ext-bind non dnssec X-Git-Tag: rec-3.6.0-rc1~458^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8093fe6956f42769a9f40c78cd4e7d46f5c2be1b;p=thirdparty%2Fpdns.git fix ext-bind non dnssec --- diff --git a/regression-tests/start-test-stop b/regression-tests/start-test-stop index e2f6670185..934e92a3ad 100755 --- a/regression-tests/start-test-stop +++ b/regression-tests/start-test-stop @@ -82,6 +82,7 @@ tobind () options { dnssec-enable yes; listen-on port $port { 127.0.0.1; }; + minimal-responses yes; pid-file "pdns.pid"; }; __EOF__ @@ -93,6 +94,12 @@ __EOF__ for zone in $(grep zone named.conf | cut -f2 -d\") do + + if [ ! -f $zone.bind ] + then + cp $zone $zone.bind + fi + if [ "$1" != "unsigned" ] then if [ ! "${zone: 0:16}" = "secure-delegated" ] @@ -104,16 +111,11 @@ __EOF__ ksk="Ksecure-delegated.dnssec-parent.com.+008+54319" fi zsk=$(dnssec-keygen -r/dev/urandom -a RSASHA256 -b 1024 -n ZONE $zone) - fi - if [ ! -f $zone.bind ] - then - cp $zone $zone.bind + echo "\$include $ksk.key ; KSK" >> $zone.bind + echo "\$include $zsk.key ; ZSK" >> $zone.bind fi - echo "\$include $ksk.key ; KSK" >> $zone.bind - echo "\$include $zsk.key ; ZSK" >> $zone.bind - case $1 in nsec) dnssec-signzone -o $zone -f $zone.signed $zone.bind @@ -129,12 +131,13 @@ __EOF__ fi ;; unsigned) - cp ${zonefile} ${zone}.signed + cp ${zone}.bind ${zone}.signed ;; *) echo 'tonsd called with wrong param' exit 1 esac + echo "" >> bind.conf echo "zone \"${zone}\" {" >> bind.conf echo " type master;" >> bind.conf @@ -1018,7 +1021,6 @@ rm pdns*.pid || true if [ -s "./failed_tests" ] then - set +x for t in `cat failed_tests` do echo -e "\n\n$t" diff --git a/regression-tests/very-long-txt/skip.bind b/regression-tests/very-long-txt/skip.bind new file mode 100644 index 0000000000..e69de29bb2