]> granicus.if.org Git - pdns/commitdiff
auth: test for #7785
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 7 May 2019 07:54:52 +0000 (09:54 +0200)
committermind04 <mind04@monshouwer.org>
Tue, 7 May 2019 14:09:55 +0000 (16:09 +0200)
23 files changed:
modules/tinydnsbackend/data
modules/tinydnsbackend/data.cdb
regression-tests.nobackend/tinydns-data-check/expected_result
regression-tests/backends/bind-master
regression-tests/backends/gsql-common
regression-tests/named.conf
regression-tests/tests/axfr/expected_result
regression-tests/tests/axfr/expected_result.dnssec
regression-tests/tests/axfr/expected_result.nsec3
regression-tests/tests/axfr/expected_result.nsec3-optout
regression-tests/tests/ds-at-unsecure-zone-cut/expected_result.dnssec
regression-tests/tests/secure-cname-to-insecure-child/command [new file with mode: 0755]
regression-tests/tests/secure-cname-to-insecure-child/description [new file with mode: 0644]
regression-tests/tests/secure-cname-to-insecure-child/expected_result [new file with mode: 0644]
regression-tests/tests/secure-cname-to-insecure-child/expected_result.dnssec [new file with mode: 0644]
regression-tests/tests/secure-cname-to-insecure/command [new file with mode: 0755]
regression-tests/tests/secure-cname-to-insecure/description [new file with mode: 0644]
regression-tests/tests/secure-cname-to-insecure/expected_result [new file with mode: 0644]
regression-tests/tests/secure-cname-to-insecure/expected_result.dnssec [new file with mode: 0644]
regression-tests/tests/verify-dnssec-zone/command
regression-tests/zones/dnssec-parent.com
regression-tests/zones/example.com
regression-tests/zones/insecure.dnssec-parent.com [new file with mode: 0644]

index bcbeb035f88d05621d9bb602b0a2a6a49a80e976..8f76c113b8a222e6442b3184f15e9fd944d05c32 100644 (file)
 +toomuchinfo-b.example.com:192.168.99.90:120
 +usa-ns1.usa.example.com:192.168.4.1:120
 +usa-ns2.usa.example.com:192.168.4.2:120
-3ipv6.example.com:200106a80000000102104bfffe4b4c61:120
 :_imap._tcp.example.com:33:\000\000\000\001\000\217\004blah\004test\003com\000:120
 :dsdelegation.example.com:43:m\341\010\001\312\361\352\256\315\253\347afpx\217\220\042EK\365\375\237\332:120
 :escapedtext.example.com:16:\005begin\022the\040\042middle\042\040p\134art\007the\040end:120
 :hightype.example.com:65534:\007\355\046\000\001:120
 :host-0.example.com:108:\000PV\233\000\347:120
 :host-1.example.com:109:\000PV\233\000\347\176W:120
-:hostmaster.mb.example.com:8:\004phil\303\231:120
-:hostmaster.mb.example.com:8:\006sheila\303\231:120
+:hostmaster.mb.example.com:8:\004phil\303\263:120
+:hostmaster.mb.example.com:8:\006sheila\303\263:120
 :hwinfo.example.com:13:\003abc\003def:120
+:ipv6.example.com:28:\040\001\006\250\000\000\000\001\002\020K\377\376KLa:120
 :location.example.com:29:\0002\026\023\213\044\323e\176\273\347\100\000\230\230\020:120
 :location.example.com:29:\000B\026\023t\333\053\274\176\273\347\100\000\230\230\020:120
 :location.example.com:29:\000\022\026\023\213\044\310\373\201D\030\300\000\230\230\020:120
 :location.example.com:29:\000\042\026\023t\3331\320\201D\030\300\000\230\230\020:120
 :multitext.example.com:16:\015text\040part\040one\015text\040part\040two\017text\040part\040three:120
-:phil.mb.example.com:7:\002pc\303\231:120
-:philip.mb.example.com:9:\303\250:120
-:sheila.mb.example.com:7:\004bill\303\231:120
+:phil.mb.example.com:7:\002pc\303\263:120
+:philip.mb.example.com:9:\303\302:120
+:sheila.mb.example.com:7:\004bill\303\263:120
 :text.example.com:16:\025Hi\054\040this\040is\040some\040text:120
 :text0.example.com:16:\014k\075rsa\073\040p\075one:120
 :text1.example.com:16:\014k\075rsa\073\040p\075one:120
@@ -20134,6 +20134,7 @@ C\052.w1.example.com:x.y.z.w2.example.com.:120
 C\052.w2.example.com:x.y.z.w3.example.com.:120
 C\052.w3.example.com:x.y.z.w4.example.com.:120
 C\052.w4.example.com:x.y.z.w5.example.com.:120
+Ccname-to-insecure.example.com:www.insecure.dnssec-parent.com.:120
 Cexternal.example.com:somewhere.else.net.:120
 Cloop1.example.com:loop2.example.com.:120
 Cloop2.example.com:loop3.example.com.:120
@@ -20243,6 +20244,7 @@ Znztest.com:ns1.nztest.com.:ahu.example.com.:2005092501:28800:7200:604800:86400:
 &dnssec-parent.com::ns1.dnssec-parent.com.:3600
 &dnssec-parent.com::ns2.dnssec-parent.com.:3600
 &insecure-delegated.ent.ent.auth-ent.dnssec-parent.com::ns.example.com.:3600
+&insecure.dnssec-parent.com::ns.example.com.:3600
 &secure-delegated.dnssec-parent.com::ns1.secure-delegated.dnssec-parent.com.:3600
 &secure-delegated.dnssec-parent.com::ns2.secure-delegated.dnssec-parent.com.:3600
 +dnssec-parent.com:9.9.9.9:3600
@@ -20254,7 +20256,13 @@ Znztest.com:ns1.nztest.com.:ahu.example.com.:2005092501:28800:7200:604800:86400:
 +ns2.secure-delegated.dnssec-parent.com:5.6.7.8:3600
 +something1.auth-ent.dnssec-parent.com:1.1.2.3:3600
 :secure-delegated.dnssec-parent.com:43:\324\057\010\002\240\271\303\214\323\044\030\052\360\357f\203\015\012\016\205\241\325\211y\311\203N\030\310qw\236\004\010W\267:3600
+Cwww.dnssec-parent.com:www.insecure.dnssec-parent.com.:3600
 Zdnssec-parent.com:ns1.dnssec-parent.com.:ahu.example.com.:2005092501:28800:7200:604800:86400:3600
+#2000081501 auto axfr-get
+&insecure.dnssec-parent.com::ns1.example.com.:120
+&insecure.dnssec-parent.com::ns2.example.com.:120
++www.insecure.dnssec-parent.com:192.0.2.88:120
+Zinsecure.dnssec-parent.com:ns1.example.com.:ahu.example.com.:2000081501:28800:7200:604800:86400:120
 #2005092501 auto axfr-get
 &delegated.dnssec-parent.com::ns1.delegated.dnssec-parent.com.:3600
 &delegated.dnssec-parent.com::ns2.delegated.dnssec-parent.com.:3600
index c41b7e6a89fc684dd5ec66b549a4b5d9de19c92e..317ffaddf2e5134561b0f843acf398475de742c4 100644 (file)
Binary files a/modules/tinydnsbackend/data.cdb and b/modules/tinydnsbackend/data.cdb differ
index bace48899d468cad6c8406727fb517903b629fe3..6dee487ae9b4c39b514d097c73f46c85b1ca7efa 100644 (file)
@@ -1,10 +1,11 @@
-16f36b572fcb576e465f061e417626f8  ../regression-tests/zones/example.com
+db93ba72fcc30da0f775183ee9126edf  ../regression-tests/zones/example.com
 fe49d2784b1bcc3b91ddd5619f0b6cc1  ../regression-tests/zones/test.com
 f0df67fa656d33fd85098cbe43893395  ../regression-tests/zones/test.dyndns
 dee3e8b568549d9450134b555ca73990  ../regression-tests/zones/sub.test.dyndns
 e7c0fd528e8aaedb1ea3b6daaead4de2  ../regression-tests/zones/wtest.com
 42b442de632686e94bde75acf66cf524  ../regression-tests/zones/nztest.com
-aeff58ea1eb6e63096e6da18337be312  ../regression-tests/zones/dnssec-parent.com
+b06133eb32c5bdf346223563501ba8f8  ../regression-tests/zones/dnssec-parent.com
+e9be89b6e5e0da8910c69e46f35d20ab  ../regression-tests/zones/insecure.dnssec-parent.com
 6510bf48aa3ca3501b73a1f510852a34  ../regression-tests/zones/delegated.dnssec-parent.com
 a63dc120391d9df0003f2ec4f461a6af  ../regression-tests/zones/secure-delegated.dnssec-parent.com
 24514dc104b22206daeb973ff9303545  ../regression-tests/zones/minimal.com
@@ -12,4 +13,4 @@ a63dc120391d9df0003f2ec4f461a6af  ../regression-tests/zones/secure-delegated.dns
 b1f775045fa2cf0a3b91aa834af06e49  ../regression-tests/zones/stest.com
 a98864b315f16bcf49ce577426063c42  ../regression-tests/zones/cdnskey-cds-test.com
 9aeed2c26d0c3ba3baf22dfa9568c451  ../regression-tests/zones/2.0.192.in-addr.arpa
-dcf9536d23ecffbdb706aa7d95bfb725  ../modules/tinydnsbackend/data.cdb
+8fa20d959485419535d0406fd4df2a56  ../modules/tinydnsbackend/data.cdb
index f051d0d1e3c78d5788d4e1659e981c15b00b53b8..579935bfb803a4c84987878618990a50c6b3e68b 100644 (file)
@@ -57,13 +57,16 @@ __EOF__
                                mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
                                        "$GMYSQLDB" -e "INSERT INTO domains (name, type, master) VALUES('$zone','SLAVE','127.0.0.1:$port')"
                        fi
-                       securezone $zone bind
-                       if [ $context = bind-dnssec-nsec3 ] || [ $context = bind-dnssec-nsec3-optout ] || [ $context = bind-hybrid-nsec3 ]
+                       if [ $zone != insecure.dnssec-parent.com ]
                        then
-                               $PDNSUTIL --config-dir=. --config-name=bind set-nsec3 $zone "1 $optout 1 abcd" 2>&1
-                       elif [ $context = bind-dnssec-nsec3-narrow ]
-                       then
-                               $PDNSUTIL --config-dir=. --config-name=bind set-nsec3 $zone '1 1 1 abcd' narrow 2>&1
+                               securezone $zone bind
+                               if [ $context = bind-dnssec-nsec3 ] || [ $context = bind-dnssec-nsec3-optout ] || [ $context = bind-hybrid-nsec3 ]
+                               then
+                                       $PDNSUTIL --config-dir=. --config-name=bind set-nsec3 $zone "1 $optout 1 abcd" 2>&1
+                               elif [ $context = bind-dnssec-nsec3-narrow ]
+                               then
+                                       $PDNSUTIL --config-dir=. --config-name=bind set-nsec3 $zone '1 1 1 abcd' narrow 2>&1
+                               fi
                        fi
                        if [ "$zone" = "tsig.com" ]; then
                                $PDNSUTIL --config-dir=. --config-name=bind import-tsig-key test $ALGORITHM $KEY
index 1a9e15eda033501ac335c9998e0a082d6f55c433..99eff8ecf457f5cb33b731d73ec970f687d3d5a0 100644 (file)
@@ -15,7 +15,7 @@ gsql_master()
 
        for zone in $(grep 'zone ' named.conf  | cut -f2 -d\")
        do
-               if [ $context != ${backend}-nodnssec ]
+               if [ $context != ${backend}-nodnssec ] && [ $zone != insecure.dnssec-parent.com ]
                then
                        if [ $context = ${backend}-nsec3 ] || [ $context = ${backend}-nsec3-optout ]
                        then
index 4eaf2a7cae8e46236c75a4f51bce079f54387cf9..2a1a754da754ef671aea68e074dfa15d1f36778b 100644 (file)
@@ -48,6 +48,11 @@ zone "dnssec-parent.com"{
        file "dnssec-parent.com";
 };
 
+zone "insecure.dnssec-parent.com"{
+       type master;
+       file "insecure.dnssec-parent.com";
+};
+
 zone "delegated.dnssec-parent.com"{
        type master;
        file "delegated.dnssec-parent.com";
index edeba95de07153c3ea39a60c08146b4a3707c6d8..d831426e482d7021db15e3d741336b8db272ae2f 100644 (file)
@@ -6,6 +6,7 @@ dnssec-parent.com.      3600    IN      NS      ns2.dnssec-parent.com.
 dnssec-parent.com.     3600    IN      SOA     ns1.dnssec-parent.com. ahu.example.com. 2005092501 28800 7200 604800 86400
 dnssec-parent.com.     3600    IN      SOA     ns1.dnssec-parent.com. ahu.example.com. 2005092501 28800 7200 604800 86400
 insecure-delegated.ent.ent.auth-ent.dnssec-parent.com. 3600    IN      NS      ns.example.com.
+insecure.dnssec-parent.com.    3600    IN      NS      ns.example.com.
 ns1.delegated.dnssec-parent.com.       3600    IN      A       4.5.6.7
 ns1.dnssec-parent.com. 3600    IN      A       1.2.3.4
 ns1.secure-delegated.dnssec-parent.com.        3600    IN      A       1.2.3.4
@@ -16,3 +17,4 @@ secure-delegated.dnssec-parent.com.   3600    IN      DS      54319 8 2 a0b9c38cd324182af0ef668
 secure-delegated.dnssec-parent.com.    3600    IN      NS      ns1.secure-delegated.dnssec-parent.com.
 secure-delegated.dnssec-parent.com.    3600    IN      NS      ns2.secure-delegated.dnssec-parent.com.
 something1.auth-ent.dnssec-parent.com. 3600    IN      A       1.1.2.3
+www.dnssec-parent.com. 3600    IN      CNAME   www.insecure.dnssec-parent.com.
index f580f6c6e7d771c4962e7c38532982485759c80a..e65f647740493e7915846a360778210c66b6c1e1 100644 (file)
@@ -1,6 +1,6 @@
 delegated.dnssec-parent.com.   3600    IN      NS      ns1.delegated.dnssec-parent.com.
 delegated.dnssec-parent.com.   3600    IN      NS      ns2.delegated.dnssec-parent.com.
-delegated.dnssec-parent.com.   86400   IN      NSEC    ns1.dnssec-parent.com. NS RRSIG NSEC
+delegated.dnssec-parent.com.   86400   IN      NSEC    insecure.dnssec-parent.com. NS RRSIG NSEC
 delegated.dnssec-parent.com.   86400   IN      RRSIG   NSEC 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
 dnssec-parent.com.     3600    IN      A       9.9.9.9
 dnssec-parent.com.     3600    IN      NS      ns1.dnssec-parent.com.
@@ -17,6 +17,9 @@ dnssec-parent.com.    86400   IN      RRSIG   NSEC 13 2 86400 [expiry] [inception] [keytag]
 insecure-delegated.ent.ent.auth-ent.dnssec-parent.com. 3600    IN      NS      ns.example.com.
 insecure-delegated.ent.ent.auth-ent.dnssec-parent.com. 86400   IN      NSEC    something1.auth-ent.dnssec-parent.com. NS RRSIG NSEC
 insecure-delegated.ent.ent.auth-ent.dnssec-parent.com. 86400   IN      RRSIG   NSEC 13 6 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
+insecure.dnssec-parent.com.    3600    IN      NS      ns.example.com.
+insecure.dnssec-parent.com.    86400   IN      NSEC    ns1.dnssec-parent.com. NS RRSIG NSEC
+insecure.dnssec-parent.com.    86400   IN      RRSIG   NSEC 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
 ns1.delegated.dnssec-parent.com.       3600    IN      A       4.5.6.7
 ns1.dnssec-parent.com. 3600    IN      A       1.2.3.4
 ns1.dnssec-parent.com. 3600    IN      RRSIG   A 13 3 3600 [expiry] [inception] [keytag] dnssec-parent.com. ...
@@ -33,9 +36,13 @@ secure-delegated.dnssec-parent.com.  3600    IN      DS      54319 8 2 a0b9c38cd324182af0ef668
 secure-delegated.dnssec-parent.com.    3600    IN      NS      ns1.secure-delegated.dnssec-parent.com.
 secure-delegated.dnssec-parent.com.    3600    IN      NS      ns2.secure-delegated.dnssec-parent.com.
 secure-delegated.dnssec-parent.com.    3600    IN      RRSIG   DS 13 3 3600 [expiry] [inception] [keytag] dnssec-parent.com. ...
-secure-delegated.dnssec-parent.com.    86400   IN      NSEC    dnssec-parent.com. NS DS RRSIG NSEC
+secure-delegated.dnssec-parent.com.    86400   IN      NSEC    www.dnssec-parent.com. NS DS RRSIG NSEC
 secure-delegated.dnssec-parent.com.    86400   IN      RRSIG   NSEC 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
 something1.auth-ent.dnssec-parent.com. 3600    IN      A       1.1.2.3
 something1.auth-ent.dnssec-parent.com. 3600    IN      RRSIG   A 13 4 3600 [expiry] [inception] [keytag] dnssec-parent.com. ...
 something1.auth-ent.dnssec-parent.com. 86400   IN      NSEC    delegated.dnssec-parent.com. A RRSIG NSEC
 something1.auth-ent.dnssec-parent.com. 86400   IN      RRSIG   NSEC 13 4 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
+www.dnssec-parent.com. 3600    IN      CNAME   www.insecure.dnssec-parent.com.
+www.dnssec-parent.com. 3600    IN      RRSIG   CNAME 13 3 3600 [expiry] [inception] [keytag] dnssec-parent.com. ...
+www.dnssec-parent.com. 86400   IN      NSEC    dnssec-parent.com. CNAME RRSIG NSEC
+www.dnssec-parent.com. 86400   IN      RRSIG   NSEC 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
index ad2d86817327b24a06568cf56237429a5100da02..425b2b500f42b7c08529ac2ad1b164ae29aa4a7c 100644 (file)
@@ -25,6 +25,9 @@ ent.ent.auth-ent.dnssec-parent.com.   86400   IN      RRSIG   NSEC3 13 3 86400 [expiry] [in
 insecure-delegated.ent.ent.auth-ent.dnssec-parent.com. 3600    IN      NS      ns.example.com.
 insecure-delegated.ent.ent.auth-ent.dnssec-parent.com. 86400   IN      NSEC3   1 0 1 abcd [next owner] NS
 insecure-delegated.ent.ent.auth-ent.dnssec-parent.com. 86400   IN      RRSIG   NSEC3 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
+insecure.dnssec-parent.com.    3600    IN      NS      ns.example.com.
+insecure.dnssec-parent.com.    86400   IN      NSEC3   1 0 1 abcd [next owner] NS
+insecure.dnssec-parent.com.    86400   IN      RRSIG   NSEC3 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
 ns1.delegated.dnssec-parent.com.       3600    IN      A       4.5.6.7
 ns1.dnssec-parent.com. 3600    IN      A       1.2.3.4
 ns1.dnssec-parent.com. 3600    IN      RRSIG   A 13 3 3600 [expiry] [inception] [keytag] dnssec-parent.com. ...
@@ -47,3 +50,7 @@ something1.auth-ent.dnssec-parent.com.        3600    IN      A       1.1.2.3
 something1.auth-ent.dnssec-parent.com. 3600    IN      RRSIG   A 13 4 3600 [expiry] [inception] [keytag] dnssec-parent.com. ...
 something1.auth-ent.dnssec-parent.com. 86400   IN      NSEC3   1 0 1 abcd [next owner] A RRSIG
 something1.auth-ent.dnssec-parent.com. 86400   IN      RRSIG   NSEC3 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
+www.dnssec-parent.com. 3600    IN      CNAME   www.insecure.dnssec-parent.com.
+www.dnssec-parent.com. 3600    IN      RRSIG   CNAME 13 3 3600 [expiry] [inception] [keytag] dnssec-parent.com. ...
+www.dnssec-parent.com. 86400   IN      NSEC3   1 0 1 abcd [next owner] CNAME RRSIG
+www.dnssec-parent.com. 86400   IN      RRSIG   NSEC3 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
index 3e5178ff48c753f4bbd5766b722ccbf9d7ba1f3e..fbd473c1b433e4c57863b7b0e0d9ff2d0c9e4cd6 100644 (file)
@@ -17,6 +17,7 @@ dnssec-parent.com.    86400   IN      RRSIG   DNSKEY 13 2 86400 [expiry] [inception] [keytag
 dnssec-parent.com.     86400   IN      RRSIG   NSEC3 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
 dnssec-parent.com.     86400   IN      RRSIG   NSEC3PARAM 13 2 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
 insecure-delegated.ent.ent.auth-ent.dnssec-parent.com. 3600    IN      NS      ns.example.com.
+insecure.dnssec-parent.com.    3600    IN      NS      ns.example.com.
 ns1.delegated.dnssec-parent.com.       3600    IN      A       4.5.6.7
 ns1.dnssec-parent.com. 3600    IN      A       1.2.3.4
 ns1.dnssec-parent.com. 3600    IN      RRSIG   A 13 3 3600 [expiry] [inception] [keytag] dnssec-parent.com. ...
@@ -39,3 +40,7 @@ something1.auth-ent.dnssec-parent.com.        3600    IN      A       1.1.2.3
 something1.auth-ent.dnssec-parent.com. 3600    IN      RRSIG   A 13 4 3600 [expiry] [inception] [keytag] dnssec-parent.com. ...
 something1.auth-ent.dnssec-parent.com. 86400   IN      NSEC3   1 1 1 abcd [next owner] A RRSIG
 something1.auth-ent.dnssec-parent.com. 86400   IN      RRSIG   NSEC3 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
+www.dnssec-parent.com. 3600    IN      CNAME   www.insecure.dnssec-parent.com.
+www.dnssec-parent.com. 3600    IN      RRSIG   CNAME 13 3 3600 [expiry] [inception] [keytag] dnssec-parent.com. ...
+www.dnssec-parent.com. 86400   IN      NSEC3   1 1 1 abcd [next owner] CNAME RRSIG
+www.dnssec-parent.com. 86400   IN      RRSIG   NSEC3 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
index 459ce0f0894d0809120da828fff043a85523bec4..2b461d47b562f301d22c28874d6b99c8e61dbf8b 100644 (file)
@@ -1,4 +1,4 @@
-1      delegated.dnssec-parent.com.    IN      NSEC    86400   ns1.dnssec-parent.com. NS RRSIG NSEC
+1      delegated.dnssec-parent.com.    IN      NSEC    86400   insecure.dnssec-parent.com. NS RRSIG NSEC
 1      delegated.dnssec-parent.com.    IN      RRSIG   86400   NSEC 13 3 86400 [expiry] [inception] [keytag] dnssec-parent.com. ...
 1      dnssec-parent.com.      IN      RRSIG   3600    SOA 13 2 3600 [expiry] [inception] [keytag] dnssec-parent.com. ...
 1      dnssec-parent.com.      IN      SOA     3600    ns1.dnssec-parent.com. ahu.example.com. 2005092501 28800 7200 604800 86400
diff --git a/regression-tests/tests/secure-cname-to-insecure-child/command b/regression-tests/tests/secure-cname-to-insecure-child/command
new file mode 100755 (executable)
index 0000000..0a91615
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+cleandig www.dnssec-parent.com A dnssec
+
diff --git a/regression-tests/tests/secure-cname-to-insecure-child/description b/regression-tests/tests/secure-cname-to-insecure-child/description
new file mode 100644 (file)
index 0000000..57ed85c
--- /dev/null
@@ -0,0 +1 @@
+Signed CNAME to an A record in an unsigned child zone.
diff --git a/regression-tests/tests/secure-cname-to-insecure-child/expected_result b/regression-tests/tests/secure-cname-to-insecure-child/expected_result
new file mode 100644 (file)
index 0000000..288e33b
--- /dev/null
@@ -0,0 +1,5 @@
+0      www.dnssec-parent.com.  IN      CNAME   3600    www.insecure.dnssec-parent.com.
+0      www.insecure.dnssec-parent.com. IN      A       120     192.0.2.88
+2      .       IN      OPT     32768   
+Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='www.dnssec-parent.com.', qtype=A
diff --git a/regression-tests/tests/secure-cname-to-insecure-child/expected_result.dnssec b/regression-tests/tests/secure-cname-to-insecure-child/expected_result.dnssec
new file mode 100644 (file)
index 0000000..937f3a3
--- /dev/null
@@ -0,0 +1,6 @@
+0      www.dnssec-parent.com.  IN      CNAME   3600    www.insecure.dnssec-parent.com.
+0      www.dnssec-parent.com.  IN      RRSIG   3600    CNAME 13 3 3600 [expiry] [inception] [keytag] dnssec-parent.com. ...
+0      www.insecure.dnssec-parent.com. IN      A       120     192.0.2.88
+2      .       IN      OPT     32768   
+Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='www.dnssec-parent.com.', qtype=A
diff --git a/regression-tests/tests/secure-cname-to-insecure/command b/regression-tests/tests/secure-cname-to-insecure/command
new file mode 100755 (executable)
index 0000000..9ad71fa
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+cleandig cname-to-insecure.example.com A dnssec
+
diff --git a/regression-tests/tests/secure-cname-to-insecure/description b/regression-tests/tests/secure-cname-to-insecure/description
new file mode 100644 (file)
index 0000000..a00dbfb
--- /dev/null
@@ -0,0 +1 @@
+Signed CNAME to an unsigned A.
diff --git a/regression-tests/tests/secure-cname-to-insecure/expected_result b/regression-tests/tests/secure-cname-to-insecure/expected_result
new file mode 100644 (file)
index 0000000..7bcd930
--- /dev/null
@@ -0,0 +1,5 @@
+0      cname-to-insecure.example.com.  IN      CNAME   120     www.insecure.dnssec-parent.com.
+0      www.insecure.dnssec-parent.com. IN      A       120     192.0.2.88
+2      .       IN      OPT     32768   
+Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='cname-to-insecure.example.com.', qtype=A
diff --git a/regression-tests/tests/secure-cname-to-insecure/expected_result.dnssec b/regression-tests/tests/secure-cname-to-insecure/expected_result.dnssec
new file mode 100644 (file)
index 0000000..76458ce
--- /dev/null
@@ -0,0 +1,6 @@
+0      cname-to-insecure.example.com.  IN      CNAME   120     www.insecure.dnssec-parent.com.
+0      cname-to-insecure.example.com.  IN      RRSIG   120     CNAME 13 3 120 [expiry] [inception] [keytag] example.com. ...
+0      www.insecure.dnssec-parent.com. IN      A       120     192.0.2.88
+2      .       IN      OPT     32768   
+Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='cname-to-insecure.example.com.', qtype=A
index 98cf3d9a0746321610d8097b2e9f6cb188a4a75a..30dbe195566e720d5e52dfece41b69c834e775eb 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
-for zone in $(grep 'zone ' named.conf  | cut -f2 -d\" | grep -v '^\(example.com\|nztest.com\)$')
+for zone in $(grep 'zone ' named.conf  | cut -f2 -d\" | grep -v '^\(example.com\|nztest.com\|insecure.dnssec-parent.com\)$')
 do
        TFILE=$(mktemp tmp.XXXXXXXXXX)
        drill -p $port axfr $zone @$nameserver | ldns-read-zone -z -u CDS -u CDNSKEY > $TFILE
index 1a6e88b6cbd5201ee8333f55e2677db96ebb755e..0800ccf1eba52b999fa95af63ecd47020c0ea81a 100644 (file)
@@ -23,3 +23,5 @@ ns1.secure-delegated  IN      A       1.2.3.4
 ns2.secure-delegated   IN      A       5.6.7.8
 insecure-delegated.ent.ent.auth-ent    IN      NS      ns.example.com.
 something1.auth-ent    IN      A       1.1.2.3
+insecure               IN      NS      ns.example.com.
+www                    IN      CNAME   www.insecure
index d797d8440a22d22cf0ceaada24e4021c09ca37b7..2657323450d1594fd0d7768f6d990bad18254808 100644 (file)
@@ -20202,3 +20202,6 @@ philip.mb          IN      MR      phil.mb.example.com.
 
 ; Test that no out of zone data is sent
 _imap._tcp IN SRV 0 1 143 blah.test.com.
+
+;
+cname-to-insecure  IN      CNAME   www.insecure.dnssec-parent.com.
diff --git a/regression-tests/zones/insecure.dnssec-parent.com b/regression-tests/zones/insecure.dnssec-parent.com
new file mode 100644 (file)
index 0000000..b5a3c73
--- /dev/null
@@ -0,0 +1,13 @@
+$TTL 120
+$ORIGIN insecure.dnssec-parent.com.
+@              IN      SOA     ns1.example.com.        ahu.example.com. (
+                       2000081501
+                       8H ; refresh
+                       2H ; retry
+                       1W ; expire
+                       1D ; default_ttl
+                       )
+
+@                      IN      NS      ns1.example.com.
+@                      IN      NS      ns2.example.com.
+www                    IN      A       192.0.2.88