NAME

        SV_RFC1034_4_3_1_RAwCNAME - The asnswer with CNAME to the query


VERIFICATION POINTS

        Verify that a NUT answers with CNAME to the query, possibly preface by one or more CNAME
        RRs that specify aliases encountered on the way to an answer.


TARGET

        Server


SYNOPSIS

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


INITIALIZATION


TEST PROCEDURE

        This test sequence is following.
                                                                   <--------------- TN ------------------>
    DNS Client1 (TN)             DNS Server1 (NUT)                  DNS Server2 DNS Server3 DNS Server4
        |                              |                                 |           |           |
        |----------------------------->|                                 |           |           |
        | 1. Send standard query       |                                 |           |           |
        |  RD = 1                      |                                 |           |           |
        |  QNAME = B.example.org       |                                 |           |           |
        |  QTYPE = A                   |                                 |           |           |
        |                              |                                 |           |           |
        |                              |-------------------------------->|           |           |
        |                              | 2. Recv standard query          |           |           |
        |                              |  QNAME = B.example.org          |           |           |
        |                              |  QTYPE = A                      |           |           |
        |                              |                                 |           |           |
        |                              |<--------------------------------|           |           |
        |                              | 3. Send standard query response |           |           |
        |                              |  QNAME = B.example.org          |           |           |
        |                              |  QTYPE = A                      |           |           |
        |                              |  AUTHORITY Name                 |           |           |
        |                              |            = org                |           |           |
        |                              |  AUTHORITY NSDNAME              |           |           |
        |                              |            = NS3.example.org    |           |           |
        |                              |  ADDITIONAL Name                |           |           |
        |                              |            = NS3.example.org    |           |           |
        |                              |  ADDITIONAL Address             |           |           |
        |                              |            = 192.168.1.30       |           |           |
        |                              |                                 |           |           |
        |                              |                                 v           |           |
        |                              |                                             |           |
        |                              |-------------------------------------------->|           |
        |                              |             4. Recv standard query          |           |
        |                              |              QNAME = B.example.org          |           |
        |                              |              QTYPE = A                      |           |
        |                              |                                             |           |
        |                              |<--------------------------------------------|           |
        |                              |             5. Send standard query response |           |
        |                              |              QNAME = B.example.org          |           |
        |                              |              QTYPE = A                      |           |
        |                              |              AUTHORITY Name                 |           |
        |                              |                     = example.org           |           |
        |                              |              AUTHORITY NSDNAME              |           |
        |                              |                     = NS4.example.org       |           |
        |                              |              ADDITIONAL Name                |           |
        |                              |                     = NS4.example.org       |           |
        |                              |              ADDITIONAL Address             |           |
        |                              |                     = 192.168.1.40          |           |
        |                              |                                             v           |
        |                              |                                                         |
        |                              |-------------------------------------------------------->|
        |                              |                     6. Recv standard query              |
        |                              |                      QNAME = B.example.org              |
        |                              |                      QTYPE = A                          |
        |                              |                                                         |
        |                              |<--------------------------------------------------------|
        |                              |                     7. Send standard query response     |
        |                              |                      AA = 1                             |
        |                              |                      QNAME = B.example.org              |
        |                              |                      QTYPE = A                          |
        |                              |                      ANSWER Name                        |
        |                              |                             = B.example.org             |
        |                              |                      ANSWER Type                        |
        |                              |                             = CNAME                     |
        |                              |                      ANSWER Primary Name                |
        |                              |                             = A.example.org             |
        |                              |                      ANSWER Name                        |
        |                              |                             = A.example.org             |
        |                              |                      ANSWER Type                        |
        |                              |                             = A                         |
        |                              |                      ANSWER Address                     |
        |                              |                             = 192.168.1.10              |
        |                              |                      AUTHORITY Name                     |
        |                              |                             = example.org               |
        |                              |                      AUTHORITY NSDNAME                  |
        |                              |                             = NS4.example.org           |
        |                              |                      ADDITIONAL Name                    |
        |                              |                             = NS4.example.org           |
        |                              |                      ADDITIONAL Address                 |
        |                              |                             = 192.168.1.40              |
        |                              |                                                         |
        |                              |                                                         v
        |<-----------------------------|
        | 8. Standard query response   |
        |  RD = 1                      |
        |  RA = 1                      |
        |  QNAME = B.example.org       |
        |  QTYPE = B                   |
        |  ANSWER Name                 |
        |         = B.example.org      |
        |  ANSWER Type                 |
        |         = CNAME              |
        |  ANSWER Primary Name         |
        |         = A.example.org      |
        |  ANSWER Name                 |
        |         = A.example.org      |
        |  ANSWER Type                 |
        |         = A                  |
        |  ANSWER Address              |
        |         = 192.168.1.10       |
        |  AUTHORITY Name              |
        |         = example.org        |
        |  AUTHORITY Name Server       |
        |         = NS4.example.org    |
        |  ADDITIONAL Name             |
        |         = NS4.example.org    |
        |  ADDITIONAL Address          |
        |         = 192.168.1.40       |
        |                              |
        v                              v
        This test sequence is following.
        1. DNS Client1 (TN) send standard query QNAME=B.example.com, QTYPE=A to NUT.
        2. DNS Server1 (NUT) transmits standard query to DNS Server1 (TN). (Judgment *2)
        5. DNS Server2 (TN) send standard query response to DNS Server1 (NUT).
        4. DNS Server1 (NUT) transmits standard query QNAME=B.example.org, QTYPE=A to DNS Server3 (TN).
        5. DNS Server3 (TN) send standard query response to DNS Server1 (NUT).
        6. DNS Server1 (NUT) transmits standard query QNAME=B.example.org, QTYPE=A to DNS Server4 (TN).
        7. DNS Server4 (TN) send standard query response witch ANSWER Type=CNAME to DNS Server1 (NUT).
        8. DNS Server1 (NUT) transmits standard query response with ANSWER Type=CNAME to DNS Client1 (TN).(Judgment *8)


JUDGMENT

        2. Received standard query to recurisve. 
        8. Received standard query response from which RA bit is set and including CNAME.


TERMINATION

        None


REFERENCE

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