NAME

        SV_RFC3403_4_cache_NAPTR - Caching NAPTR resource record


VERIFICATION POINTS

        Verify that a NUT uses the cached data and does not use the TTL expired cache.


TARGET

        Caching Server


SYNOPSIS

	SV_RFC3403_4_cache_NAPTR.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                       |                                 |           |           |
        |   =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.                          |           |           |
        |  QTYPE=NAPTR                 |                                 |           |           |
        |                              |                                 |           |           |
        |                              |-------------------------------->|           |           |
        |                              | 2. Recv standard query          |           |           |
        |                              |  QNAME                          |           |           |
        |                              |   =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.       |           |
        |                              |  QTYPE=NAPTR                    |           |           |
        |                              |                                 |           |           |
        |                              |<--------------------------------|           |           |
        |                              | 3. Send standard query response |           |           |
        |                              |  QNAME                          |           |           |
        |                              |   =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.       |           |
        |                              |  QTYPE=NAPTR                    |           |           |
        |                              |  AUTHORITY Name                 |           |           |
        |                              |            =1.8.e164.arpa.      |           |           |
        |                              |  AUTHORITY NSDNAME              |           |           |
        |                              |            =NS3.example.org     |           |           |
        |                              |  ADDITIONAL Name                |           |           |
        |                              |            =NS3.example.org     |           |           |
        |                              |  ADDITIONAL Address             |           |           |
        |                              |            =192.168.1.30        |           |           |
        |                              |                                 |           |           |
        |                              |                                 v           |           |
        |                              |                                             |           |
        |                              |-------------------------------------------->|           |
        |                              |             4. Recv standard query          |           |
        |                              |              QNAME                          |           |
        |                              |               =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.       |
        |                              |              QTYPE=NAPTR                    |           |
        |                              |                                             |           |
        |                              |<--------------------------------------------|           |
        |                              |             5. Send standard query response |           |
        |                              |              QNAME                          |           |
        |                              |               =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.       |
        |                              |              QTYPE=NAPTR                    |           |
        |                              |              AUTHORITY Name                 |           |
        |                              |                     = 0.9.1.8.e164.arpa.    |           |
        |                              |              AUTHORITY NSDNAME              |           |
        |                              |                     = NS4.example.org       |           |
        |                              |              ADDITIONAL Name                |           |
        |                              |                     = NS4.example.org       |           |
        |                              |              ADDITIONAL Address             |           |
        |                              |                     = 192.168.1.40          |           |
        |                              |                                             |           |
        |                              |                                             v           |
        |                              |                                                         |
        |                              |-------------------------------------------------------->|
        |                              |                          6. Send standard query         |
        |                              |                           QNAME                         |
        |                              |                            =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.
        |                              |                           QTYPE=NAPTR                   |
        |                              |                                                         |
        |                              |<--------------------------------------------------------|
        |                              |                          7. Send standard query response|
        |                              |                           QNAME                         |
        |                              |                            =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.
        |                              |                           QTYPE=NAPTR                   |
        |                              |                           ANSWER NAME                   |
        |                              |                            =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.
        |                              |                           ANSWER Type=NAPTR             |
        |                              |                           ANSWER TTL= 15 seconds        |
        |                              |                           AUTHORITY Name                |
        |                              |                               = 0.9.1.8.e164.arpa.      |
        |                              |                           AUTHORITY NSDNAME             |
        |                              |                               = NS4.example.org         |
        |                              |                           ADDITIONAL Name               |
        |                              |                               = NS4.example.org         |
        |                              |                           ADDITIONAL Address            |
        |                              |                               = 192.168.1.40            |
        |                              |                                                         |
        |<-----------------------------|                                                         |
        |8.Recv Standard query response|                                                         |
        |  QNAME                       |                                                         |
        |   = 1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.                                                 |
        |  QTYPE=NAPTR                 |                                                         |
        |  ANSWER NAME                 |                                                         |
        |   = 1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.                                                 |
        |  ANSWER TYPE                 |                                                         |
        |   = NAPTR                    |                                                         |
        |  AUTHORITY Name              |                                                         |
        |   = 0.9.1.8.e164.arpa        |                                                         |
        |  AUTHORITY NSDNAME           |                                                         |
        |   = NS4.example.org          |                                                         |
        |  ADDITIONAL Name             |                                                         |
        |   = NS4.example.org          |                                                         |
        |  ADDITIONAL Address          |                                                         |
        |   = 192.168.1.40             |                                                         |
        |                              |                                                         |
        |      wait 5 seconds          |                                                         |
        |----------------------------->|                                                         |
        | 9. Send standard query       |                                                         |
        |  QNAME                       |                                                         |
        |   =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.                                                  |
        |  QTYPE=NAPTR                 |                                                         |
        |                              |                                                         |
        |                              |                                                         |
        |<-----------------------------|                                                         |
        |10.Recv Standard query        |                                                         |
        |                      response|                                                         |
        |  QNAME                       |                                                         |
        |   = 1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.                                                 |
        |  QTYPE=NAPTR                 |                                                         |
        |  ANSWER NAME                 |                                                         |
        |   = 1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.                                                 |
        |  ANSWER TYPE                 |                                                         |
        |   = NAPTR                    |                                                         |
        |  AUTHORITY Name              |                                                         |
        |   = 0.9.1.8.e164.arpa        |                                                         |
        |  AUTHORITY NSDNAME           |                                                         |
        |   = NS4.example.org          |                                                         |
        |  ADDITIONAL Name             |                                                         |
        |   = NS4.example.org          |                                                         |
        |  ADDITIONAL Address          |                                                         |
        |   = 192.168.1.40             |                                                         |
        |                              |                                                         |
        |      wait 15 seconds         |                                                         |
        |----------------------------->|                                                         |
        |11. Send standard query       |                                                         |
        |  QNAME                       |                                                         |
        |   =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.                                                  |
        |  QTYPE=NAPTR                 |                                                         |
        |                              |                                                         |
        |                              |                                                         |
        |                              |-------------------------------------------------------->|
        |                              |                         12. Send standard query         |
        |                              |                           QNAME                         |
        |                              |                            =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.
        |                              |                           QTYPE=NAPTR                   |
        |                              |                                                         |
        v                              v                                                         v
        1. TN send standard query QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR 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=1.8.e164.arpa, AUTHORITY Name Server=NS3.example.org.
        4. NUT transmits standard query QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR to DNS Server3 (TN: NS3.example.org) (Judgment *4)
        5. TN send query response to NUT w/ AUTHORITY Name=0.9.1.8.e164.arpa, AUTHORITY Name Server=NS4.example.org.
        6. NUT transmits standard query QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR to DNS Server4 (TN: NS4.example.org) (Judgment *6)
        7. TN send query response to NUT w/ ANSWER Name=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, ANSWER Type=NAPTR to NUT.
        8. NUT transmits query response to DNS Client1 (TN) (Judgment *8)
        wait 5 seconds
        9. TN send standard query QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR to NUT.
       10. NUT transmits query response to DNS Client1 (TN) form cache. (Judgment *10)
        wait 15 seconds
       11. TN send standard query QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR to NUT.
       12. NUT transmits standard query QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR to DNS Server4 (TN: NS4.example.org) (Judgment *12)


JUDGMENT

        2. Received standard query including QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR.
        4. Received standard query including QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR.
        6. Received standard query including QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR.
        8. Received standard query response including correct NAPTR record in Answer section.
        10. Received standard query response including correct NAPTR record in Answer section from cache.
        12. Received standard query including QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR.


TERMINATION

        None


REFERENCE

        RFC3403 Dynamic Delegation Discovery System (DDDS)
                Part Three: The Domain Name System (DNS) Database
        3. DDDS Database Specification
        4. NAPTR RR Format