forked from PowerDNS/pdns
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request PowerDNS#3 from mind04/rfc2136/hacking
show ent records in mysqldiff output
- Loading branch information
Showing
8 changed files
with
180 additions
and
2 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
regression-tests/1dyndns-update-nsec3params-orderinfo-and-auth/command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/sh | ||
|
||
NSEC3=`cleandig test.dyndns NSEC3PARAM hidesoadetails dnssec` | ||
echo $NSEC3 | ||
HAVENSEC3=`echo $NSEC3 | egrep 'IN[[:space:]]NSEC3PARAM' | wc -l` | ||
|
||
cleandig c.host.test.dyndns A hidesoadetails dnssec | ||
|
||
cleannsupdate <<! | ||
server $nameserver $port | ||
zone test.dyndns | ||
update add test.dyndns. 3600 NSEC3PARAM 1 1 10 DCBE | ||
update add b.host.test.dyndns. 3600 A 127.0.0.1 | ||
send | ||
answer | ||
! | ||
|
||
cleandig test.dyndns NSEC3PARAM hidesoadetails dnssec | ||
cleandig c.host.test.dyndns A hidesoadetails dnssec | ||
|
||
cleannsupdate <<! | ||
server $nameserver $port | ||
zone test.dyndns | ||
update DELETE test.dyndns. NSEC3PARAM | ||
update DELETE b.host.test.dyndns. 3600 A 127.0.0.1 | ||
send | ||
answer | ||
! | ||
|
||
cleandig test.dyndns NSEC3PARAM hidesoadetails dnssec | ||
cleandig c.host.test.dyndns A hidesoadetails dnssec | ||
|
||
if [ $HAVENSEC3 != 0 ] | ||
then | ||
cleannsupdate <<! | ||
server $nameserver $port | ||
zone test.dyndns | ||
update add test.dyndns. 3600 NSEC3PARAM 1 1 1 abcd | ||
send | ||
answer | ||
! | ||
|
||
cleandig test.dyndns NSEC3PARAM hidesoadetails dnssec | ||
cleandig c.host.test.dyndns A hidesoadetails dnssec | ||
fi |
2 changes: 2 additions & 0 deletions
2
regression-tests/1dyndns-update-nsec3params-orderinfo-and-auth/description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This test checks if adding/updating an NSEC3PARAM with other records in one go works. | ||
When adding/updating the NSEC3PARAM, the new values must also be used on the other records as well. |
52 changes: 52 additions & 0 deletions
52
regression-tests/1dyndns-update-nsec3params-orderinfo-and-auth/expected_result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
1 test.dyndns. IN NSEC 86400 cname1.test.dyndns. NS SOA MX RRSIG NSEC DNSKEY 1 test.dyndns. IN RRSIG 3600 SOA 8 2 3600 [expiry] [inception] [keytag] test.dyndns. ... 1 test.dyndns. IN RRSIG 86400 NSEC 8 2 86400 [expiry] [inception] [keytag] test.dyndns. ... 1 test.dyndns. IN SOA 3600 ns1.test.dyndns. ahu.example.dyndns. [serial] 28800 7200 604800 86400 2 . IN OPT 32768 Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 Reply to question for qname='test.dyndns.', qtype=NSEC3PARAM | ||
1 a.host.test.dyndns. IN NSEC 86400 e.host.test.dyndns. A RRSIG NSEC | ||
1 a.host.test.dyndns. IN RRSIG 86400 NSEC 8 4 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN NSEC 86400 cname1.test.dyndns. NS SOA MX RRSIG NSEC DNSKEY | ||
1 test.dyndns. IN RRSIG 3600 SOA 8 2 3600 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN RRSIG 86400 NSEC 8 2 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN SOA 3600 ns1.test.dyndns. ahu.example.dyndns. [serial] 28800 7200 604800 86400 | ||
2 . IN OPT 32768 | ||
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 | ||
Reply to question for qname='c.host.test.dyndns.', qtype=A | ||
Answer: | ||
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] | ||
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 | ||
;; ZONE SECTION: | ||
;test.dyndns. IN SOA | ||
|
||
0 test.dyndns. IN NSEC3PARAM 86400 1 0 10 dcbe | ||
0 test.dyndns. IN RRSIG 86400 NSEC3PARAM 8 2 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
2 . IN OPT 32768 | ||
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 | ||
Reply to question for qname='test.dyndns.', qtype=NSEC3PARAM | ||
1 ac2jl1kik929tr9i5rfcmbucm547n51a.test.dyndns. IN NSEC3 86400 1 1 10 dcbe EE295AK1NDT9O0RLL1A4RPPB4NAOV4QM | ||
1 ac2jl1kik929tr9i5rfcmbucm547n51a.test.dyndns. IN RRSIG 86400 NSEC3 8 3 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 lavvds84bcal6n6qnavn3q1u4jcpjev9.test.dyndns. IN NSEC3 86400 1 1 10 dcbe PE3H59F3RU6VID4OK0T4TSU6D0NDRVHS A RRSIG | ||
1 lavvds84bcal6n6qnavn3q1u4jcpjev9.test.dyndns. IN RRSIG 86400 NSEC3 8 3 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN RRSIG 3600 SOA 8 2 3600 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN SOA 3600 ns1.test.dyndns. ahu.example.dyndns. [serial] 28800 7200 604800 86400 | ||
2 . IN OPT 32768 | ||
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 | ||
Reply to question for qname='c.host.test.dyndns.', qtype=A | ||
Answer: | ||
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] | ||
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 | ||
;; ZONE SECTION: | ||
;test.dyndns. IN SOA | ||
|
||
1 test.dyndns. IN NSEC 86400 cname1.test.dyndns. NS SOA MX RRSIG NSEC DNSKEY | ||
1 test.dyndns. IN RRSIG 3600 SOA 8 2 3600 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN RRSIG 86400 NSEC 8 2 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN SOA 3600 ns1.test.dyndns. ahu.example.dyndns. [serial] 28800 7200 604800 86400 | ||
2 . IN OPT 32768 | ||
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 | ||
Reply to question for qname='test.dyndns.', qtype=NSEC3PARAM | ||
1 a.host.test.dyndns. IN NSEC 86400 e.host.test.dyndns. A RRSIG NSEC | ||
1 a.host.test.dyndns. IN RRSIG 86400 NSEC 8 4 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN NSEC 86400 cname1.test.dyndns. NS SOA MX RRSIG NSEC DNSKEY | ||
1 test.dyndns. IN RRSIG 3600 SOA 8 2 3600 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN RRSIG 86400 NSEC 8 2 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN SOA 3600 ns1.test.dyndns. ahu.example.dyndns. [serial] 28800 7200 604800 86400 | ||
2 . IN OPT 32768 | ||
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 | ||
Reply to question for qname='c.host.test.dyndns.', qtype=A |
76 changes: 76 additions & 0 deletions
76
regression-tests/1dyndns-update-nsec3params-orderinfo-and-auth/expected_result.nsec3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
0 test.dyndns. IN NSEC3PARAM 86400 1 0 1 abcd 0 test.dyndns. IN RRSIG 86400 NSEC3PARAM 8 2 86400 [expiry] [inception] [keytag] test.dyndns. ... 2 . IN OPT 32768 Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 Reply to question for qname='test.dyndns.', qtype=NSEC3PARAM | ||
1 4i84rosksbmegcqfnkf6n6ci093h7rq4.test.dyndns. IN NSEC3 86400 1 1 1 abcd 8PQJV4B3M0LCFMVAE0HP394LC154L1I7 CNAME RRSIG | ||
1 4i84rosksbmegcqfnkf6n6ci093h7rq4.test.dyndns. IN RRSIG 86400 NSEC3 8 3 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 dsa3ti9nu3apdsvl3f63qlvakv555sr6.test.dyndns. IN NSEC3 86400 1 1 1 abcd FQU365VN7BR5CSV8CG6NE9V8HA6D008P A RRSIG | ||
1 dsa3ti9nu3apdsvl3f63qlvakv555sr6.test.dyndns. IN RRSIG 86400 NSEC3 8 3 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 lmrsadk2bb62qpruaules5i5ap06cp55.test.dyndns. IN NSEC3 86400 1 1 1 abcd LRESBBP3LV8BLGJ9FSGTDMM4Q7VJ3D6J | ||
1 lmrsadk2bb62qpruaules5i5ap06cp55.test.dyndns. IN RRSIG 86400 NSEC3 8 3 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN RRSIG 3600 SOA 8 2 3600 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN SOA 3600 ns1.test.dyndns. ahu.example.dyndns. [serial] 28800 7200 604800 86400 | ||
2 . IN OPT 32768 | ||
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 | ||
Reply to question for qname='c.host.test.dyndns.', qtype=A | ||
Answer: | ||
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] | ||
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 | ||
;; ZONE SECTION: | ||
;test.dyndns. IN SOA | ||
|
||
0 test.dyndns. IN NSEC3PARAM 86400 1 0 10 dcbe | ||
0 test.dyndns. IN RRSIG 86400 NSEC3PARAM 8 2 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
2 . IN OPT 32768 | ||
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 | ||
Reply to question for qname='test.dyndns.', qtype=NSEC3PARAM | ||
1 ac2jl1kik929tr9i5rfcmbucm547n51a.test.dyndns. IN NSEC3 86400 1 1 10 dcbe EE295AK1NDT9O0RLL1A4RPPB4NAOV4QM | ||
1 ac2jl1kik929tr9i5rfcmbucm547n51a.test.dyndns. IN RRSIG 86400 NSEC3 8 3 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 lavvds84bcal6n6qnavn3q1u4jcpjev9.test.dyndns. IN NSEC3 86400 1 1 10 dcbe PE3H59F3RU6VID4OK0T4TSU6D0NDRVHS A RRSIG | ||
1 lavvds84bcal6n6qnavn3q1u4jcpjev9.test.dyndns. IN RRSIG 86400 NSEC3 8 3 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN RRSIG 3600 SOA 8 2 3600 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN SOA 3600 ns1.test.dyndns. ahu.example.dyndns. [serial] 28800 7200 604800 86400 | ||
2 . IN OPT 32768 | ||
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 | ||
Reply to question for qname='c.host.test.dyndns.', qtype=A | ||
Answer: | ||
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] | ||
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 | ||
;; ZONE SECTION: | ||
;test.dyndns. IN SOA | ||
|
||
1 test.dyndns. IN NSEC 86400 cname1.test.dyndns. NS SOA MX RRSIG NSEC DNSKEY | ||
1 test.dyndns. IN RRSIG 3600 SOA 8 2 3600 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN RRSIG 86400 NSEC 8 2 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN SOA 3600 ns1.test.dyndns. ahu.example.dyndns. [serial] 28800 7200 604800 86400 | ||
2 . IN OPT 32768 | ||
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 | ||
Reply to question for qname='test.dyndns.', qtype=NSEC3PARAM | ||
1 a.host.test.dyndns. IN NSEC 86400 e.host.test.dyndns. A RRSIG NSEC | ||
1 a.host.test.dyndns. IN RRSIG 86400 NSEC 8 4 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN NSEC 86400 cname1.test.dyndns. NS SOA MX RRSIG NSEC DNSKEY | ||
1 test.dyndns. IN RRSIG 3600 SOA 8 2 3600 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN RRSIG 86400 NSEC 8 2 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN SOA 3600 ns1.test.dyndns. ahu.example.dyndns. [serial] 28800 7200 604800 86400 | ||
2 . IN OPT 32768 | ||
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 | ||
Reply to question for qname='c.host.test.dyndns.', qtype=A | ||
Answer: | ||
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] | ||
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 | ||
;; ZONE SECTION: | ||
;test.dyndns. IN SOA | ||
|
||
0 test.dyndns. IN NSEC3PARAM 86400 1 0 1 abcd | ||
0 test.dyndns. IN RRSIG 86400 NSEC3PARAM 8 2 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
2 . IN OPT 32768 | ||
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 | ||
Reply to question for qname='test.dyndns.', qtype=NSEC3PARAM | ||
1 4i84rosksbmegcqfnkf6n6ci093h7rq4.test.dyndns. IN NSEC3 86400 1 1 1 abcd 8PQJV4B3M0LCFMVAE0HP394LC154L1I7 CNAME RRSIG | ||
1 4i84rosksbmegcqfnkf6n6ci093h7rq4.test.dyndns. IN RRSIG 86400 NSEC3 8 3 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 dsa3ti9nu3apdsvl3f63qlvakv555sr6.test.dyndns. IN NSEC3 86400 1 1 1 abcd FQU365VN7BR5CSV8CG6NE9V8HA6D008P A RRSIG | ||
1 dsa3ti9nu3apdsvl3f63qlvakv555sr6.test.dyndns. IN RRSIG 86400 NSEC3 8 3 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 lmrsadk2bb62qpruaules5i5ap06cp55.test.dyndns. IN NSEC3 86400 1 1 1 abcd LRESBBP3LV8BLGJ9FSGTDMM4Q7VJ3D6J | ||
1 lmrsadk2bb62qpruaules5i5ap06cp55.test.dyndns. IN RRSIG 86400 NSEC3 8 3 86400 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN RRSIG 3600 SOA 8 2 3600 [expiry] [inception] [keytag] test.dyndns. ... | ||
1 test.dyndns. IN SOA 3600 ns1.test.dyndns. ahu.example.dyndns. [serial] 28800 7200 604800 86400 | ||
2 . IN OPT 32768 | ||
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0 | ||
Reply to question for qname='c.host.test.dyndns.', qtype=A |
2 changes: 2 additions & 0 deletions
2
regression-tests/1dyndns-update-nsec3params-orderinfo-and-auth/skip.narrow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This test is skipped in narrow mode as we cannot set narrow via nsec3param. | ||
So, this test could impact other tests, as after this test has run, narrow mode would be off. |
Empty file.
1 change: 1 addition & 0 deletions
1
regression-tests/1dyndns-update-nsec3params-orderinfo-and-auth/skip.nodyndns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Test requires rfc2136. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters