NAME

        CL_RFC3403_4_NAPTR_flagA - Flag "A" to control rewriting and interpretation


VERIFICATION POINTS

        Verify a NUT process when NUT received message that includes multiple 
        Naming Authority Pointer (NAPTR) Resource Records (RR) containing 
        different flags.


TARGET

        Client (ADVANCED)


SYNOPSIS

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


INITIALIZATION


TEST PROCEDURE

        This test sequence is following.
    DNS Client1 (NUT)                               DNS Server1 (TN)
        |                                               |
        | Invoke some application                       |
        |    on NUT (Ex. HTTP)                          |
        |                                               |
        |---------------------------------------------->|
        | 1. Send standard query                        |
        |    QNAME="http.uri.arpa."                     |
        |    QTYPE=NAPTR                                |  
        |                                               |
        |<----------------------------------------------|
        | 2. Send standard query response               |
        |                                               |
        |---------------------------------------------->|
        | 3. Send standard query                        |
        |    QNAME="www.example.com"                    |
        |    QTYPE=NAPTR                                |  
        |                                               |
        |<----------------------------------------------|
        | 4. Send standard query response               |
        |                                               |
        |---------------------------------------------->|
        | 5. Send standard query                        |
        |    QNAME="http.example.com"                   |
        |    QTYPE=A or AAAA                            |  
        |                                               |
        v                                               v
        1. DNS Client1 (NUT) sends a standard query with QNAME = "http.uri.arpa." type = NAPTR 
        2. DNS Server1 (NUT) transmits a response to DNS Client1 (NUT) with:
           $ORIGIN http.uri.arpa. 
           ;;       order pref flags service  regexp                       replacement
           IN NAPTR 100   90   ""    ""       "!^http://([^/:]+)!1!i"      .
        3. DNS Client1 (NUT) sends a standard query with QNAME = "www.example.com." type = NAPTR. Judgment (Check *3)
        4. DNS Server1 (NUT) transmits a response to DNS Client1 (NUT) with:
           $ORIGIN www.example.com.
           ;;       order pref flags   service  regexp     replacement
            IN NAPTR 100  100  "a"   "http+N2C"   ""    http.example.com.
        5. DNS Client1 (NUT) sends a standard query with QNAME = "http.example.com." type = A or AAAA. Judgment (Check *5)


JUDGMENT

        3. Received a query message that it includes QNAME=www.example.com, TYPE=NAPTR.
        5. Received a query message that it includes QNAME=http.example.com, TYPE=A or AAAA.


TERMINATION

        If NUT has cache function, clear the cache.


REFERENCE

	RFC3403 Dynamic Delegation Discovery System (DDDS)
                Part Three: The Domain Name System (DNS) Database
	        4. NAPTR RR Format 
	RFC3404 Dynamic Delegation Discovery System (DDDS)
	        Part Four: The Uniform Resource Identifiers (URI)
	                      Resolution Application
	        5.3 Resolving an HTTP URI Scheme