NAME

        SV_RFC1034_5_3_3_sending_query - Sending query to servers


VERIFICATION POINTS

        Verify that a NUT transmits standard query to multiple servers.


TARGET

        Caching Server


SYNOPSIS

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


INITIALIZATION


TEST PROCEDURE

        This test sequence is following.
   Client1 (TN)             DNS Server1 (NUT)                 DNS Server2 (TN)                   DNS Server3 (TN)                   DNS Server4 (TN)
        |                              |                                 |                                  |                                  |
        |----------------------------->|                                 |                                  |                                  |
        | 1. Send standard query       |                                 |                                  |                                  |
        |    QNAME=A.example.org       |                                 |                                  |                                  |
        |    QTYPE=A                   |                                 |                                  |                                  |
        |                              |                                 |                                  |                                  |
        |                              |-------------------------------->|                                  |                                  |
        |                              | 2. Send standard query          |                                  |                                  |
        |                              |  QNAME=A.example.org            |                                  |                                  |
        |                              |  QTYPE=A                        |                                  |                                  |
        |                              |                                 |                                  |                                  |
        |                              |<--------------------------------|                                  |                                  |
        |                              | 3. Send standard response       |                                  |                                  |
        |                              |  QNAME=A.example.org            |                                  |                                  |
        |                              |  QTYPE=A                        |                                  |                                  |
        |                              |  AUTHORITY Name=org             |                                  |                                  |
        |                              |  AUTHORITY Name Server          |                                  |                                  |
        |                              |            =NS3.example.org     |                                  |                                  |
        |                              |  AUTHORITY Name=org             |                                  |                                  |
        |                              |  AUTHORITY Name Server          |                                  |                                  |
        |                              |            =NS3.example.org     |                                  |                                  |
        |                              |  ADDITIONAL Name=NS3.example.org|                                  |                                  |
        |                              |  ADDITIONAL Address=192.168.1.30|                                  |                                  |
        |                              |  ADDITIONAL Name=NS3.example.org|                                  |                                  |
        |                              |  ADDITIONAL Address=192.168.1.40|                                  |                                  |
        |                              |                                 |                                  |                                  |
        |                              |------------------------------------------------------------------->|                                  |
        |                              |                                 | 4. Send standard query           |                                  |
        |                              |                                 |  QNAME=A.example.org             |                                  |
        |                              |                                 |  QTYPE=A                         |                                  |
        |                              |                                 |                                  |                                  |
        |                              | X <----------------------------------------------------------------|                                  |
        |                              |                                 | 5. Send standard response        |                                  |
        |                              |                                 |  QNAME=A.example.org             |                                  |
        |                              |                                 |  QTYPE=A                         |                                  |
        |                              |                                 |  AUTHORITY Name=example.org      |                                  |
        |                              |                                 |  AUTHORITY Name Server           |                                  |
        |                              |                                 |            =NS4.example.org      |                                  |
        |                              |                                 |  ADDITIONAL Name=NS4.example.org |                                  |
        |                              |                                 |  ADDITIONAL Address=192.168.1.40 |                                  |
        |                              |                                 |                                  |                                  |
        |                              |------------------------------------------------------------------------------------------------------>|
        |                              |                                 |                                  | 6. Send standard query           |
        |                              |                                 |                                  |  QNAME=A.example.org             |
        |                              |                                 |                                  |  QTYPE=A                         |
        |                              |                                 |                                  |                                  |
        |                              | X <---------------------------------------------------------------------------------------------------|
        |                              |                                 |                                  | 7. Send standard response        |
        |                              |                                 |                                  |  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                                 v                                  v                                  v
        1. TN send standard query QNAME=A.example.org, QTYPE=A to NUT.
        2. NUT transmits standard query to DNS Server2 (TN: root name server) (Judgment *2)
        3. TN send query response to NUT w/ AUTHORITY Name=org, AUTHORITY Name Server=NS3.example.org.
        4. NUT transmits standard query QNAME=A.example.org, QTYPE=A to DNS Server3 (TN: NS3.example.org) (Judgment *4A)
        5. TN doesn't send query response to NUT w/ AUTHORITY Name=example.org, AUTHORITY Name Server=NS4.example.org.
        6. NUT transmits standard query QNAME=A.example.org, QTYPE=A to DNS Server4 (TN: NS4.example.org) (Judgment *4B)
        7. TN doesn't send query response to ANSWER Name=A.example.org, ANSWER Address=192.168.1.10 to NUT.
        *Even if order is reverse, 4,5 and 6,7 are acceptable.


JUDGMENT

        2. Received standard query including QNAME=A.example.org, QTYPE=A.
        4. Received standard query including QNAME=A.example.org, QTYPE=A.
        6. Received standard query including QNAME=A.example.org, QTYPE=A.
        *The order of 4. and 6. might become opposite.


TERMINATION

        None


REFERENCE

        RFC1034 DOMAIN NAMES - CONCEPTS AND FACILITIES
        5.3.3. Algorithm