]> granicus.if.org Git - pdns/commitdiff
fix ext-bind non dnssec
authorKees Monshouwer <mind04@monshouwer.org>
Mon, 2 Sep 2013 23:28:30 +0000 (01:28 +0200)
committermind04 <mind04@monshouwer.org>
Thu, 5 Sep 2013 20:10:10 +0000 (22:10 +0200)
regression-tests/start-test-stop
regression-tests/very-long-txt/skip.bind [new file with mode: 0644]

index e2f667018570589eb1a64c312abdc66bd77aa178..934e92a3ad6c9abe189d32622bc2e12c9dbf154c 100755 (executable)
@@ -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 (file)
index 0000000..e69de29