CL_RFC2181_5_2_diff_nonauth - Differing TTLs from non-authoritative source
Verify that a NUT treats as an error, when receive response containing RRs
from an RRSet with differing TTLs from a non-authoritative source.
- Should a client receive a response containing RRs from an RRSet with
- differing TTLs, it should treat this as an error. If the RRSet
- concerned is from a non-authoritative source for this data, the
- client should simply ignore the RRSet, and if the values were
- required, seek to acquire them from an authoritative source. Clients
- that are configured to send all queries to one, or more, particular
- servers should treat those servers as authoritative for this purpose.
Client (with Caching function)
CL_RFC2181_5_2_diff_nonauth.seq [-tooloption ...]: KOI tool option
See also DNSConfig.pm
AP Server1(TN):A.example.com DNS Server1(TN) DNS Server2(TN)
|3ffe:501:ffff:101::10 |3ffe:501:ffff:101::20 |3ffe:501:ffff:101::30
|192.168.1.10 |192.168.1.20 |192.168.1.30
| | |
Net-y --+--------+-----------------------+-------------------------+--- 3ffe:501:ffff:101::/64
| 192.168.1/24
|
|
ROUTER1(TN)
|3ffe:501:ffff:100::1
|192.168.0.1
|
Net-z --+--------+----------------------------------------------------- 3ffe:501:ffff:100::/64
| 192.168.0/24
DNS Client1(NUT)
3ffe:501:ffff:100:XXXX
192.168.0.10
XXXX: EUI64 address
Setup
Set the DNS Server1(TN) address on NUT as above mentioned Network Topology.
Pre-Sequence
In order to send the query for A type(IN class) of AP Server1(TN):A.example.com to the DNS Server1(TN),
NUT is configured.
This test sequence is following.
DNS Client1 (NUT) DNS Server1 (TN) DNS Server2 (TN)
| | |
|--------------------------------------------->| |
| 1. Send standard query | |
| QNAME=A.example.com | |
| | |
|<---------------------------------------------| |
| 2. Standard query response | |
| RRs with differing TTLs | |
| | |
|----------------------------------------------|--------------------------------------------->|
| 3A. Send standard query | |
| QNAME=A.example.com | |
| | |
|--------------------------------------------->|--------------------------------------------->|
| 3B. Send standard query | |
| QNAME=A.example.com | |
v v v
1. NUT send standard query to DNS Server1(TN). (Judgment *1)
2. TN send standard query response to NUT.
3A. NUT send standard query to DNS Server2(TN). *Don't specify the DNS Server2.
*Send query automatically. (Judgment *3A)
3B. NUT send standard query. (Judgment *3B)
*3A or 3B is executed.
- Packet Description
1st Packet
|
1. Standard query from DNS Client1 (NUT) to DNS Server1 (TN)
|
| IP Header |
Source Address |
NUT_NETZ |
| Destination Address |
SV_NETY |
UDP Header
|
Src Port
|
any
|
Dst Port
|
53
|
DNS Header
|
ID |
any |
QR
|
0
|
OPCODE
|
0
|
AA
|
any
|
| TC |
0 |
| RD |
any |
RA
|
any
|
Z
|
any
|
RCODE
|
any
|
QDCOUNT
|
1
|
ANCOUNT
|
0
|
NSCOUNT
|
0
|
ARCOUNT
|
any
|
DNS Question section
|
QNAME |
A.example.com
|
QTYPE
|
A (0x0001)
|
QCLASS
|
IN (0x0001)
|
2nd packet.
|
2. Standard query response from DNS Server1 (TN) to Client1 (NUT)
|
| IP Header |
Source Address |
SV_NETY |
| Destination Address |
NUT_NETZ |
| UDP Header |
Src Port |
53 |
| Dst Port |
Same as 1st Packet's Src Port |
| DNS Header |
ID |
Same as 1st Packet's ID |
| QR |
1 |
| OPCODE |
0 |
| AA |
0 |
| TC |
0 |
| RD |
Same as 1st Packet's RD |
| RA |
0 |
| Z |
0 |
| RCODE |
0 |
| QDCOUNT |
1 |
| ANCOUNT |
2 |
| NSCOUNT |
1 |
| ARCOUNT |
1 |
| DNS Question section |
QNAME |
A.example.com |
| QTYPE |
A (0x0001) |
| QCLASS |
IN (0x0001) |
| DNS Answer section |
NAME |
A.example.com (Pointer 0xC00C) |
| TYPE |
A (0x0001) |
| CLASS |
IN (0x0001) |
| TTL |
1 day (86400) |
| RDLENGTH |
4 |
| ADDRESS |
192.168.1.10 |
| DNS Answer section |
NAME |
A.example.com (Pointer 0xC00C) |
| TYPE |
A (0x0001) |
| CLASS |
IN (0x0001) |
| TTL |
2 day (172800) |
| RDLENGTH |
4 |
| ADDRESS |
192.168.1.11 |
| DNS Authority section |
NAME |
example.com (Pointer 0xC00E) |
| TYPE |
NS (0x0002) |
| CLASS |
IN (0x0001) |
| TTL |
1 day (86400) |
| RDLENGTH |
6 |
| NSDNAME |
NS2.example.com (NS2 + Pointer 0xC00E) |
| DNS Additional section |
NAME |
NS2.example.com (Pointer 0xC04B) |
TYPE
|
A (0x0001) |
| CLASS |
IN (0x0001) |
| TTL |
1 day (86400) |
| RDLENGTH |
4 |
| ADDRESS |
192.168.1.30 |
3rd packet.
|
3A. Standard query from DNS Client1 (NUT) to DNS Server2 (TN)
|
| 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
|
any
|
| TC |
0 |
| RD |
any |
RA
|
any
|
Z
|
any
|
RCODE
|
any
|
QDCOUNT
|
1
|
ANCOUNT
|
0
|
NSCOUNT
|
0
|
ARCOUNT
|
any
|
DNS Question section
|
QNAME |
A.example.com
|
QTYPE
|
A (0x0001)
|
QCLASS
|
IN (0x0001)
|
Exp.
| NUT_NETZ |
DNS Client1's (NUT) Net-z address |
| SV_NETY |
DNS Server1's (TN) Net-y address |
| SV2_NETY |
DNS Server2's (TN) Net-y address |
1. Received standard query QNAME=A.example.com from NUT to Server1(TN).
3A. Received standard query QNAME=A.example.com from NUT to Server2(TN).
3B. Received standard query QNAME=A.example.com from NUT to Server1(TN) or Server2(TN).
*3A or 3B is judged.
If NUT has cache function, clear the cache.
RFC2181 Clarifications to the DNS Specification
5.2. TTLs of RRs in an RRSet