NAME

        CL_RFC2782_SRV_priority - Priority comparing


VERIFICATION POINTS

        Verify that a NUT compares Priority of Target


TARGET

        Client


SYNOPSIS

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


INITIALIZATION


TEST PROCEDURE

        This test sequence is following.
    DNS Client1 (NUT)                        DNS Server1 (TN)       AP Server1 (TN)         AP Server2 (TN)
        |                                              |                      |                       |
        |--------------------------------------------->|                      |                       |
        |           1. Send standard query             |                      |                       |
        |              QNAME=_http._tcp.example.com.   |                      |                       |
        |              QTYPE=SRV                       |                      |                       |
        |                                              |                      |                       |
        |<---------------------------------------------|                      |                       |
        |           2. Standard query response         |                      |                       |
        |              QNAME=_http._tcp.example.com.   |                      |                       |
        |              QTYPE=SRV                       |                      |                       |
        |              ANSWER                          |                      |                       |
        |                Priority = 2                  |                      |                       |
        |                Weight = 0                    |                      |                       |
        |                Port = 80                     |                      |                       |
        |                Target = B.example.com.       |                      |                       |
        |              ANSWER                          |                      |                       |
        |                Priority = 1                  |                      |                       |
        |                Weight = 0                    |                      |                       |
        |                Port = 80                     |                      |                       |
        |                Target = C.example.com.       |                      |                       |
        |              ADDITIONAL Name                 |                      |                       |
        |                = B.example.com.              |                      |                       |
        |              ADDITIONAL Address              |                      |                       |
        |                = 192.168.1.60                |                      |                       |
        |              ADDITIONAL Name                 |                      |                       |
        |                = C.example.com.              |                      |                       |
        |              ADDITIONAL Address              |                      |                       |
        |                = 192.168.1.70                |                      |                       |
        |                                              |                      |                       |
        |-------------------------------------------------------------------------------------------->|
        |           3. start TCP communication (SYN)   |                      |                       |
        |                                              |                      |                       |
        v                                              v                      v                       v
        1. NUT send standard query to DNS Server1(TN).
                  Judgment (Check *1)
        2. TN send standard query response to NUT.
        3. NUT start TCP communication (SYN) to AP Server2(TN).
                  Judgment (Check *3)


JUDGMENT

        1. Received standard query QNAME=_http._tcp.example.com. from NUT.
        3. Received TCP packet (SYN) from NUT.


TERMINATION

        If NUT has cache function, clear the cache.


REFERENCE

	RFC1035 DOMAIN NAMES - CONCEPTS AND FACILITIES
	5.2.1. Typical functions	RFC2782 DNS SRV RR