NAME

        SV_RFC1034_4_1_AA - The name server returns data w/ Authoritative Answer (AA) or not.


VERIFICATION POINTS

        Verify that a NUT marks Authoritative Answer bit when the response comes from authoritative data


TARGET

        Server


SYNOPSIS

	SV_RFC1034_4_1_AA.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       |                                 |           |           |
        |    QNAME=A.example.com       |                                 |           |           |
        |    QTYPE=A                   |                                 |           |           |
        |                              |                                 |           |           |
        |<-----------------------------|                                 |           |           |
        | 2. Standard query response   |                                 |           |           |
        |  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     |                                 |           |           |
        |                              |                                 |           |           |
        |----------------------------->|                                 |           |           |
        | 3. Send standard query       |                                 |           |           |
        |  QNAME = A.example.org       |                                 |           |           |
        |  QTYPE = A                   |                                 |           |           |
        |                              |                                 |           |           |
        |                              |-------------------------------->|           |           |
        |                              | 4. Recv standard query          |           |           |
        |                              |  QNAME = A.example.org          |           |           |
        |                              |  QTYPE = A                      |           |           |
        |                              |                                 |           |           |
        |                              |<--------------------------------|           |           |
        |                              | 5. Send standard query response |           |           |
        |                              |  AA = 0                         |           |           |
        |                              |  QNAME = A.example.org          |           |           |
        |                              |  QTYPE = A                      |           |           |
        |                              |  AUTHORITY Name                 |           |           |
        |                              |            = org                |           |           |
        |                              |  AUTHORITY NSDNAME              |           |           |
        |                              |            = NS3.example.org    |           |           |
        |                              |  ADDITIONAL Name                |           |           |
        |                              |            = NS3.example.org    |           |           |
        |                              |  ADDITIONAL Address             |           |           |
        |                              |            = 192.168.1.30       |           |           |
        |                              |                                 |           |           |
        |                              |                                 v           |           |
        |                              |                                             |           |
        |                              |-------------------------------------------->|           |
        |                              |             6. Recv standard query          |           |
        |                              |              QNAME = A.example.org          |           |
        |                              |              QTYPE = A                      |           |
        |                              |                                             |           |
        |                              |<--------------------------------------------|           |
        |                              |             7. Send standard query response |           |
        |                              |              AA = 0                         |           |
        |                              |              QNAME = A.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           |
        |                              |                                                         |
        |                              |-------------------------------------------------------->|
        |                              |                     8. Recv standard query              |
        |                              |                      QNAME = A.example.org              |
        |                              |                      QTYPE = A                          |
        |                              |                                                         |
        |                              |<--------------------------------------------------------|
        |                              |                     9. Send standard query response     |
        |                              |                      AA = 1                             |
        |                              |                      QNAME = A.example.org              |
        |                              |                      QTYPE = A                          |
        |                              |                      ANSWER Name                        |
        |                              |                             = A.example.org             |
        |                              |                      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
        |<-----------------------------|
        | 10. Standard query response  |
        |  AA = 0                      |
        |  QNAME = A.example.org       |
        |  QTYPE = A                   |
        |  ANSWER Name                 |
        |           = A.example.org    |
        |  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=A.example.com, QTYPE=A to NUT.
        2. DNS Server1 (NUT) transmits standard query response to DNS Client1 (TN) with Authoritative Answer (AA) bit is set.(Judgment *2)
        3. DNS Client1 (TN) send standard query QNAME=A.example.org, QTYPE=A to DNS Server1 (NUT).
        4. DNS Server1 (NUT) transmits standard query QNAME=A.example.org, QTYPE=A to DNS Server2 (TN). (Judgment *4)
        5. DNS Server2 (TN) send standard query response to DNS Server1 (NUT).
        6. DNS Server1 (NUT) transmits standard query QNAME=A.example.org, QTYPE=A to DNS Server3 (TN). (Judgment *6)
        7. DNS Server3 (TN) send standard query response to DNS Server1 (NUT).
        8. DNS Server1 (NUT) transmits standard query QNAME=A.example.org, QTYPE=A to DNS Server4 (TN). (Judgment *8)
        9. DNS Server4 (TN) send standard query response to DNS Server1 (NUT).
       10. DNS Server1 (NUT) transmits standard query response to DNS Client1 (TN) with Authoritative Answer (AA) bit is not set.(Judgment *10)


JUDGMENT

        2. Received standard query response with Authoritative Answer (AA) bit is set
       10. Received standard query response with Authoritative Answer (AA) bit is not set


TERMINATION

        None


REFERENCE

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