SV_RFC3403_4_cache_NAPTR - Caching NAPTR resource record
Verify that a NUT uses the cached data and does not use the TTL expired cache.
- All DNS resource records have a Time To Live (TTL) associated with
them. When the number of seconds has passed since the record was
retrieved the record is no longer valid and a new query must be
used to retrieve the new records.
Caching Server
SV_RFC3403_4_cache_NAPTR.seq [-tooloption ...]: KOI tool option
See also DNSConfig.pm
This test sequence is following.
<--------------- TN -------------->
DNS Client1 (TN) DNS Server1 (NUT) DNS Server2 DNS Server3 DNS Server4
| | | | |
|----------------------------->| | | |
| 1. Send standard query | | | |
| QNAME | | | |
| =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. | | |
| QTYPE=NAPTR | | | |
| | | | |
| |-------------------------------->| | |
| | 2. Recv standard query | | |
| | QNAME | | |
| | =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. | |
| | QTYPE=NAPTR | | |
| | | | |
| |<--------------------------------| | |
| | 3. Send standard query response | | |
| | QNAME | | |
| | =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. | |
| | QTYPE=NAPTR | | |
| | AUTHORITY Name | | |
| | =1.8.e164.arpa. | | |
| | AUTHORITY NSDNAME | | |
| | =NS3.example.org | | |
| | ADDITIONAL Name | | |
| | =NS3.example.org | | |
| | ADDITIONAL Address | | |
| | =192.168.1.30 | | |
| | | | |
| | v | |
| | | |
| |-------------------------------------------->| |
| | 4. Recv standard query | |
| | QNAME | |
| | =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. |
| | QTYPE=NAPTR | |
| | | |
| |<--------------------------------------------| |
| | 5. Send standard query response | |
| | QNAME | |
| | =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. |
| | QTYPE=NAPTR | |
| | AUTHORITY Name | |
| | = 0.9.1.8.e164.arpa. | |
| | AUTHORITY NSDNAME | |
| | = NS4.example.org | |
| | ADDITIONAL Name | |
| | = NS4.example.org | |
| | ADDITIONAL Address | |
| | = 192.168.1.40 | |
| | | |
| | v |
| | |
| |-------------------------------------------------------->|
| | 6. Send standard query |
| | QNAME |
| | =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.
| | QTYPE=NAPTR |
| | |
| |<--------------------------------------------------------|
| | 7. Send standard query response|
| | QNAME |
| | =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.
| | QTYPE=NAPTR |
| | ANSWER NAME |
| | =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.
| | ANSWER Type=NAPTR |
| | ANSWER TTL= 15 seconds |
| | AUTHORITY Name |
| | = 0.9.1.8.e164.arpa. |
| | AUTHORITY NSDNAME |
| | = NS4.example.org |
| | ADDITIONAL Name |
| | = NS4.example.org |
| | ADDITIONAL Address |
| | = 192.168.1.40 |
| | |
|<-----------------------------| |
|8.Recv Standard query response| |
| QNAME | |
| = 1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. |
| QTYPE=NAPTR | |
| ANSWER NAME | |
| = 1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. |
| ANSWER TYPE | |
| = NAPTR | |
| AUTHORITY Name | |
| = 0.9.1.8.e164.arpa | |
| AUTHORITY NSDNAME | |
| = NS4.example.org | |
| ADDITIONAL Name | |
| = NS4.example.org | |
| ADDITIONAL Address | |
| = 192.168.1.40 | |
| | |
| wait 5 seconds | |
|----------------------------->| |
| 9. Send standard query | |
| QNAME | |
| =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. |
| QTYPE=NAPTR | |
| | |
| | |
|<-----------------------------| |
|10.Recv Standard query | |
| response| |
| QNAME | |
| = 1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. |
| QTYPE=NAPTR | |
| ANSWER NAME | |
| = 1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. |
| ANSWER TYPE | |
| = NAPTR | |
| AUTHORITY Name | |
| = 0.9.1.8.e164.arpa | |
| AUTHORITY NSDNAME | |
| = NS4.example.org | |
| ADDITIONAL Name | |
| = NS4.example.org | |
| ADDITIONAL Address | |
| = 192.168.1.40 | |
| | |
| wait 15 seconds | |
|----------------------------->| |
|11. Send standard query | |
| QNAME | |
| =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. |
| QTYPE=NAPTR | |
| | |
| | |
| |-------------------------------------------------------->|
| | 12. Send standard query |
| | QNAME |
| | =1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.
| | QTYPE=NAPTR |
| | |
v v v
1. TN send standard query QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR 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.8.e164.arpa, AUTHORITY Name Server=NS3.example.org.
4. NUT transmits standard query QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR to DNS Server3 (TN: NS3.example.org) (Judgment *4)
5. TN send query response to NUT w/ AUTHORITY Name=0.9.1.8.e164.arpa, AUTHORITY Name Server=NS4.example.org.
6. NUT transmits standard query QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR to DNS Server4 (TN: NS4.example.org) (Judgment *6)
7. TN send query response to NUT w/ ANSWER Name=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, ANSWER Type=NAPTR to NUT.
8. NUT transmits query response to DNS Client1 (TN) (Judgment *8)
wait 5 seconds
9. TN send standard query QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR to NUT.
10. NUT transmits query response to DNS Client1 (TN) form cache. (Judgment *10)
wait 15 seconds
11. TN send standard query QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR to NUT.
12. NUT transmits standard query QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR to DNS Server4 (TN: NS4.example.org) (Judgment *12)
- 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 |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. |
QTYPE |
NAPTR (0x0023) |
QCLASS |
IN (0x0001) |
- 2nd packet.
Standard query from DNS Server1 (NUT) to 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 |
0 |
RA |
ANY |
Z |
Any |
RCODE |
ANY |
QDCOUNT |
1 |
ANCOUNT |
0 |
NSCOUNT |
0 |
ARCOUNT |
ANY |
DNS Question section |
QNAME |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa |
QTYPE |
NAPTR (0x0023) |
QCLASS |
IN (0x0001) |
- 3rd packet.
Standard query response from DNS Server2 (TN) to Server1 (NUT)
|
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 |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa
|
QTYPE |
NAPTR (0x0023) |
QCLASS |
IN (0x0001) |
DNS Authority section |
NAME |
1.8.e164.arpa (Pointer 0xC020) |
TYPE |
NS (0x0002) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
16 |
NSDNAME |
NS3.example.org |
DNS Additional section |
NAME |
NS3.example.org (Pointer 0xC03F) |
TYPE |
A (0x0001) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
4 |
ADDRESS |
192.168.1.30 |
- 4th packet.
Standard query from DNS Server1 (NUT) to Server3 (TN)
|
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 |
ANY |
TC |
0 |
RD |
0 |
RA |
ANY |
Z |
ANY |
RCODE |
ANY |
QDCOUNT |
1 |
ANCOUNT |
0 |
NSCOUNT |
0 |
ARCOUNT |
any |
DNS Question section |
QNAME |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa |
QTYPE |
NAPTR (0x0023) |
QCLASS |
IN (0x0001) |
- 5th packet.
Standard query response from DNS Server3 (TN) to Server1 (NUT)
|
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 |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.
|
QTYPE |
NAPTR (0x0023) |
QCLASS |
IN (0x0001) |
DNS Authority section |
NAME |
0.9.1.8.e164.arpa (Pointer 0xC01C) |
TYPE |
NS (0x0002) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
16 |
NSDNAME |
NS4.example.org |
DNS Additional section |
NAME |
NS4.example.org (Pointer 0xC03F) |
TYPE |
A (0x0001) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
4 |
ADDRESS |
192.168.1.40 |
- 6th packet.
Standard query from DNS Server1 (NUT) to Server4 (TN)
|
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 |
ANY |
TC |
0 |
RD |
0 |
RA |
ANY |
Z |
ANY |
RCODE |
ANY |
QDCOUNT |
1 |
ANCOUNT |
0 |
NSCOUNT |
0 |
ARCOUNT |
ANY |
DNS Question section |
QNAME |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa |
QTYPE |
NAPTR (0x0023) |
QCLASS |
IN (0x0001) |
- 7th packet.
Standard query response from DNS Server4 (TN) to Server1 (NUT)
|
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 |
1 |
NSCOUNT |
1 |
ARCOUNT |
1 |
DNS Question section |
QNAME |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa
|
QTYPE |
NAPTR (0x0023) |
QCLASS |
IN (0x0001) |
DNS Answer section |
NAME |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa (Pointer 0xC00C) |
TYPE |
NAPTR (0x0023) |
CLASS |
IN (0x0001) |
TTL |
15 sec |
RDLENGTH |
45 |
ORDER |
100 |
PREFERENCE |
10 |
FLAGS |
U |
SERVICES |
sip+E2U |
REGEXP |
!^.*$!sip:info1@example.org!i |
REPLACEMENT |
. |
DNS Authority section |
NAME |
0.9.1.8.e164.arpa. (Pointer 0xC01C) |
TYPE |
NS (0x0002) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
16 |
NSDNAME |
NS4.example.org |
DNS Additional section |
NAME |
NS4.example.org (Pointer 0xC078) |
TYPE |
A (0x0001) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
4 |
ADDRESS |
192.168.1.40 |
- 8th packet.
Standard query response from DNS Server1 (NUT) to Client (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 |
0 |
TC |
0 |
RD |
0 |
RA |
0 |
Z |
ANY |
RCODE |
0 |
QDCOUNT |
1 |
ANCOUNT |
1 |
NSCOUNT |
1 |
ARCOUNT |
1 |
DNS Question section |
QNAME |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa
|
QTYPE |
NAPTR (0x0023) |
QCLASS |
IN (0x0001) |
DNS Answer section |
NAME |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa (Pointer 0xC00C) |
TYPE |
NAPTR (0x0023) |
CLASS |
IN (0x0001) |
TTL |
15 sec |
RDLENGTH |
45 |
ORDER |
100 |
PREFERENCE |
10 |
FLAGS |
U |
SERVICES |
sip+E2U |
REGEXP |
!^.*$!sip:info1@example.org!i |
REPLACEMENT |
. |
DNS Authority section |
NAME |
0.9.1.8.e164.arpa. (Pointer 0xC01C) |
TYPE |
NS (0x0002) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
16 |
NSDNAME |
NS4.example.org |
DNS Additional section |
NAME |
NS4.example.org (Pointer 0xC078) |
TYPE |
A (0x0001) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
4 |
ADDRESS |
192.168.1.40 |
- 9th 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 |
0x1001 |
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 |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. |
QTYPE |
NAPTR (0x0023) |
QCLASS |
IN (0x0001) |
- 10th packet.
Standard query response from DNS Server1 (NUT) to Client (TN)
|
IP Header |
Source Address |
NUT_NETZ |
Destination Address |
CL1_NETZ |
UDP Header |
Src Port |
53 |
Dst Port |
2000 |
DNS Header |
ID |
0x1001 |
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 |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa
|
QTYPE |
NAPTR (0x0023) |
QCLASS |
IN (0x0001) |
DNS Answer section |
NAME |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa (Pointer 0xC00C) |
TYPE |
NAPTR (0x0023) |
CLASS |
IN (0x0001) |
TTL |
less than 15 sec |
RDLENGTH |
45 |
ORDER |
100 |
PREFERENCE |
10 |
FLAGS |
U |
SERVICES |
sip+E2U |
REGEXP |
!^.*$!sip:info1@example.org!i |
REPLACEMENT |
. |
DNS Authority section |
NAME |
0.9.1.8.e164.arpa. (Pointer 0xC01C) |
TYPE |
NS (0x0002) |
CLASS |
IN (0x0001) |
TTL |
less than 1 day (86400) |
RDLENGTH |
16 |
NSDNAME |
NS4.example.org |
DNS Additional section |
NAME |
NS4.example.org (Pointer 0xC078) |
TYPE |
A (0x0001) |
CLASS |
IN (0x0001) |
TTL |
less than 1 day (86400) |
RDLENGTH |
4 |
ADDRESS |
192.168.1.40 |
- 11th 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 |
0x1002 |
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 |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. |
QTYPE |
NAPTR (0x0023) |
QCLASS |
IN (0x0001) |
- 12th packet.
Standard query from DNS Server1 (NUT) to Server4 (TN)
|
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 |
ANY |
TC |
0 |
RD |
0 |
RA |
ANY |
Z |
ANY |
RCODE |
ANY |
QDCOUNT |
1 |
ANCOUNT |
0 |
NSCOUNT |
0 |
ARCOUNT |
ANY |
DNS Question section |
QNAME |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa |
QTYPE |
NAPTR (0x0023) |
QCLASS |
IN (0x0001) |
- Exp.
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 |
2. Received standard query including QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR.
4. Received standard query including QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR.
6. Received standard query including QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR.
8. Received standard query response including correct NAPTR record in Answer section.
10. Received standard query response including correct NAPTR record in Answer section from cache.
12. Received standard query including QNAME=1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa, QTYPE=NAPTR.
None
RFC3403 Dynamic Delegation Discovery System (DDDS)
Part Three: The Domain Name System (DNS) Database
3. DDDS Database Specification
4. NAPTR RR Format