NAME

        SV_RFC1034_4_3_1_Recursive - Recursion Available (RA) bit is set or cleared by a name server in all responses


VERIFICATION POINTS

        Verify that whether NUT can set or clear RA bit in all responses.


TARGET

        Server


SYNOPSIS

	SV_RFC1034_4_3_1_Recursive.seq [-tooloption ...]: KOI tool option
	See also DNSConfig.pm


INITIALIZATION


TEST PROCEDURE

        This test sequence is following.
    DNS Client1 (TN)             DNS Server1 (NUT)
        |                              |
        |----------------------------->|
        | 1. Send standard query       |
        |    RD = 1                    |
        |    RA = 1                    |
        |    QNAME=A.example.com       |
        |    QTYPE=A                   |
        |                              |
        |<-----------------------------|
        | 2. Standard query response   |
        |    RD = 1                    |
        |    RA = 0                    |
        |  QNAME = A.example.com       |
        |  QTYPE = A                   |
        |  ANSWER Name                 |
        |           = A.example.com    |
        |  ANSWER Address              |
        |           = 192.168.1.10     |
        |  AUTHORITY Name              |
        |           = example.com      |
        |  AUTHORITY Name Server       |
        |           = NS1.example.com  |
        |  ADDITIONAL Name             |
        |           = NS1.example.com  |
        |  ADDITIONAL Address          |
        |           = 192.168.0.10     |
        |                              |
        |                              |
        v                              v
        3. Disable non-recursive mode on DNS Server1 (NUT)
        |                              |
        |                              |
        |----------------------------->|
        | 4. Send standard query       |
        |    RD = 1                    |
        |    RA = 0                    |
        |  QNAME = A.example.com       |
        |  QTYPE = A                   |
        |                              |
        |<-----------------------------|
        | 5. Standard query response   |
        |    RD = 1                    |
        |    RA = 1                    |
        |  QNAME = A.example.com       |
        |  QTYPE = A                   |
        |  ANSWER Name                 |
        |           = A.example.com    |
        |  ANSWER Address              |
        |           = 192.168.1.10     |
        |  AUTHORITY Name              |
        |           = example.com      |
        |  AUTHORITY Name Server       |
        |           = NS1.example.com  |
        |  ADDITIONAL Name             |
        |           = NS1.example.com  |
        |  ADDITIONAL Address          |
        |           = 192.168.0.10     |
        |                              |
        v                              v
        This test sequence is following.
        1. DNS Client1 (TN) send standard query QNAME=A.example.com, QTYPE=A with RD=1, RA=1 to DNS Server1 (NUT).
        2. DNS Server1 (NUT) transmits standard query response from which RA bit is cleared to DNS Client1 (TN). (Judgment *2)
        3. Disable non-recursive mode on DNS Server1 (NUT) and restart DNS service.
        4. DNS Client1 (TN) send standard query QNAME=A.example.org, QTYPE=A with RD=1, RA=0 to DNS Server1 (NUT).
        5. DNS Server1 (NUT) transmits standard query response from which RA bit is set to DNS Client1 (TN). (Judgment *4)


JUDGMENT

        2. Received standard query response from which RA bit is cleared.
        5. Received standard query response from which RA bit is set.


TERMINATION

        None


REFERENCE

        RFC1034 DOMAIN NAMES - CONCEPTS AND FACILITIES
        4. NAME SERVERS
        4.3.1. Queries and responses