NAMESERVER14: Test for unknown version with unknown OPTION-CODE
Test case identifier
NAMESERVER14
Objective
This test case actually combines the test options in test cases NAMESERVER10 and NAMESERVER11.
Scope
It is assumed that Child Zone is also tested by Connectivity01. This test case will set DEBUG level on messages for non-responsive name servers.
Inputs
"Child Zone" - The domain name to be tested.
Ordered description of steps to be taken to execute the test case
-
Create an SOA query for the Child Zone with an OPT record with EDNS version set to "1" and with EDNS OPTION-CODE set to an unassigned value (see IANA-DNSSYSTEM-PARAMETERS) and with no other EDNS options or flags.
-
Obtain the set of name server IP addresses using Method4 and Method5 ("Name Server IP").
-
For each name server in Name Server IP do:
- Send the SOA query to the name server and collect the response.
- If there is no DNS response, output NO_RESPONSE and go to next server.
- Else, if the DNS response has the RCODE "FORMERR" then output NO_EDNS_SUPPORT.
- Else, if the RCODE is "NOERROR", and the response has EDNS version number greater than zero and contains an "OPTION-CODE", then output UNSUPPORTED_EDNS_VER and UNKNOWN_OPTION_CODE.
- Else, if the RCODE is "NOERROR", and the response has EDNS version number greater than zero, then output UNSUPPORTED_EDNS_VER .
- Else, if the RCODE is "NOERROR", and contains an "OPTION-CODE", then output UNKNOWN_OPTION_CODE.
- Else, if the DNS response meet the following four criteria,
then just go to the next name server (no error):
- If the SOA is not obtained as response in the ANSWER section.
- It has the RCODE "BADVERS".
- The pseudo-section response has an OPT record with version set to 0.
- The option is not present in the response
- Else output NS_ERROR.
Outcome(s)
The outcome of this Test Case is "fail" if there is at least one message with the severity level ERROR or CRITICAL.
The outcome of this Test Case is "warning" if there is at least one message with the severity level WARNING, but no message with severity level ERROR or CRITICAL.
The outcome of this Test case is "pass" in all other cases.
Message | Default severity level (Output message) |
---|---|
NO_RESPONSE | DEBUG |
NO_EDNS_SUPPORT | WARNING |
NS_ERROR | WARNING |
UNKNOWN_OPTION_CODE | WARNING |
UNSUPPORTED_EDNS_VER | WARNING |
Special procedural requirements
If either IPv4 or IPv6 transport is disabled, ignore the evaluation of the result of any test using this transport protocol and log a message reporting the ignored result.
Intercase dependencies
None.