SV_RFC3403_4_1_NAPTR_rdata - Resource record of NAPTR type
Verify that a NUT transmits correct message including NAPTR resource record
- A <domain-name> have single NAPTR resource record case.
- Header section field has the following value.
- QR : 1
- QDCOUNT : 1
- ANCOUNT : 1
- NAPTR RDATA format
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
| ORDER |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
| PREFERENCE |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/ FLAGS /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/ SERVICES /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/ REGEXP /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/ REPLACEMENT /
/ /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
|
ORDER :
|
A 16-bit unsigned integer specifying the order in which the NAPTR
records MUST be processed in order to accurately represent the
ordered list of Rules.
|
|
PREFERENCE :
|
Although it is called "preference" in deference to DNS
terminology, this field is equivalent to the Priority value in the
DDDS Algorithm. It is a 16-bit unsigned integer that specifies
the order in which NAPTR records with equal Order values SHOULD be
processed, low numbers being processed before high numbers.
|
|
FLAGS :
|
A <character-string> containing flags to control aspects of the
rewriting and interpretation of the fields in the record. Flags
are single characters from the set A-Z and 0-9. The case of the
alphabetic characters is not significant. The field can be empty
|
|
SERVICES :
|
A <character-string> that specifies the Service Parameters
applicable to this this delegation path. It is up to the
Application Specification to specify the values found in this
field.
|
|
REGEXP :
|
A containing a substitution expression that is
applied to the original string held by the client in order to
construct the next domain name to lookup.
|
|
REPLACEMENT :
|
A <domain-name> which is the next domain-name to query for
depending on the potential values found in the flags field. This
field is used when the regular expression is a simple replacement
operation. Any value in this field MUST be a fully qualified
domain-name. Name compression is not to be used for this field.
|
Authoritative Server
SV_RFC3403_4_1_NAPTR_rdata.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 = 1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa.
| QTYPE= NAPTR |
| |
|<-------------------------------------|
| 2. Standard query response |
| |
| |
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 reply query response w/ NAPTR resource record 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 |
1.0.0.0.1.1.1.1.0.9.1.8.e164.arpa. |
| QTYPE |
NAPTR (0x0023) |
| QCLASS |
IN (0x0001) |
- 2nd 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 |
1 |
| 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 |
86400sec |
| RDLENGTH |
45 |
| ORDER |
100 |
| PREFERENCE |
10 |
| FLAGS |
U |
| SERVICES |
sip+E2U |
| REGEXP |
!^.*$!sip:info1@example.com!i |
| REPLACEMENT |
. |
| DNS Authority section |
NAME |
1.1.1.1.0.9.1.8.e164.arpa. (Pointer 0xC014) |
| TYPE |
NS (0x0002) |
| CLASS |
IN (0x0001) |
| TTL |
1 day (86400) |
| RDLENGTH |
17 |
| NSDNAME |
NS1.example.com |
| DNS Additional section |
NAME |
NS1.example.com (Pointer 0xC078) |
| TYPE |
A (0x0001) |
| CLASS |
IN (0x0001) |
| TTL |
1 day (86400) |
| RDLENGTH |
4 |
| ADDRESS |
192.168.0.10 |
- Exp.
| NUT_NETZ |
DNS Server1's (NUT) Net-z address |
| CL1_NETZ |
DNS Client1's (TN) Net-z address |
2. Received standard query response including NAPTR resource record.
None
RFC3403 Dynamic Delegation Discovery System (DDDS)
Part Three: The Domain Name System (DNS) Database
4. NAPTR RR Format
4.1 Packet Format