NAME

        SV_RFC2782_SRV_type - Resource record SRV type


VERIFICATION POINTS

        Verify that a NUT transmits correct message including SRV type in the QTYPE field.


TARGET

        Caching Server


SYNOPSIS

	SV_RFC2782_SRV_type.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=_http._tcp.example.org.                               |           |           |
        |    QTYPE=SRV                 |                                 |           |           |
        |                              |                                 |           |           |
        |                              |-------------------------------->|           |           |
        |                              | 2. Send standard query          |           |           |
        |                              |  QNAME=_http._tcp.example.org.  |           |           |
        |                              |  QTYPE=SRV                      |           |           |
        |                              |                                 |           |           |
        |                              |<--------------------------------|           |           |
        |                              | 3. Send standard response       |           |           |
        |                              |  QNAME=_http._tcp.example.org.  |           |           |
        |                              |  QTYPE=SRV                      |           |           |
        |                              |  AUTHORITY Name=org.            |           |           |
        |                              |  AUTHORITY Name Server          |           |           |
        |                              |            =NS3.example.org.    |           |           |
        |                              |  ADDITIONAL Name=NS3.example.org.           |           |
        |                              |  ADDITIONAL Address=192.168.1.30|           |           |
        |                              |                                 |           |           |
        |                              |                                 v           |           |
        |                              |                                             |           |
        |                              |-------------------------------------------->|           |
        |                              |             4. Send standard query          |           |
        |                              |              QNAME=_http._tcp.example.org.  |           |
        |                              |              QTYPE=SRV                      |           |
        |                              |                                             |           |
        |                              |<--------------------------------------------|           |
        |                              |             5. Send standard response       |           |
        |                              |              QNAME=_http._tcp.example.org.  |           |
        |                              |              QTYPE=SRV                      |           |
        |                              |              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=_http._tcp.example.org. |
        |                              |                           QTYPE=SRV                     |
        |                              |                                                         |
        |                              |<--------------------------------------------------------|
        |                              |                          7. Send standard response      |
        |                              |                           QNAME=_http._tcp.example.org. |
        |                              |                           QTYPE=SRV                     |
        |                              |                           ANSWER                        |
        |                              |                               Priority = 10             |
        |                              |                               Weight = 20               |
        |                              |                               Port = 80                 |
        |                              |                               Target = A.example.org.   |
        |                              |                           AUTHORITY Name=example.org.   |
        |                              |                           AUTHORITY Name Server         |
        |                              |                               = NS4.example.org.        |
        |                              |                           ADDITIONAL Name               |
        |                              |                               = A.example.org.          |
        |                              |                           ADDITIONAL Address            |
        |                              |                               = 192.168.1.10            |
        |                              |                           ADDITIONAL Name               |
        |                              |                               = NS4.example.org.        |
        |                              |                           ADDITIONAL Address            |
        |                              |                               = 192.168.1.40            |
        |<-----------------------------|                                                         |
        | 8. Standard query response   |                                                         v
        |  QNAME=_http._tcp.example.org.
        |  QTYPE=SRV                   |
        |  ANSWER                      |
        |      Priority = 10           |
        |      Weight = 20             |
        |      Port = 80               |
        |      Target = A.example.org. |
        |  AUTHORITY Name=example.org. |
        |  AUTHORITY Name Server       |
        |      = NS4.example.org.      |
        |  ADDITIONAL Name             |
        |      = A.example.org.        |
        |  ADDITIONAL Address          |
        |      = 192.168.1.10          |
        |  ADDITIONAL Name             |
        |      = NS4.example.org.      |
        |  ADDITIONAL Address          |
        |      = 192.168.1.40          |
        v                              v
        1. TN send standard query QNAME=_http._tcp.example.org., QTYPE=SRV 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=_http._tcp.example.org., QTYPE=SRV 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=_http._tcp.example.org., QTYPE=SRV DNS Server4 (TN: NS4.example.org.) (Judgment *6)
        7. TN send query response to ANSWER Target = A.example.org. to NUT.
        8. NUT transmits query response to DNS Client1 (TN) (Judgment *8)


JUDGMENT

        2. Received standard query including QNAME=_http._tcp.example.org., QTYPE=SRV.
        4. Received standard query including QNAME=_http._tcp.example.org., QTYPE=SRV.
        6. Received standard query including QNAME=_http._tcp.example.org., QTYPE=SRV.
        8. Received standard query response including correct domain name in the Target field.


TERMINATION

        None


REFERENCE

        RFC1034 DOMAIN NAMES - CONCEPTS AND FACILITIES
        3.6 Resource Records
        RFC1035 DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION
        3.2.1 Format
        RFC2782 DNS SRV RR