Commit 6b0c5dda authored by Petr Špaček's avatar Petr Špaček

resolver: fix nsec_name_error_response to actually test something

MATCH specification was totally ignoring the response so the test did
effectivelly nothing. Fixing MATCH clauses uncovered that delegations
were incorrect and that queries for localhost addresses have to be
allowed for the test to work.
parent ec6aa038
......@@ -2,6 +2,7 @@
server:
trust-anchor: ". 3600 IN DS 17272 13 4 B87AD8C76DC2244E7AA57285057BF533F2E248CC8D7E1A071D8A3837A711A5EA705C4707E6E8911DA653BE1AE019927B"
val-override-timestamp: "1442323400"
do-not-query-localhost: off
stub-zone:
name: "."
......@@ -40,11 +41,11 @@ SECTION ANSWER
ENTRY_END
ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
MATCH opcode subdomain
ADJUST copy_id copy_query
REPLY QR NOERROR
SECTION QUESTION
aaa.nsec.example. IN MX
example. IN MX
SECTION AUTHORITY
example. 3600 IN NS ns.example.
example. 3600 IN DS 11225 13 4 B4BDAB0B3751300BFB9D0D240649279B4BA0E67A308E1B0BFE2931D9 47F7FD71A2BD807D84CDE24286D955A35752484F
......@@ -85,11 +86,11 @@ example. 3600 IN RRSIG DNSKEY 13 1 3600 20151015124839
ENTRY_END
ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
MATCH opcode subdomain
ADJUST copy_id copy_query
REPLY QR NOERROR
SECTION QUESTION
aaa.nsec.example. IN MX
nsec.example. IN MX
SECTION AUTHORITY
nsec.example. 3600 IN NS ns.nsec.example.
nsec.example. 3600 IN DS 54343 13 4 90ABD4FB9F053CF67F6D838DD2437FB16104B8BF127319706223004F 2ED72AF2872B4E507EB483A303BF60BF08C87364
......@@ -197,7 +198,7 @@ ENTRY_END
; recursion happens here.
STEP 2 CHECK_ANSWER
ENTRY_BEGIN
MATCH opcode qtype qname
MATCH all
ADJUST copy_id
REPLY QR RD RA AD NXDOMAIN
SECTION QUESTION
......@@ -218,7 +219,7 @@ ENTRY_END
STEP 4 CHECK_ANSWER
ENTRY_BEGIN
MATCH opcode qtype qname
MATCH all
ADJUST copy_id
REPLY QR RD RA AD NXDOMAIN
SECTION QUESTION
......@@ -241,7 +242,7 @@ ENTRY_END
STEP 6 CHECK_ANSWER
ENTRY_BEGIN
MATCH opcode qtype qname
MATCH all
ADJUST copy_id
REPLY QR RD RA SERVFAIL
SECTION QUESTION
......@@ -258,7 +259,7 @@ ENTRY_END
STEP 8 CHECK_ANSWER
ENTRY_BEGIN
MATCH opcode qtype qname
MATCH all
ADJUST copy_id
REPLY QR RD RA SERVFAIL
SECTION QUESTION
......
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