NAME

        SV_RFC1034_4_3_5_ZoneTransfer - Zone maintenance and transfers


VERIFICATION POINTS

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


TARGET

        Server (Secondary)


SYNOPSIS

	SV_RFC1034_4_3_5_ZoneTransfer.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                  |
        |                              |       = 300                  |
        |                              |  ANSWER MNAME                |
        |                              |       = NS7.sec.example.com  |
        |                              |  ANSWER Rname                |
        |                              |       = root.sec.example.com |
        |                              |  ANSWER SERIAL               |
        |                              |       = 1                    |
        |                              |  ANSWER REFRESH              |
        |                              |       = 300sec               |
        |                              |  ANSWER RETRY                |
        |                              |       = 30sec                |
        |                              |  ANSWER EXPIRE               |
        |                              |       = 600sec               |
        |                              |  ANSWER MINIMUM              |
        |                              |       = 300sec               |
        |                              |  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         |
        |                              |                              |
        |                              |----------------------------->|
        |                              | 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                  |
        |                              |       = 300                  |
        |                              |  ANSWER MNAME                |
        |                              |       = NS7.sec.example.com  |
        |                              |  ANSWER Rname                |
        |                              |       = root.sec.example.com |
        |                              |  ANSWER SERIAL               |
        |                              |       = 1                    |
        |                              |  ANSWER REFRESH              |
        |                              |       = 300sec               |
        |                              |  ANSWER RETRY                |
        |                              |       = 30sec                |
        |                              |  ANSWER EXPIRE               |
        |                              |       = 600sec               |
        |                              |  ANSWER MINIMUM              |
        |                              |       = 300sec               |
        |                              |                              |
        |                              |  ANSWER Name                 |
        |                              |       = sec.example.com      |
        |                              |  ANSWER Type                 |
        |                              |       = NS (0x0002)          |
        |                              |  ANSWER Name                 |
        |                              |       = NS7.sec.example.com  |
        |                              |                              |
        |                              |  ANSWER Name                 |
        |                              |       = CL2.sec.example.com  |
        |                              |  ANSWER Type                 |
        |                              |       = A (0x0001)           |
        |                              |  ANSWER Address              |
        |                              |       = 192.168.0.21         |
        |                              |                              |
        |                              |  ANSWER Name                 |
        |                              |       = CL2.sec.example.com  |
        |                              |  ANSWER Type                 |
        |                              |       = AAAA (0x001C)        |
        |                              |  ANSWER Address              |
        |                              |      = 3ffe:501:ffff:100::21 |
        |                              |                              |
        |                              |  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                  |
        |                              |       = 300                  |
        |                              |  ANSWER MNAME                |
        |                              |       = NS7.sec.example.com  |
        |                              |  ANSWER Rname                |
        |                              |       = root.sec.example.com |
        |                              |  ANSWER SERIAL               |
        |                              |       = 1                    |
        |                              |  ANSWER REFRESH              |
        |                              |       = 300sec               |
        |                              |  ANSWER RETRY                |
        |                              |       = 30sec                |
        |                              |  ANSWER EXPIRE               |
        |                              |       = 600sec               |
        |                              |  ANSWER MINIMUM              |
        |                              |       = 300sec               |
        |                              |                              |
        |----------------------------->|                              |
        | 5. Send standard query       |                              |
        |  RD = 0                      |                              |
        |  QNAME = CL2.sec.example.com |                              |
        |  QTYPE = A                   |                              |
        |                              |                              |
        |<-----------------------------|                              |
        | 6. Standard query response   |                              |
        |  AA = 0                      |                              |
        |  RD = 0                      |                              |
        |  QNAME = CL2.sec.example.com |                              |
        |  QTYPE = A                   |                              |
        |  ANSWER Name                 |                              |
        |        = CL2.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 (5 minutes) interval|
        |                              | expired after sent zone      |
        |                              | information)                 |
        |                              |                              |
        |                              |----------------------------->|
        |                              | 7. Standard query            |
        |                              |   same as above No.1         |
        |                              |                              |
        |                              |<-----------------------------|
        |                              | 8. Standard query response   |
        |                              |   same as above No.2         |
        |                              |                              |
        |                              |-------------> X              |
        |                              | 9. Standard query            |
        |                              |  QNAME = sec.example.com     |
        |                              |  QTYPE = AXFR (0x00FC)       |
        |                              |                              |
        |                              | (After REFRESH (5 minutes)   |
        |                              |  expired)                    |
        |                              |                              |
        |                              |----------------------------->|
        |                              | 10. Standard query           |
        |                              |   same as above No.1         |
        |                              |                              |
        |                              |<-----------------------------|
        |                              | 11. Standard query response  |
        |                              |   same as above No.2         |
        |                              |   except serial number.      |
        |                              |  ANSWER SERIAL               |
        |                              |       = 2                    |
        |                              |                              |
        |                              |----------------------------->|
        |                              | 12. Standard query           |
        |                              |   same as above No.3         |
        |                              |                              |
        |                              |<-----------------------------|
        |                              | 13. Standard query response  |
        |                              |  same as No.4 except         |
        |                              |  serial number and CL2's     |
        |                              |  type A address              |
        |                              |                              |
        |                              |  ANSWER SERIAL               |
        |                              |       = 2                    |
        |                              |                              |
        |                              |         and                  |
        |                              |                              |
        |                              |  ANSWER Name                 |
        |                              |       = CL2.sec.example.com  |
        |                              |  ANSWER Type                 |
        |                              |       = A (0x0001)           |
        |                              |  ANSWER Address              |
        |                              |       = 192.168.0.22         |
        |                              |                              |
        |----------------------------->|                              |
        | 14. Send standard query      |                              |
        |  same as above No.5          |                              |
        |                              |                              |
        |<-----------------------------|                              |
        | 15. Standard query response  |                              |
        |  AA = 0                      |                              |
        |  RD = 0                      |                              |
        |  QNAME = CL2.sec.example.com |                              |
        |  QTYPE = A                   |                              |
        |  ANSWER Name                 |                              |
        |        = CL2.sec.example.com |                              |
        |  ANSWER Type                 |                              |
        |        = A (0x0001)          |                              |
        |  ANSWER Address              |                              |
        |        = 192.168.0.22        |                              |
        |                              |                              |
        |  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 (5 minutes) interval|
        |                              | expired after sent zone      |
        |                              | information)                 |
        |                              |                              |
        |                              |----------------------------->|
        |                              | 16. Standard query           |
        |                              |   same as above No.1         |
        |                              |                              |
        v                              v                              v
        This test sequence is following.
        1. DNS Server1 (NUT) transmits standard query QNAME = sec.example.com, 
           Type = SOA to DNS Server7 (TN). (Judgment *1)
        2. DNS Server7 (TN) sends 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) sends standard query response including all RRs about sec.example.com zone 
           using TCP to DNS Server1 (NUT).
        5. DNS Client1 (TN) sends standard query QNAME = CL2.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 as same as No.1. (Judgment *7)
        8. DNS Server7 (TN) sends standard query response as same as No.2 to DNS Server1 (NUT).
        9. DNS Server1 (NUT) doesn't sends standard query QNAME = sec.example.com, 
           Type = AXFR to DNS Server7 (TN). (Judgment *9)
        10. After refresh time expired, DNS Server1 (NUT) transmits standard query as same as No.1. (Judgment *10)
        11. DNS Server7 (TN) sends standard query response incrementing SOA's serial number to DNS Server1 (NUT).
        12. DNS Server1 (NUT) transmits standard query with QNAME = sec.example.com, 
            Type = AXFR using TCP to DNS Server7 (TN). (Judgment *12)
        13. DNS Server7 (TN) sends standard query response including all RRs about sec.example.com zone 
            differencing SOA's serial number and CL2.sec.example.com address using TCP to DNS Server1 (NUT).
        14. DNS Client1 (TN) sends standard query as same as No.5.
        15. DNS Server1 (NUT) transmits standard query response ANSWER Address = 192.168.0.22 
            to DNS Client1 (TN). (Judgment *15)
        16. After refresh time expired, DNS Server1 (NUT) transmits standard as same as No.1. (Judgment *16)


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. Doesn't receive standard query with Type=SOA.
        10. Received standard query with Type=SOA after REFRESH time expired.
        12. Received standard query with Type=AXFR using TCP.
        15. Received standard query response including Answer address 192.168.0.22. 
        16. Received standard query with Type=SOA after REFRESH time expired.


TERMINATION

        None


REFERENCE

        RFC1034 DOMAIN NAMES - CONCEPTS AND FACILITIES
        4. NAME SERVERS
        4.3.5. Zone maintenance and transfers