NAME

        SV_RFC3596_2_5_PTR_type - PTR type


VERIFICATION POINTS

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


TARGET

        Caching Server


SYNOPSIS

	SV_RFC3596_2_5_PTR_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 DNS Server5
        |                              |                                 |           |           |           | 
        |----------------------------->|                                 |           |           |           |
        | 1. Send standard query       |                                 |           |           |           |
        |  QNAME                       |                                 |           |           |           |
        |   = 0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.                           |           |           |           |
        |     1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA                   |           |           |           |
        |  QTYPE=PTR                   |                                 |           |           |           |
        |                              |                                 |           |           |           |
        |                              |-------------------------------->|           |           |           |
        |                              | 2. Recv standard query          |           |           |           |
        |                              |  QNAME                          |           |           |           |
        |                              |   = 0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.        |           |           |
        |                              |     1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA|           |           |
        |                              |  QTYPE=PTR                      |           |           |           |
        |                              |                                 |           |           |           |
        |                              |<--------------------------------|           |           |           |
        |                              | 3. Send standard query response |           |           |           |
        |                              |  QNAME                          |           |           |           |
        |                              |   = 0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.        |           |           |
        |                              |     1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA|           |           |
        |                              |  QTYPE=PTR                      |           |           |           |
        |                              |  AUTHORITY Name                 |           |           |           |
        |                              |   = 1.0.5.0.e.f.f.3.IP6.ARPA    |           |           |           |
        |                              |  AUTHORITY NSDNAME              |           |           |           |
        |                              |   =NS3.example.org              |           |           |           |
        |                              |  ADDITIONAL Name                |           |           |           |
        |                              |   =NS3.example.org              |           |           |           |
        |                              |  ADDITIONAL Address             |           |           |           |
        |                              |   =192.168.1.30                 |           |           |           |
        |                              |                                 |           |           |           |
        |                              |                                 v           |           |           |
        |                              |                                             |           |           |
        |                              |-------------------------------------------->|           |           |
        |                              |             4. Recv standard query          |           |           |
        |                              |              QNAME                          |           |           |
        |                              |               = 0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.        |           |
        |                              |                 1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA|           |
        |                              |              QTYPE=PTR                      |           |           |
        |                              |                                             |           |           |
        |                              |<--------------------------------------------|           |           |
        |                              |             5. Send standard query response |           |           |
        |                              |              QNAME                          |           |           |
        |                              |               = 0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.        |           |
        |                              |                 1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA|           |
        |                              |              QTYPE=PTR                      |           |           |
        |                              |              AUTHORITY Name                 |           |           |
        |                              |               = f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA        |           |
        |                              |              AUTHORITY NSDNAME              |           |           |
        |                              |               = NS4.example.org             |           |           |
        |                              |              ADDITIONAL Name                |           |           |
        |                              |               = NS4.example.org             |           |           |
        |                              |              ADDITIONAL Address             |           |           |
        |                              |               = 192.168.1.40                |           |           |
        |                              |                                             |           |           |
        |                              |                                             v           |           |
        |                              |                                                         |           |
        |                              |-------------------------------------------------------->|           |
        |                              |                         6. Send standard query          |           |
        |                              |                          QNAME                          |           |
        |                              |                           = 0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.        |
        |                              |                             1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA|
        |                              |                          QTYPE=PTR                      |           |
        |                              |                                                         |           |
        |                              |<--------------------------------------------------------|           |
        |                              |                         7. Send standard query response |           |
        |                              |                          QNAME                          |           |
        |                              |                           = 0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.        |
        |                              |                             1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA|
        |                              |                          QTYPE=PTR                      |           |
        |                              |                          AUTHORITY Name                 |           |
        |                              |                           = 1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA|
        |                              |                          AUTHORITY NSDNAME              |           |
        |                              |                           = NS5.example.org             |           |
        |                              |                          ADDITIONAL Name                |           |
        |                              |                           = NS5.example.org             |           |
        |                              |                          ADDITIONAL Address             |           |
        |                              |                           = 192.168.1.50                |           |
        |                              |                                                         |           |
        |                              |                                                         v           |
        |                              |                                                                     |
        |                              |-------------------------------------------------------------------->|
        |                              |                         8. Send standard query                      |
        |                              |                          QNAME                                      |
        |                              |                           = 0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.        |
        |                              |                             1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA|
        |                              |                          QTYPE=PTR                                  |
        |                              |                                                                     |
        |                              |<--------------------------------------------------------------------|
        |                              |                         9. Send standard query response             |
        |                              |                          QNAME                                      |
        |                              |                           = 0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.        |
        |                              |                             1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA|
        |                              |                          QTYPE=PTR                                  |
        |                              |                          ANSWER NAME                                |
        |                              |                           = 0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.        |
        |                              |                             1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA|
        |                              |                          ANSWER PTRDNAME                            |
        |                              |                           = A.example.org                           |
        |                              |                          AUTHORITY Name                             |
        |                              |                           = 1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA|
        |                              |                          AUTHORITY NSDNAME                          |
        |                              |                           = NS5.example.org                         |
        |                              |                          ADDITIONAL Name                            |
        |                              |                           = NS5.example.org                         |
        |                              |                          ADDITIONAL Address                         |
        |                              |                           = 192.168.1.50                            |
        |                              |                                                                     |
        |<-----------------------------|                                                                     v
        | 10. Recv Standard query      |
        |                     response |
        |  QNAME                       |
        |   = 0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.
        |     1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA
        |  QTYPE=PTR                   |
        |  ANSWER NAME                 |
        |   = 0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.
        |     1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA
        |  ANSWER PTRDNAME             |
        |   = A.example.org            |
        |  AUTHORITY Name              |
        |   = 1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA
        |  AUTHORITY NSDNAME           |
        |   = NS5.example.org          |
        |  ADDITIONAL Name             |
        |   = NS5.example.org          |
        |  ADDITIONAL Address          |
        |   = 192.168.1.50             |
        |                              |
        v                              v
        1. TN send standard query
           QNAME=0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA, QTYPE=PTR 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.0.5.0.e.f.f.3.IP6.ARPA,
           AUTHORITY Name Server=NS3.example.org.
        4. NUT transmits standard query
           QNAME=0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA,
           QTYPE=PTR to DNS Server3 (TN: NS3.example.org) (Judgment *4)
        5. TN send query response to NUT w/ AUTHORITY Name=f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA,
           AUTHORITY Name Server=NS4.example.org.
        6. NUT transmits standard query
           QNAME=0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA,
           QTYPE=PTR to DNS Server4 (TN: NS4.example.org) (Judgment *6)
        7. TN send query response to NUT w/ AUTHORITY Name=1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA,
           AUTHORITY Name Server=NS5.example.org.
        8. NUT transmits standard query
           QNAME=0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA,
           QTYPE=PTR to DNS Server5 (TN: NS5.example.org) (Judgment *8)
        9. TN send query response to NUT w/
           ANSWER Name=0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA,
           ANSWER Ptrdname=A.example.org to NUT.
        10. NUT transmits query response to DNS Client1 (TN) (Judgment *10)


JUDGMENT

        2. Received standard query including QNAME=0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA, QTYPE=PTR.
        4. Received standard query including QNAME=0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA, QTYPE=PTR.
        6. Received standard query including QNAME=0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA, QTYPE=PTR.
        8. Received standard query including QNAME=0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA, QTYPE=PTR.
       10. Received standard query response including correct <domain-name> in the PTRDNAME field.


TERMINATION

        None


REFERENCE

        RFC1034 DOMAIN NAMES - CONCEPTS AND FACILITIES
        3.6 Resource Records
        RFC1035 DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION
        3.2.1 Format 
        3.2.2 TYPE values 
        3.3.12. PTR RDATA format
        RFC3596 DNS Extensions to Support IPv6
        2.5 IP6.ARPA domain