NAME

        SV_RFC2308_6_referral_NODATA - Nagative answer should have an implicit referral built into the answer (NODATA)


VERIFICATION POINTS

        Verify that a NUT has an implicit referral in the negative answer (NODATA).


TARGET

        Caching Server


SYNOPSIS

	SV_RFC2308_6_referral_NODATA.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.org         |                                 |           |           |
        |  QTYPE=HINFO                 |                                 |           |           |
        |                              |                                 |           |           |
        |                              |-------------------------------->|           |           |
        |                              | 2. Recv standard query          |           |           |
        |                              |  QNAME=A.example.org            |           |           |
        |                              |  QTYPE=HINFO                    |           |           |
        |                              |                                 |           |           |
        |                              |<--------------------------------|           |           |
        |                              | 3. Send standard query response |           |           |
        |                              |  QNAME=A.example.org            |           |           |
        |                              |  QTYPE=HINFO                    |           |           |
        |                              |  AUTHORITY Name=org             |           |           |
        |                              |  AUTHORITY Name Server          |           |           |
        |                              |            =NS3.example.org     |           |           |
        |                              |  ADDITIONAL Name                |           |           |
        |                              |            =NS3.example.org     |           |           |
        |                              |  ADDITIONAL Address             |           |           |
        |                              |            =192.168.1.30        |           |           |
        |                              |                                 |           |           |
        |                              |                                 v           |           |
        |                              |                                             |           |
        |                              |-------------------------------------------->|           |
        |                              |             4. Recv standard query          |           |
        |                              |              QNAME=A.example.org            |           |
        |                              |              QTYPE=HINFO                    |           |
        |                              |                                             |           |
        |                              |<--------------------------------------------|           |
        |                              |             5. Send standard query response |           |
        |                              |              QNAME=A.example.org            |           |
        |                              |              QTYPE=HINFO                    |           |
        |                              |              AUTHORITY Name=example.org     |           |
        |                              |              AUTHORITY Name Server          |           |
        |                              |                     = NS4.example.org       |           |
        |                              |              ADDITIONAL Name                |           |
        |                              |                     = NS4.example.org       |           |
        |                              |              ADDITIONAL Address             |           |
        |                              |                     = 192.168.1.40          |           |
        |                              |                                             |           |
        |                              |                                             v           |
        |                              |                                                         |
        |                              |-------------------------------------------------------->|
        |                              |                          6. Send standard query         |
        |                              |                           QNAME=A.example.org           |
        |                              |                           QTYPE=HINFO                   |
        |                              |                                                         |
        |                              |<--------------------------------------------------------|
        |                              |                          7. Send standard query response|
        |                              |                           (NODATA)                      |
        |                              |                           QNAME=A.example.org           |
        |                              |                           QTYPE=HINFO                   |
        |                              |                           AUTHORITY Name=example.org    |
        |                              |                           AUTHORITY Type=SOA            |
        |                              |                           AUTHORITY Minimum=1 hour      |
        |                              |                           AUTHORITY Name=example.org    |
        |                              |                           AUTHORITY Type=NS             |
        |                              |                           AUTHORITY Name Server         |
        |                              |                               = NS4.example.org         |
        |                              |                           ADDITIONAL Name               |
        |                              |                               = NS4.example.org         |
        |                              |                           ADDITIONAL Address            |
        |                              |                               = 192.168.1.40            |
        |                              |                                                         |
        |                              |                                                         |
        |<-----------------------------|                                                         |
        | 8. Standard query response   |                                                         |
        |  (NODATA)                    |                                                         |
        |  QNAME= A.example.org        |                                                         |
        |  QTYPE=HINFO                 |                                                         |
        |  AUTHORITY Name=example.org  |                                                         |
        |  AUTHORITY Type=SOA          |                                                         |
        |  AUTHORITY Minimum=1 hour    |                                                         |
        |  AUTHORITY Name=example.org  |                                                         |
        |  AUTHORITY Type=NS           |                                                         |
        |  ADDITIONAL Name             |                                                         |
        |   = NS4.example.org          |                                                         |
        |  ADDITIONAL Name             |                                                         |
        |   = NS4.example.org          |                                                         |
        |  ADDITIONAL Address          |                                                         |
        |   = 192.168.1.40             |                                                         |
        |                              |                                                         |
        v                              v                                                         v
        1. TN send standard query QNAME=A.example.org, QTYPE=HINFO 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=HINFO to DNS Server3 (TN: NS3.example.org) (Judgment *4)
        5. TN 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=HINFO to DNS Server4 (TN: NS4.example.org) (Judgment *6)
        7. TN send query response(NODATA) to  AUTHORITY Name=example.org, AUTHORITY Type=SOA, and AUTHORITY Name=example.org, AUTHORITY Type=NS.
        8. NUT transmits query response(NODATA) to DNS Client1 (TN) (Judgment *8)


JUDGMENT

        2. Received standard query including QNAME=A.example.org, QTYPE=HINFO.
        4. Received standard query including QNAME=A.example.org, QTYPE=HINFO.
        6. Received standard query including QNAME=A.example.org, QTYPE=HINFO.
        8. Received standard query response(NODATA) including referral
        (NS record of Authority section and A record of additional section).


TERMINATION

        None


REFERENCE

        RFC2308 Negative Caching of DNS Queries (DNS NCACHE)
        6 - Negative answers from the cache