Commit 44930f9a authored by Vladimír Čunát's avatar Vladimír Čunát Committed by Petr Špaček

module_dns64: extend the tests

parent 314baab2
Pipeline #37531 failed with stage
in 1 minute and 19 seconds
......@@ -59,6 +59,7 @@ SECTION QUESTION
www.example.cz. IN A
SECTION ANSWER
www.example.cz. IN A 1.2.3.5
www.example.cz. IN A 1.2.3.6
SECTION AUTHORITY
example.cz. IN NS ns.example.cz.
SECTION ADDITIONAL
......@@ -66,7 +67,7 @@ ns.example.cz. IN A 1.2.3.4
ENTRY_END
ENTRY_BEGIN
MATCH opcode qname
MATCH opcode qname qtype
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
......@@ -75,17 +76,47 @@ SECTION AUTHORITY
example.cz. 3600 IN SOA bla. bla. 1 2 3 4 5
SECTION ADDITIONAL
ENTRY_END
ENTRY_BEGIN
MATCH opcode qname qtype
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
www6.example.cz. IN AAAA
SECTION ANSWER
www6.example.cz. 3600 IN AAAA 2001:db8::1
SECTION ADDITIONAL
ENTRY_END
ENTRY_BEGIN
MATCH opcode qname
ADJUST copy_id copy_query
REPLY QR NOERROR
SECTION QUESTION
cname.example.cz. IN CNAME
SECTION ANSWER
cname.example.cz. IN CNAME www.example.cz.
ENTRY_END
ENTRY_BEGIN
MATCH opcode qname qtype
ADJUST copy_id
REPLY QR REFUSED
SECTION QUESTION
fail6.example.cz. IN AAAA
SECTION ANSWER
ENTRY_END
RANGE_END
STEP 1 QUERY
STEP 10 QUERY
ENTRY_BEGIN
REPLY RD
SECTION QUESTION
www.example.cz. IN AAAA
ENTRY_END
STEP 10 CHECK_ANSWER
STEP 11 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RD RA NOERROR
......@@ -93,6 +124,81 @@ SECTION QUESTION
www.example.cz. IN AAAA
SECTION ANSWER
www.example.cz. IN AAAA fe80::21b:aabb:102:305
www.example.cz. IN AAAA fe80::21b:aabb:102:306
ENTRY_END
; Do not synthesize on +CD queries, sec. 5.5.3.
STEP 12 QUERY
ENTRY_BEGIN
REPLY RD DO CD
SECTION QUESTION
www.example.cz. IN AAAA
ENTRY_END
STEP 13 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RD RA DO CD NOERROR
SECTION QUESTION
www.example.cz. IN AAAA
SECTION ANSWER
SECTION AUTHORITY
example.cz. 3600 IN SOA bla. bla. 1 2 3 4 5
ENTRY_END
; Do not synthesize if AAAA exists.
STEP 14 QUERY
ENTRY_BEGIN
REPLY RD
SECTION QUESTION
www6.example.cz. IN AAAA
ENTRY_END
STEP 15 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RD RA NOERROR
SECTION QUESTION
www6.example.cz. IN AAAA
SECTION ANSWER
www6.example.cz. 3600 IN AAAA 2001:db8::1
ENTRY_END
; Generate from simple NODATA behind a CNAME.
STEP 16 QUERY
ENTRY_BEGIN
REPLY RD
SECTION QUESTION
cname.example.cz. IN AAAA
ENTRY_END
STEP 17 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RD RA NOERROR
SECTION QUESTION
cname.example.cz. IN AAAA
SECTION ANSWER
cname.example.cz. IN CNAME www.example.cz.
www.example.cz. IN AAAA fe80::21b:aabb:102:305
www.example.cz. IN AAAA fe80::21b:aabb:102:306
ENTRY_END
; Fail for AAAA won't cause query for A (answer not defined).
STEP 18 QUERY
ENTRY_BEGIN
REPLY RD
SECTION QUESTION
fail6.example.cz. IN AAAA
ENTRY_END
STEP 19 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RD RA SERVFAIL
SECTION QUESTION
fail6.example.cz. IN AAAA
SECTION ANSWER
ENTRY_END
SCENARIO_END
SCENARIO_END
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment