SV_RFC2181_5_5_once_RRSet - A Resource Record Set should only be included once in any DNS reply.
Verify that a NUT includes only one RRset to response.
- A Resource Record Set should only be included once in any DNS reply.
It may occur in any of the Answer, Authority, or Additional
Information sections, as required. However it should not be repeated
in the same, or any other, section, except where explicitly required
by a specification.
Authoritative Server
SV_RFC2181_5_5_once_RRSet.seq [-tooloption ...]: KOI tool option
See also DNSConfig.pm
This test sequence is following.
DNS Client1 (TN) DNS Server1 (NUT)
| |
|------------------------------------->|
| 1. Send standard query |
| QNAME=example.com |
| QTYPE=NS |
| |
|<-------------------------------------|
| 2. Standard query response |
| QNAME Name=example.com |
| OTYPE=NS |
| ANSWER Name=example.com |
| ANSWER Nsdname=NS1.example.com |
| ANSWER Name=example.com |
| ANSWER Nsdname=NS2.example.com |
| ADDITIONAL Name=NS1.example.com|
| ADDITIONAL ADDRESS=192.168.0.10|
| ADDITIONAL Name=NS2.example.com|
| ADDITIONAL ADDRESS=192.168.0.11|
| |
v v
1. TN send standard query QNAME=example.com, QTYPE=NS to NUT.
2. NUT reply query response w/ NSDNAME=NS1.example.com, NS2.example.com to TN (Judgment *2)
- Packet Description
- 1st packet.
|
Standard query from DNS Client1 (TN) to Server1 (NUT)
|
| 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 |
example.com |
| QTYPE |
NS (0x0002) |
| QCLASS |
IN (0x0001) |
- 2nd packet.
|
Standard query response from DNS Server1 (NUT) to Client1 (TN)
|
| 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 |
1 |
| TC |
0 |
| RD |
1 |
| RA |
any |
| Z |
0 |
| RCODE |
0 |
| QDCOUNT |
1 |
| ANCOUNT |
2 |
| NSCOUNT |
0 |
| ARCOUNT |
2 |
| DNS Question section |
QNAME |
example.com |
| QTYPE |
NS (0x0002) |
| QCLASS |
IN (0x0001) |
| DNS Answer section |
NAME |
example.com (Pointer 0xC00C) |
| TYPE |
NS (0x0002) |
| CLASS |
IN (0x0001) |
| TTL |
1 day (86400) |
| RDLENGTH |
6 |
| NSDNAME |
NS1.example.com (NS1 + Pointer 0xC00C) |
| DNS Answer section |
NAME |
example.com (Pointer 0xC00C) |
| TYPE |
NS (0x0002) |
| CLASS |
IN (0x0001) |
| TTL |
1 day (86400) |
| RDLENGTH |
6 |
| NSDNAME |
NS2.example.com (NS2 + Pointer 0xC00C) |
| DNS Additional section |
NAME |
NS1.example.com (Pointer 0xC029) |
TYPE
|
A (0x0001) |
| CLASS |
IN (0x0001) |
| TTL |
1 day (86400) |
| RDLENGTH |
4 |
| ADDRESS |
192.168.0.10 |
| DNS Additional section |
NAME |
NS1.example.com (Pointer 0xC035) |
TYPE
|
A (0x0001) |
| CLASS |
IN (0x0001) |
| TTL |
1 day (86400) |
| RDLENGTH |
4 |
| ADDRESS |
192.168.0.11 |
- Exp.
| NUT_NETZ |
DNS Server1's (NUT) Net-z address |
| CL1_NETZ |
DNS Client1's (TN) Net-z address |
2. Received standard query response that include only one RRset in Answer section.
*Authority section must not include RRset same as Answer section's RRSet.
*Additional section is optional.
None
RFC2181 Clarifications to the DNS Specification
5.5. Sending RRSets (reprise)