NAME

        SV_RFC1034_4_3_2_23B46_1 - And QNAME is found in the cache.


VERIFICATION POINTS

        Verify that whether NUT's following behavior.
        Recursion service is avairable but not requested via the RD bit in the query.
        Search the available zones for the zone which is the nearest ancestor to QNAME.
        Such a zone is found. A match take QNAME out of the authoritative data, QNAME 
        has a referral. Copy the NS RRs for the subzone into the authority section of
        the reply. Starting matching down in the cache. And QNAME is found in the cache.
        Copy all RRs attached to it that match QTYPE into the answer section.


TARGET

        Server


SYNOPSIS

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


INITIALIZATION


TEST PROCEDURE

        This test sequence is following.
    DNS Client1 (TN)             DNS Server1 (NUT)                  DNS Server6 (TN)
        |                              |                                 |
        |----------------------------->|                                 |
        | 1. Send standard query       |                                 |
        |  RD = 1                      |                                 |
        |  QNAME = A.sub.example.com   |                                 |
        |  QTYPE = A                   |                                 |
        |                              |                                 |
        |                              |-------------------------------->|
        |                              | 2. Recv standard query          |
        |                              |  QNAME = A.sub.example.com      |
        |                              |  QTYPE = A                      |
        |                              |                                 |
        |                              |<--------------------------------|
        |                              | 3. Send standard query response |
        |                              |  QNAME = A.sub.example.com      |
        |                              |  QTYPE = A                      |
        |                              |  ANSWER Name                    |
        |                              |        = A.sub.example.com      |
        |                              |  ANSWER Type                    |
        |                              |        = A (0x0001)             |
        |                              |  ANSWER Address                 |
        |                              |        = 192.168.1.10           |
        |                              |  AUTHORITY Name                 |
        |                              |        = sub.example.com        |
        |                              |  AUTHORITY Type                 |
        |                              |        = NS (0x0002)            |
        |                              |  AUTHORITY Name Server          |
        |                              |        = NS6.sub.example.com    |
        |                              |                                 |
        |                              |                                 v
        |<-----------------------------|
        | 4. Standard query response   |
        |  AA = 0                      |
        |  RD = 1                      |
        |  RA = 1                      |
        |  QNAME = A.sub.example.com   |
        |  QTYPE = A                   |
        |  ANSWER Name                 |
        |        = A.sub.example.com   |
        |  ANSWER Type                 |
        |        = A (0x0001)          |
        |  ANSWER Address              |
        |        = 192.168.1.10        |
        |  AUTHORITY Name              |
        |        = sub.example.com     |
        |  AUTHORITY Type              |
        |        = NS (0x0002)         |
        |  AUTHORITY Name Server       |
        |        = NS6.sub.example.com |
        |                              |
        |                              |
        |        Wait 5 sec.           |
        |                              |
        |                              |
        |----------------------------->|
        | 5. Send standard query       |
        |  RD = 1                      |
        |  QNAME = A.sub.example.com   |
        |  QTYPE = A                   |
        |                              |
        |<-----------------------------|
        | 6. Standard query response   |
        |  AA = 0                      |
        |  RD = 1                      |
        |  RA = 1                      |
        |  QNAME = A.sub.example.com   |
        |  QTYPE = A                   |
        |  ANSWER Name                 |
        |        = A.sub.example.com   |
        |  ANSWER Type                 |
        |        = A (0x0001)          |
        |  ANSWER Address              |
        |        = 192.168.1.10        |
        |  AUTHORITY Name              |
        |        = sub.example.com     |
        |  AUTHORITY Type              |
        |        = NS (0x0002)         |
        |  AUTHORITY Name Server       |
        |        = NS6.sub.example.com |
        |                              |
        v                              v
        This test sequence is following.
        1. DNS Client1 (TN) send standard query QNAME=A.sub.example.com, QTYPE=A with RD=1 to NUT.
        2. DNS Server1 (NUT) transmits standard query QNAME=A.sub.example.com to DNS Server6 (TN).
        3. DNS Server6 (TN) send standard query response to DNS Server1 (NUT).
        4. DNS Server1 (NUT) transmits standard query response to DNS Client1 (TN). (Judgment *4)
        5. Again, DNS Client1 (TN) send standard query QNAME=A.sub.example.com, QTYPE=A with RD=0 to NUT.
        6. DNS Server1 (NUT) transmits standard query response from cache to DNS Client1 (TN). (Judgment *6)


JUDGMENT

        4. Received standard query response which include answer section and authority section.
        6. Received standard query response which include answer section and authority section from cache.


TERMINATION

        None


REFERENCE

        RFC1034 DOMAIN NAMES - CONCEPTS AND FACILITIES
        4. NAME SERVERS
        4.3.2. Algorithm