NAME

        SV_RFC1034_4_3_5_NotCompZoneTransfer - Zone transfer is not completed case.


VERIFICATION POINTS

        Verify that a NUT starts zone maintenance and transfers as follows:


TARGET

        Server (Secondary)


SYNOPSIS

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


INITIALIZATION


TEST PROCEDURE

        This test sequence is following.
    DNS Client1 (TN)             DNS Server1 (NUT)              DNS Server7 (TN)
        |                              |                              |
        |                              |                              |
        |                              |----------------------------->|
        |                              | 1. Standard query            |
        |                              |  QNAME = sec.example.com     |
        |                              |  QTYPE = SOA (0x0006)        |
        |                              |                              |
        |                              |<-----------------------------|
        |                              | 2. Standard query response   |
        |                              |  QNAME = sec.example.com     |
        |                              |  QTYPE = SOA (0x0006)        |
        |                              |  ANSWER Name                 |
        |                              |       = sec.example.com      |
        |                              |  ANSWER Type                 |
        |                              |       = SOA (0x0006)         |
        |                              |  ANSWER TTL                  |
        |                              |       = 30                   |
        |                              |  ANSWER MNAME                |
        |                              |       = sec.example.com      |
        |                              |  ANSWER Rname                |
        |                              |       = root.sec.example.com |
        |                              |  ANSWER SERIAL               |
        |                              |       = 1                    |
        |                              |  ANSWER REFRESH              |
        |                              |       = 180sec               |
        |                              |  ANSWER RETRY                |
        |                              |       = 30sec                |
        |                              |  ANSWER EXPIRE               |
        |                              |       = 360sec               |
        |                              |  ANSWER MINIMUM              |
        |                              |       = 30sec                |
        |                              |  AUTHORITY Name              |
        |                              |       = sec.example.com      |
        |                              |  AUTHORITY Type              |
        |                              |       = NS (0x0002)          |
        |                              |  AUTHORITY Name Server       |
        |                              |       = NS7.sec.example.com  |
        |                              |  ADDITIONAL Name             |
        |                              |       = NS7.sec.example.com  |
        |                              |  AUTHORITY Type              |
        |                              |       = A (0x0001)           |
        |                              |  AUTHORITY Address           |
        |                              |       = 192.168.0.31         |
        |                              |                              |
        |                              |----------------------------->|
        |                              | 3. Standard query (using TCP)|
        |                              |  QNAME = sec.example.com     |
        |                              |  QTYPE = AXFR (0x00FC)       |
        |                              |                              |
        |                              |<-----------------------------|
        |                              | 4. Standard query response   |
        |                              |    (using TCP)               |
        |                              |  QNAME = sec.example.com     |
        |                              |  QTYPE = AXFR (0x00FC)       |
        |                              |  ANSWER Name                 |
        |                              |       = sec.example.com      |
        |                              |  ANSWER Type                 |
        |                              |       = SOA (0x0006)         |
        |                              |  ANSWER TTL                  |
        |                              |       = 30                   |
        |                              |  ANSWER MNAME                |
        |                              |       = sec.example.com      |
        |                              |  ANSWER Rname                |
        |                              |       = root.sec.example.com |
        |                              |  ANSWER SERIAL               |
        |                              |       = 1                    |
        |                              |  ANSWER REFRESH              |
        |                              |       = 180sec               |
        |                              |  ANSWER RETRY                |
        |                              |       = 30sec                |
        |                              |  ANSWER EXPIRE               |
        |                              |       = 360sec               |
        |                              |  ANSWER MINIMUM              |
        |                              |       = 30sec                |
        |                              |                              |
        |                              |  ANSWER Name                 |
        |                              |       = sec.example.com      |
        |                              |  ANSWER Type                 |
        |                              |       = NS (0x0002)          |
        |                              |  ANSWER Name                 |
        |                              |       = NS7.sec.example.com  |
        |                              |                              |
        |                              |  ANSWER Name                 |
        |                              |       = sec.example.com      |
        |                              |  ANSWER Type                 |
        |                              |       = MX (0x000F)          |
        |                              |  ANSWER Name                 |
        |                              |       = NS7.sec.example.com  |
        |                              |                              |
        |                              |  ANSWER Name                 |
        |                              |       = CL1.sec.example.com  |
        |                              |  ANSWER Type                 |
        |                              |       = A (0x0001)           |
        |                              |  ANSWER Address              |
        |                              |       = 192.168.0.21         |
        |                              |                              |
        |                              |  ANSWER Name                 |
        |                              |       = CL1.sec.example.com  |
        |                              |  ANSWER Type                 |
        |                              |       = AAAA (0x001C)        |
        |                              |  ANSWER Address              |
        |                              |      = 3ffe:501:ffff:100::20 |
        |                              |                              |
        |                              |  ANSWER Name                 |
        |                              |       = NS7.sec.example.com  |
        |                              |  ANSWER Type                 |
        |                              |       = A (0x0001)           |
        |                              |  ANSWER Address              |
        |                              |       = 192.168.0.31         |
        |                              |                              |
        |                              |  ANSWER Name                 |
        |                              |       = NS7.sec.example.com  |
        |                              |  ANSWER Type                 |
        |                              |       = AAAA (0x001C)        |
        |                              |  ANSWER Address              |
        |                              |      = 3ffe:501:ffff:100::31 |
        |                              |                              |
        |                              |  ANSWER Name                 |
        |                              |       = sec.example.com      |
        |                              |  ANSWER Type                 |
        |                              |       = SOA (0x0006)         |
        |                              |  ANSWER TTL                  |
        |                              |       = 30                   |
        |                              |  ANSWER MNAME                |
        |                              |       = sec.example.com      |
        |                              |  ANSWER Rname                |
        |                              |       = root.sec.example.com |
        |                              |  ANSWER SERIAL               |
        |                              |       = 1                    |
        |                              |  ANSWER REFRESH              |
        |                              |       = 180sec               |
        |                              |  ANSWER RETRY                |
        |                              |       = 30sec                |
        |                              |  ANSWER EXPIRE               |
        |                              |       = 360sec               |
        |                              |  ANSWER MINIMUM              |
        |                              |       = 30sec                |
        |                              |                              |
        |----------------------------->|                              |
        | 5. Send standard query       |                              |
        |  RD = 0                      |                              |
        |  QNAME = CL1.sec.example.com |                              |
        |  QTYPE = A                   |                              |
        |                              |                              |
        |<-----------------------------|                              |
        | 6. Standard query response   |                              |
        |  AA = 0                      |                              |
        |  RD = 0                      |                              |
        |  QNAME = CL1.sec.example.com |                              |
        |  QTYPE = A                   |                              |
        |  ANSWER Name                 |                              |
        |        = CL1.sec.example.com |                              |
        |  ANSWER Type                 |                              |
        |        = A (0x0001)          |                              |
        |  ANSWER Address              |                              |
        |        = 192.168.0.21        |                              |
        |                              |                              |
        |  AUTHORITY Name              |                              |
        |        = sec.example.com     |                              |
        |  AUTHORITY Type              |                              |
        |        = NS (0x0002)         |                              |
        |  AUTHORITY Name Server       |                              |
        |        = NS7.sec.example.com |                              |
        |                              |                              |
        |  ADDITIONAL Name             |                              |
        |        = NS7.sec.example.com |                              |
        |  ADDITIONAL Type             |                              |
        |        = A (0x0001)          |                              |
        |  ADDITIONAL Address          |                              |
        |        = 192.168.0.31        |                              |
        |                              |                              |
        |  ADDITIONAL Name             |                              |
        |        = NS7.sec.example.com |                              |
        |  ADDITIONAL Type             |                              |
        |        = AAAA (0x001C)       |                              |
        |  ADDITIONAL Address          |                              |
        |      = 3ffe:501:ffff:100::31 |                              |
        |                              |                              |
        |                              |                              |
        |                              | (REFRESH (3 minutes) interval|
        |                              | expired after sending zone   |
        |                              | information)                 |
        |                              |                              |
        |                              |----------------------------->|
        |                              | 7. Standard query            |
        |                              |   same as above No.1         |
        |                              |                              |
        |                              |            x <---------------|
        |                              | 8. Doesn't send standard     |
        |                              |   query response             |
        |                              |                              |
        |                              | (RETRY (30 sec) interval     |
        |                              | expired after sending        |
        |                              | previous query)              |
        |                              |                              |
        |                              |----------------------------->|
        |                              | 9. Standard query            |
        |                              |  same as above No.1          |
        |                              |  Repeat every RETRY seconds  | 
        |                              |                              |
        |                              | (EXPIRE (360 sec) interval   |
        |                              | passed after sending zone    |
        |                              | information)                 |
        |                              |                              |
        |                              |                              |
        |----------------------------->|                              |
        | 10. Send standard query      |                              |
        |  same as above No.5          |                              |
        |                              |                              |
        |<-----------------------------|                              |
        | 11. Standard query response  |                              |
        |  AA = 0                      |                              |
        |  RD = 0                      |                              |
        |  RCODE = 2 (Server failure)  |                              |
        |  QNAME = CL1.sec.example.com |                              |
        |  QTYPE = A                   |                              |
        |                              |                              |
        v                              v                              v
        1. DNS Server1 (NUT) transmits standard query QNAME = sec.example.com, 
           Type = SOA to DNS Server7 (TN). (Judgment *1)
        2. DNS Server7 (TN) send standard query response with SOA RRs to DNS Server1 (NUT).
        3. DNS Server1 (NUT) transmits standard query with QNAME = sec.example.com, 
           Type = AXFR using TCP to DNS Server7 (TN). (Judgment *3)
        4. DNS Server7 (TN) send standard query response including all RRs about sec.example.com zone 
           using TCP to DNS Server1 (NUT).
        5. DNS Client1 (TN) send standard query QNAME = CL1.sec.example.com to DNS Server1 (NUT).
        6. DNS Server1 (NUT) transmits standard query response ANSWER Address = 192.168.0.21 
           to DNS Client1 (TN). (Judgment *6)
        7. After REFRESH time expired, DNS Server1 (NUT) transmits standard query QNAME = sec.example.com,
           Type = SOA to DNS Server7 (TN). (Judgment *7)
        8. DNS Server7 (TN) doesn't send standard query response to DNS Server1 (NUT).
        9. Then DNS Server1 (NUT) transmits standard query QNAME = sec.example.com to DNS Server7 (TN) 
           every RETRY seconds. (Judgment *9)
        10. After EXPIRE time passed, DNS Client1 (TN) send standard query QNAME = CL1.sec.example.com 
            to DNS Server1 (NUT).
        11. DNS Server1 (NUT) transmits error response RCODE = 2 (Server failure) 
            to DNS Client1 (TN). (Judgment *11)


JUDGMENT

        1. Received standard query with Type=SOA. 
        3. Received standard query with Type=AXFR using TCP
        6. Received standard query response including Answer address 192.168.0.21. 
        7. Received standard query with Type=SOA after REFRESH time expired.
        9. Received standard query with Type=SOA every RETRY seconds.
        11. Received error response including RCODE=2.


TERMINATION

        None


REFERENCE

        RFC1034 DOMAIN NAMES - CONCEPTS AND FACILITIES
        4. NAME SERVERS
        4.3.5. Zone maintenance and transfers
        RFC1035 Domain Implementation and Specification
        6.3. Zone refresh and reload processing