SV_RFC1034_4_3_1_RD - Recursion desired(RD) in standard query
Verify that a NUT transmits correct standard query message for Recursion desired(RD)
Server (forwarder)
SV_RFC1034_4_3_1_RD.seq [-tooloption ...]: KOI tool option See also DNSConfig.pm
. domain org domain example.org domain
AP Server1 (TN) DNS Server2 DNS Server3 DNS Server4
|A.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
|
|
Router (TN)
|3ffe:501:ffff:100::1
|192.168.0.1
|
|
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
This test sequence is following.
Client1 (TN) DNS Server1 (NUT) DNS Server2 (TN) DNS Server3 (TN) DNS Server4 (TN)
| | | | |
|----------------------------->| | | |
| 1. Send standard query | | | |
| QNAME=A.example.org | | | |
| QTYPE=A | | | |
| | | | |
| | | | |
| |------------------------------------------------------------------------------------------------------>|
| | | | 2. Send standard query |
| | | | RD=1 |
| | | | QNAME=A.example.org |
| | | | QTYPE=A |
| | | | |
| |<------------------------------------------------------------------------------------------------------|
| | | | 3. Send standard response |
| | | | QNAME=A.example.org |
| | | | QTYPE=A |
| | | | ANSWER Name=A.example.org |
| | | | ANSWER Address=192.168.1.10 |
| | | | AUTHORITY Name=example.org |
| | | | AUTHORITY Name Server |
| | | | =NS4.example.org |
| | | | ADDITIONAL Name=NS4.example.org |
| | | | ADDITIONAL Address=192.168.1.40 |
| | | | |
|<-----------------------------| | | |
| 4. Standard query response | | | |
| QNAME=A.example.org | | | |
| QTYPE=A | | | |
| ANSWER Name=A.example.org | | | |
| ANSWER Address=192.168.1.10 | | | |
| AUTHORITY Name=example.org | | | |
| AUTHORITY Name Server | | | |
| =NS4.example.org | | | |
v v v v v
1. TN send standard query QNAME=A.example.org, QTYPE=A to NUT.
2. NUT transmits standard query QNAME=A.example.org, QTYPE=A to DNS Server4 (TN: NS4.example.org) (Judgment *2)
3. TN send query response to ANSWER Name=A.example.org, ANSWER Address=192.168.1.10 to NUT.
4. NUT transmits query response to DNS Client1 (TN) (Judgment *4)
|
|
||
| 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 | 1 | |
| RA | 0 | |
| Z | 0 | |
| RCODE | 0 | |
| QDCOUNT | 1 | |
| ANCOUNT | 0 | |
| NSCOUNT | 0 | |
| ARCOUNT | 0 | |
| DNS Question section | QNAME | A.example.org |
| QTYPE | A (0x0001) | |
| QCLASS | IN (0x0001) | |
|
|
||
| IP Header | Source Address | NUT_NETZ |
| Destination Address | SV4_NETY | |
| UDP Header | Src Port | ANY |
| Dst Port | 53 | |
| DNS Header | ID | ANY |
| QR | 1 | |
| OPCODE | 0 | |
| AA | any | |
| TC | 0 | |
| RD | 1 | |
| RA | any | |
| Z | any | |
| RCODE | any | |
| QDCOUNT | 1 | |
| ANCOUNT | 0 | |
| NSCOUNT | 0 | |
| ARCOUNT | any | |
| DNS Question section | QNAME | A.example.org |
| QTYPE | A (0x0001) | |
| QCLASS | IN (0x0001) | |
|
|
||
| IP Header | Source Address | SV4_NETY |
| Destination Address | NUT_NETZ | |
| UDP Header | Src Port | Value that NUT uses |
| Dst Port | 53 | |
| DNS Header | ID | Value that NUT uses |
| QR | 1 | |
| OPCODE | 0 | |
| AA | 1 | |
| TC | 0 | |
| RD | 1 | |
| RA | 1 | |
| Z | 0 | |
| RCODE | 0 | |
| QDCOUNT | 1 | |
| ANCOUNT | 1 | |
| NSCOUNT | 1 | |
| ARCOUNT | 1 | |
| DNS Question section | QNAME | A.example.org |
| QTYPE | A (0x0001) | |
| QCLASS | IN (0x0001) | |
| DNS Answer section | NAME | A.example.org (Pointer 0xC00C) |
| TYPE | A (0x0001) | |
| CLASS | IN (0x0001) | |
| TTL | 1 day (86400) | |
| RDLENGTH | 4 | |
| ADDRESS | 192.168.1.10 | |
| DNS Authority section | NAME | example.org (Pointer 0xC00E) |
| TYPE | NS (0x0002) | |
| CLASS | IN (0x0001) | |
| TTL | 1 day (86400) | |
| RDLENGTH | 6 | |
| NSDNAME | NS4.example.org (NS4 + Pointer 0xC00E) | |
| DNS Additional section | NAME | NS4.example.org (Pointer 0xC03B) |
| 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 | CL1_NETZ | |
| UDP Header | Src Port | 53 |
| Dst Port | 2000 | |
| DNS Header | ID | 0x1000 |
| QR | 1 | |
| OPCODE | 0 | |
| AA | 0 | |
| TC | 0 | |
| RD | 1 | |
| RA | 1 | |
| Z | 0 | |
| RCODE | 0 | |
| QDCOUNT | 1 | |
| ANCOUNT | 1 | |
| NSCOUNT | 1 | |
| ARCOUNT | 1 | |
| DNS Question section | QNAME | A.example.org |
| QTYPE | A (0x0001) | |
| QCLASS | IN (0x0001) | |
| DNS Answer section | NAME | A.example.org (Pointer 0xC00C) |
| TYPE | A (0x0001) | |
| CLASS | IN (0x0001) | |
| TTL | 1 day (86400) | |
| RDLENGTH | 4 | |
| ADDRESS | 192.168.1.10 | |
| DNS Authority section | NAME | example.org (Pointer 0xC00E) |
| TYPE | NS (0x0002) | |
| CLASS | IN (0x0001) | |
| TTL | 1 day (86400) | |
| RDLENGTH | 6 | |
| NSDNAME | NS4.example.org (NS4 + Pointer 0xC00E) | |
| DNS Additional section | NAME | NS4.example.org (Pointer 0xC03B) |
| TYPE |
A (0x0001) | |
| CLASS | IN (0x0001) | |
| TTL | 1 day (86400) | |
| RDLENGTH | 4 | |
| ADDRESS | 192.168.1.40 | |
| NUT_NETZ | DNS Server1's (NUT) Net-z address |
| CL1_NETZ | DNS Client1's (TN) Net-z address |
| SV4_NETY | DNS Server4's (TN) Net-y address |
2. Standard query including QNAME=A.example.org, QTYPE=A (recursion desired) must be based on above Verification Points.
4. Received standard query response including correct address in the ADDRESS field.
None
RFC1034 DOMAIN NAMES - CONCEPTS AND FACILITIES
4.3.1. Queries and responses
RFC1035 DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION
4.1.1. Header section format