NAME

        SV_RFC1034_3_6_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_RFC1034_3_6_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                       |                                 |           |           |           |
        |   =10.1.168.192.IN-ADDR.ARPA |                                 |           |           |           |
        |  QTYPE=PTR                   |                                 |           |           |           |
        |                              |                                 |           |           |           |
        |                              |-------------------------------->|           |           |           |
        |                              | 2. Recv standard query          |           |           |           |
        |                              |  QNAME                          |           |           |           |
        |                              |   =10.1.168.192.IN-ADDR.ARPA    |           |           |           |
        |                              |  QTYPE=PTR                      |           |           |           |
        |                              |                                 |           |           |           |
        |                              |<--------------------------------|           |           |           |
        |                              | 3. Send standard query response |           |           |           |
        |                              |  QNAME                          |           |           |           |
        |                              |   =10.1.168.192.IN-ADDR.ARPA    |           |           |           |
        |                              |  QTYPE=PTR                      |           |           |           |
        |                              |  AUTHORITY Name                 |           |           |           |
        |                              |            =192.IN-ADDR.ARPA    |           |           |           |
        |                              |  AUTHORITY NSDNAME              |           |           |           |
        |                              |            =NS3.example.org     |           |           |           |
        |                              |  ADDITIONAL Name                |           |           |           |
        |                              |            =NS3.example.org     |           |           |           |
        |                              |  ADDITIONAL Address             |           |           |           |
        |                              |            =192.168.1.30        |           |           |           |
        |                              |                                 |           |           |           |
        |                              |                                 v           |           |           |
        |                              |                                             |           |           |
        |                              |-------------------------------------------->|           |           |
        |                              |             4. Recv standard query          |           |           |
        |                              |              QNAME                          |           |           |
        |                              |               =10.1.168.192.IN-ADDR.ARPA    |           |           |
        |                              |              QTYPE=PTR                      |           |           |
        |                              |                                             |           |           |
        |                              |<--------------------------------------------|           |           |
        |                              |             5. Send standard query response |           |           |
        |                              |              QNAME                          |           |           |
        |                              |               =10.1.168.192.IN-ADDR.ARPA    |           |           |
        |                              |              QTYPE=PTR                      |           |           |
        |                              |              AUTHORITY Name                 |           |           |
        |                              |                     = 168.192.IN-ADDR.ARPA  |           |           |
        |                              |              AUTHORITY NSDNAME              |           |           |
        |                              |                     = NS4.example.org       |           |           |
        |                              |              ADDITIONAL Name                |           |           |
        |                              |                     = NS4.example.org       |           |           |
        |                              |              ADDITIONAL Address             |           |           |
        |                              |                     = 192.168.1.40          |           |           |
        |                              |                                             |           |           |
        |                              |                                             v           |           |
        |                              |                                                         |           |
        |                              |-------------------------------------------------------->|           |
        |                              |                          6. Send standard query         |           |
        |                              |                           QNAME                         |           |
        |                              |                            =10.1.168.192.IN-ADDR.ARPA   |           |
        |                              |                           QTYPE=PTR                     |           |
        |                              |                                                         |           |
        |                              |<--------------------------------------------------------|           |
        |                              |                          7. Send standard query response|           |
        |                              |                           QNAME                         |           |
        |                              |                            =10.1.168.192.IN-ADDR.ARPA   |           |
        |                              |                           QTYPE=PTR                     |           |
        |                              |                           AUTHORITY Name                |           |
        |                              |                               = 1.168.192.IN-ADDR.ARPA  |           |
        |                              |                           AUTHORITY NSDNAME             |           |
        |                              |                               = NS5.example.org         |           |
        |                              |                           ADDITIONAL Name               |           |
        |                              |                               = NS5.example.org         |           |
        |                              |                           ADDITIONAL Address            |           |
        |                              |                               = 192.168.1.50            |           |
        |                              |                                                         |           |
        |                              |                                                         v           |
        |                              |                                                                     |
        |                              |-------------------------------------------------------------------->|
        |                              |                                     8. Send standard query          |
        |                              |                                      QNAME                          |
        |                              |                                       =10.1.168.192.IN-ADDR.ARPA    |
        |                              |                                      QTYPE=PTR                      |
        |                              |                                                                     |
        |                              |<--------------------------------------------------------------------|
        |                              |                                     9. Send standard query response |
        |                              |                                      QNAME                          |
        |                              |                                       =10.1.168.192.IN-ADDR.ARPA    |
        |                              |                                      QTYPE=PTR                      |
        |                              |                                      ANSWER NAME                    |
        |                              |                                       = 10.1.168.192.IN-ADDR.ARPA   |
        |                              |                                      ANSWER PTRDNAME                |
        |                              |                                          = A.example.org            |
        |                              |                                      AUTHORITY Name                 |
        |                              |                                          = 1.168.192.IN-ADDR.ARPA   |
        |                              |                                      AUTHORITY NSDNAME              |
        |                              |                                          = NS5.example.org          |
        |                              |                                      ADDITIONAL Name                |
        |                              |                                          = NS5.example.org          |
        |                              |                                      ADDITIONAL Address             |
        |                              |                                          = 192.168.1.50             |
        |                              |                                                                     |
        |<-----------------------------|                                                                     v
        | 10. Recv Standard query      |
        |                     response |
        |  QNAME                       |
        |   = 10.1.168.192.IN-ADDR.ARPA|
        |  QTYPE=PTR                   |
        |  ANSWER NAME                 |
        |   = 10.1.168.192.IN-ADDR.ARPA|
        |  ANSWER PTRDNAME             |
        |   = A.example.org            |
        |  AUTHORITY Name              |
        |   = 1.168.192.IN-ADDR.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=10.1.168.192.IN-ADDR.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=192.IN-ADDR.ARPA, AUTHORITY Name Server=NS3.example.org.
        4. NUT transmits standard query QNAME=10.1.168.192.IN-ADDR.ARPA, QTYPE=PTR to DNS Server3 (TN: NS3.example.org) (Judgment *4)
        5. TN send query response to NUT w/ AUTHORITY Name=168.192.IN-ADDR.ARPA, AUTHORITY Name Server=NS4.example.org.
        6. NUT transmits standard query QNAME=10.1.168.192.IN-ADDR.ARPA, QTYPE=PTR to DNS Server4 (TN: NS4.example.org) (Judgment *6)
        7. TN send query response to NUT w/ AUTHORITY Name=1.168.192.IN-ADDR.ARPA, AUTHORITY Name Server=NS5.example.org.
        8. NUT transmits standard query QNAME=10.1.168.192.IN-ADDR.ARPA, QTYPE=PTR to DNS Server5 (TN: NS5.example.org) (Judgment *8)
        9. TN send query response to NUT w/ ANSWER Name=10.1.168.192.IN-ADDR.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=10.1.168.192.IN-ADDR.ARPA, QTYPE=PTR.
        4. Received standard query including QNAME=10.1.168.192.IN-ADDR.ARPA, QTYPE=PTR.
        6. Received standard query including QNAME=10.1.168.192.IN-ADDR.ARPA, QTYPE=PTR.
        8. Received standard query including QNAME=10.1.168.192.IN-ADDR.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