SV_RFC3596_2_5_PTR_type - PTR type
Verify that a NUT transmits correct message including PTR type in the QTYPE field.
1 1 1 1 1 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | / QNAME / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QTYPE | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QCLASS | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
Caching Server
SV_RFC3596_2_5_PTR_type.seq [-tooloption ...]: KOI tool option See also DNSConfig.pm
1.0.5.0.e.f.f.3. f.f.f.f.1.0.5.0.e.f.f.3. IP6.ARPA domain IP6.ARPA domain IP6.ARPA domain AP Server1 (TN) DNS Server2 DNS Server3 DNS Server4 |www.example.org |A.ROOT.NET |NS3.example.org |NS4.example.org |3ffe:501:ffff:101::10 |3ffe:501:ffff:101::20 |3ffe:501:ffff:101::30 |3ffe:501:ffff:101::40 |192.168.1.10 |192.168.1.20 |192.168.1.30 |192.168.1.40 | | | | Net-y --+--------+---------------+------------+-----------+------------------------+-- 3ffe:501:ffff:101::/64 | | 192.168.1/24 | | | |1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA domain Router (TN) DNS Server5 |3ffe:501:ffff:100::1 NS5.example.org |192.168.0.1 3ffe:501:ffff:101::50 | 192.168.1.50 | | Net-z --+--------+-----------------+-------- 3ffe:501:ffff:100::/64 | | 192.168.0/24 | | DNS Server1 (NUT) DNS Client1 (TN) 3ffe:501:ffff:100::XXXX 3ffe:501:ffff:100::20 192.168.0.10 192.168.0.20
XXXX: EUI64
. 3600000 IN NS A.ROOT.NET. A.ROOT.NET. 3600000 A 192.168.1.20
. 3600000 IN NS A.ROOT.NET. A.ROOT.NET. 3600000 AAAA 3ffe:501:ffff:101::20
$TTL 86400 ; TTL of 1 day @ IN SOA NS1.example.com. root.example.com. ( 2005081600 ; serial 3600 ; refresh every 1 hr 900 ; retry every 15 min 604800 ; expire after a week 3600 ; Minimum TTL of a 1 hr ) ; IN NS NS1.example.com. NS1 IN A 192.168.0.10 ;
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)
|
||
IP Header | Source Address | CL1_NETZ |
Destination Address | NUT_NETZ | |
UDP Header | Src Port | 2000 |
Dst Port | 53 | |
DNS Header | ID | 0x1000 |
QR | 0 | |
OPCODE | 0 | |
AA | 0 | |
TC | 0 | |
RD | 0 | |
RA | 0 | |
Z | 0 | |
RCODE | 0 | |
QDCOUNT | 1 | |
ANCOUNT | 0 | |
NSCOUNT | 0 | |
ARCOUNT | 0 | |
DNS Question section | 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 (0x000C) | |
QCLASS | IN (0x0001) |
|
||
IP Header | Source Address | NUT_NETZ |
Destination Address | SV2_NETY | |
UDP Header | Src Port | ANY |
Dst Port | 53 | |
DNS Header | ID | ANY |
QR | 0 | |
OPCODE | 0 | |
AA | 0 | |
TC | 0 | |
RD | 0 | |
RA | 0 | |
Z | Any | |
RCODE | 0 | |
QDCOUNT | 1 | |
ANCOUNT | 0 | |
NSCOUNT | 0 | |
ARCOUNT | 0 | |
DNS Question section | 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 (0x000C) | |
QCLASS | IN (0x0001) |
|
||
IP Header | Source Address | SV2_NETY |
Destination Address | NUT_NETZ | |
UDP Header | Src Port | 53 |
Dst Port | Value that NUT uses | |
DNS Header | ID | Value that NUT uses |
QR | 1 | |
OPCODE | 0 | |
AA | 0 | |
TC | 0 | |
RD | 0 | |
RA | 0 | |
Z | 0 | |
RCODE | 0 | |
QDCOUNT | 1 | |
ANCOUNT | 0 | |
NSCOUNT | 1 | |
ARCOUNT | 1 | |
DNS Question section | 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 (0x000C) | |
QCLASS | IN (0x0001) | |
DNS Authority section | NAME |
1.0.5.0.e.f.f.3.IP6.ARPA (Pointer 0xC03C) |
TYPE | NS (0x0002) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 16 | |
NSDNAME | NS3.example.org | |
DNS Additional section | NAME | NS3.example.org (Pointer 0xC066) |
TYPE | A (0x0001) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 4 | |
ADDRESS | 192.168.1.30 |
|
||
IP Header | Source Address | NUT_NETZ |
Destination Address | SV3_NETY | |
UDP Header | Src Port | ANY |
Dst Port | 53 | |
DNS Header | ID | ANY |
QR | 0 | |
OPCODE | 0 | |
AA | 0 | |
TC | 0 | |
RD | 0 | |
RA | 0 | |
Z | Any | |
RCODE | 0 | |
QDCOUNT | 1 | |
ANCOUNT | 0 | |
NSCOUNT | 0 | |
ARCOUNT | 0 | |
DNS Question section | 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 (0x000C) | |
QCLASS | IN (0x0001) |
|
||
IP Header | Source Address | SV3_NETY |
Destination Address | NUT_NETZ | |
UDP Header | Src Port | 53 |
Dst Port | Value that NUT uses | |
DNS Header | ID | Value that NUT uses |
QR | 1 | |
OPCODE | 0 | |
AA | 0 | |
TC | 0 | |
RD | 0 | |
RA | 0 | |
Z | 0 | |
RCODE | 0 | |
QDCOUNT | 1 | |
ANCOUNT | 0 | |
NSCOUNT | 1 | |
ARCOUNT | 1 | |
DNS Question section | 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 (0x000C) | |
QCLASS | IN (0x0001) | |
DNS Authority section | NAME |
f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA (Pointer 0xC034) |
TYPE | NS (0x0002) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 16 | |
NSDNAME | NS4.example.org | |
DNS Additional section | NAME | NS4.example.org (Pointer 0xC066) |
TYPE | A (0x0001) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 4 | |
ADDRESS | 192.168.1.40 |
|
||
IP Header | Source Address | NUT_NETZ |
Destination Address | SV4_NETY | |
UDP Header | Src Port | ANY |
Dst Port | 53 | |
DNS Header | ID | ANY |
QR | 0 | |
OPCODE | 0 | |
AA | 0 | |
TC | 0 | |
RD | 0 | |
RA | 0 | |
Z | Any | |
RCODE | 0 | |
QDCOUNT | 1 | |
ANCOUNT | 0 | |
NSCOUNT | 0 | |
ARCOUNT | 0 | |
DNS Question section | 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 (0x000C) | |
QCLASS | IN (0x0001) |
|
||
IP Header | Source Address | SV4_NETY |
Destination Address | NUT_NETZ | |
UDP Header | Src Port | 53 |
Dst Port | Value that NUT uses | |
DNS Header | ID | Value that NUT uses |
QR | 1 | |
OPCODE | 0 | |
AA | 0 | |
TC | 0 | |
RD | 0 | |
RA | 0 | |
Z | 0 | |
RCODE | 0 | |
QDCOUNT | 1 | |
ANCOUNT | 0 | |
NSCOUNT | 1 | |
ARCOUNT | 1 | |
DNS Question section | 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 (0x000C) | |
QCLASS | IN (0x0001) | |
DNS Authority section | NAME |
1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA (Pointer 0xC02C) |
TYPE | NS (0x0002) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 16 | |
NSDNAME | NS5.example.org | |
DNS Additional section | NAME | NS5.example.org (Pointer 0xC066) |
TYPE | A (0x0001) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 4 | |
ADDRESS | 192.168.1.50 |
|
||
IP Header | Source Address | NUT_NETZ |
Destination Address | SV5_NETY | |
UDP Header | Src Port | ANY |
Dst Port | 53 | |
DNS Header | ID | ANY |
QR | 0 | |
OPCODE | 0 | |
AA | 0 | |
TC | 0 | |
RD | 0 | |
RA | 0 | |
Z | Any | |
RCODE | 0 | |
QDCOUNT | 1 | |
ANCOUNT | 0 | |
NSCOUNT | 0 | |
ARCOUNT | 0 | |
DNS Question section | 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 (0x000C) | |
QCLASS | IN (0x0001) |
|
||
IP Header | Source Address | SV5_NETY |
Destination Address | NUT_NETZ | |
UDP Header | Src Port | 53 |
Dst Port | Value that NUT uses | |
DNS Header | ID | Value that NUT uses |
QR | 1 | |
OPCODE | 0 | |
AA | 1 | |
TC | 0 | |
RD | 0 | |
RA | 1 | |
Z | 0 | |
RCODE | 0 | |
QDCOUNT | 1 | |
ANCOUNT | 1 | |
NSCOUNT | 1 | |
ARCOUNT | 1 | |
DNS Question section | 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 (0x000C) | |
QCLASS | IN (0x0001) | |
DNS Answer section | 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 (Pointer 0xC00C) |
TYPE | PTR (0x000C) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 15 | |
NSDNAME | A.example.org | |
DNS Authority section | NAME |
1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA (Pointer 0xC02C) |
TYPE | NS (0x0002) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 16 | |
NSDNAME | NS5.example.org | |
DNS Additional section | NAME | NS5.example.org (Pointer 0xC081) |
TYPE | A (0x0001) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 4 | |
ADDRESS | 192.168.1.50 |
|
||
IP Header | Source Address | NUT_NETZ |
Destination Address | CL1_NETZ | |
UDP Header | Src Port | 53 |
Dst Port | 2000 | |
DNS Header | ID | 0x1000 |
QR | 1 | |
OPCODE | 0 | |
AA | 0 | |
TC | 0 | |
RD | 0 | |
RA | 0 | |
Z | Any | |
RCODE | 0 | |
QDCOUNT | 1 | |
ANCOUNT | 1 | |
NSCOUNT | 1 | |
ARCOUNT | 1 | |
DNS Question section | 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 (0x000C) | |
QCLASS | IN (0x0001) | |
DNS Answer section | 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 (Pointer 0xC00C) |
TYPE | PTR (0x000C) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 15 | |
NSDNAME | A.example.org | |
DNS Authority section | NAME |
1.0.1.0.f.f.f.f.1.0.5.0.e.f.f.3.IP6.ARPA (Pointer 0xC02C) |
TYPE | NS (0x0002) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 16 | |
NSDNAME | NS5.example.org | |
DNS Additional section | NAME | NS5.example.org (Pointer 0xC066) |
TYPE | A (0x0001) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 4 | |
ADDRESS | 192.168.1.50 |
NUT_NETZ | DNS Server1's (NUT) Net-z address |
CL1_NETZ | DNS Client1's (TN) Net-z address |
SV2_NETY | DNS Server2's (TN) Net-y address |
SV3_NETY | DNS Server3's (TN) Net-y address |
SV4_NETY | DNS Server4's (TN) Net-y address |
SV5_NETY | DNS Server5's (TN) Net-y address |
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.
None
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