diff options
Diffstat (limited to 'tests/integration/deckard/sets/resolver/iter_cname_badauth.rpl')
-rw-r--r-- | tests/integration/deckard/sets/resolver/iter_cname_badauth.rpl | 269 |
1 files changed, 269 insertions, 0 deletions
diff --git a/tests/integration/deckard/sets/resolver/iter_cname_badauth.rpl b/tests/integration/deckard/sets/resolver/iter_cname_badauth.rpl new file mode 100644 index 0000000..187fd07 --- /dev/null +++ b/tests/integration/deckard/sets/resolver/iter_cname_badauth.rpl @@ -0,0 +1,269 @@ +do-ip6: no + +; config options +; target-fetch-policy: "3 2 1 0 0" +; name: "." + stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET. +CONFIG_END + +SCENARIO_BEGIN Test iterator with NS sending CNAME answer and authority of CNAME target. + +; K.ROOT-SERVERS.NET. +RANGE_BEGIN 0 100 + ADDRESS 193.0.14.129 +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id +REPLY QR NOERROR +SECTION QUESTION +. IN NS +SECTION ANSWER +. IN NS K.ROOT-SERVERS.NET. +SECTION ADDITIONAL +K.ROOT-SERVERS.NET. IN A 193.0.14.129 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qname +ADJUST copy_id copy_query +REPLY QR NOERROR +SECTION QUESTION +au. IN NS +SECTION AUTHORITY +au. SOA bla bla 1 2 3 4 5 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qname +ADJUST copy_id copy_query +REPLY QR NOERROR +SECTION QUESTION +com.au. IN NS +SECTION AUTHORITY +com.au. SOA bla bla 1 2 3 4 5 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qname +ADJUST copy_id copy_query +REPLY QR NOERROR +SECTION QUESTION +com. IN NS +SECTION AUTHORITY +com. SOA bla bla 1 2 3 4 5 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qname +ADJUST copy_id copy_query +REPLY QR NOERROR +SECTION QUESTION +nstld.com. IN NS +SECTION AUTHORITY +nstld.com. SOA bla bla 1 2 3 4 5 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id +REPLY QR NOERROR +SECTION QUESTION +K.ROOT-SERVERS.NET. IN A +SECTION ANSWER +K.ROOT-SERVERS.NET. IN A 193.0.14.129 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id +REPLY QR NOERROR +SECTION QUESTION +K.ROOT-SERVERS.NET. IN AAAA +SECTION AUTHORITY +. SOA bla bla 1 2 3 4 5 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qname +ADJUST copy_id copy_query +REPLY QR NOERROR +SECTION QUESTION +net. IN NS +SECTION AUTHORITY +net. SOA bla bla 1 2 3 4 5 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qname +ADJUST copy_id copy_query +REPLY QR NOERROR +SECTION QUESTION +root-servers.net. IN NS +SECTION AUTHORITY +root-servers.net. SOA bla bla 1 2 3 4 5 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id copy_query +REPLY QR NOERROR +SECTION QUESTION +ncfphywebgtm01-c.ingdirect.com.au. IN AAAA +SECTION AUTHORITY +. SOA bla bla 1 2 3 4 5 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode subdomain +ADJUST copy_id copy_query +REPLY QR AA NOERROR +SECTION QUESTION +ingdirect.com.au. IN A +SECTION AUTHORITY +ingdirect.com.au. IN NS l4.nstld.com. +SECTION ADDITIONAL +l4.nstld.com. IN A 209.112.114.33 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id copy_query +REPLY QR NOERROR +SECTION QUESTION +l4.nstld.com. IN A +SECTION ANSWER +l4.nstld.com. IN A 209.112.114.33 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id copy_query +REPLY QR NOERROR +SECTION QUESTION +l4.nstld.com. IN AAAA +SECTION AUTHORITY +. SOA bla bla 1 2 3 4 5 +ENTRY_END + +RANGE_END + +; l4.nstld.com. +RANGE_BEGIN 0 100 + ADDRESS 209.112.114.33 + +ENTRY_BEGIN +MATCH opcode qname qtype +ADJUST copy_id +REPLY QR AA NOERROR +SECTION QUESTION +ingdirect.com.au. IN NS +SECTION ANSWER +ingdirect.com.au. IN NS l4.nstld.com. +SECTION ADDITIONAL +l4.nstld.com. IN A 209.112.114.33 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id copy_query +REPLY QR NOERROR +SECTION QUESTION +www.ingdirect.com.au. IN A +SECTION ANSWER +www.ingdirect.com.au. IN CNAME www.clb.ingdirect.com.au. +SECTION AUTHORITY +clb.ingdirect.com.au. IN NS ncfphywebgtm01-c.ingdirect.com.au. +SECTION ADDITIONAL +ncfphywebgtm01-c.ingdirect.com.au. IN A 203.92.27.132 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode subdomain +ADJUST copy_id copy_query +REPLY QR NOERROR +SECTION QUESTION +clb.ingdirect.com.au. IN A +SECTION AUTHORITY +clb.ingdirect.com.au. IN NS ncfphywebgtm01-c.ingdirect.com.au. +SECTION ADDITIONAL +ncfphywebgtm01-c.ingdirect.com.au. IN A 203.92.27.132 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qname qtype +ADJUST copy_id +REPLY QR NOERROR +SECTION QUESTION +ncfphywebgtm01-c.ingdirect.com.au. IN A +SECTION ANSWER +ncfphywebgtm01-c.ingdirect.com.au. IN A 203.92.27.132 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qname qtype +ADJUST copy_id +REPLY QR NOERROR +SECTION QUESTION +ncfphywebgtm01-c.ingdirect.com.au. IN AAAA +SECTION AUTHORITY +ingdirect.com.au. IN SOA bla bla 1 2 3 4 5 +ENTRY_END + +RANGE_END + +; ncfphywebgtm01-c.ingdirect.com.au. +RANGE_BEGIN 0 100 + ADDRESS 203.92.27.132 + +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id +REPLY QR NOERROR +SECTION QUESTION +clb.ingdirect.com.au. IN NS +SECTION AUTHORITY +clb.ingdirect.com.au. IN NS ncfphywebgtm01-c.ingdirect.com.au. +SECTION ADDITIONAL +ncfphywebgtm01-c.ingdirect.com.au. IN A 203.92.27.132 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id copy_query +REPLY QR AA NOERROR +SECTION QUESTION +www.clb.ingdirect.com.au. IN A +SECTION ANSWER +www.clb.ingdirect.com.au. IN A 203.31.183.134 +ENTRY_END + +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id copy_query +REPLY QR REFUSED +SECTION QUESTION +www.ingdirect.com.au. IN A +ENTRY_END + +RANGE_END + +STEP 1 QUERY +ENTRY_BEGIN +REPLY RD +SECTION QUESTION +www.ingdirect.com.au. IN A +ENTRY_END + +; recursion happens here. +STEP 10 CHECK_ANSWER +ENTRY_BEGIN +MATCH all +REPLY QR RD RA NOERROR +SECTION QUESTION +www.ingdirect.com.au. IN A +SECTION ANSWER +www.ingdirect.com.au. IN CNAME www.clb.ingdirect.com.au. +www.clb.ingdirect.com.au. IN A 203.31.183.134 +ENTRY_END + +SCENARIO_END |