SV_RFC3404_4_3_NAPTR_flag_S - Flag in NAPTR resource record (S flag)
Verify that a NUT transmits correct message including NAPTR resource record with S flag
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 |
Authoritative Server
SV_RFC3404_4_3_NAPTR_flag_S.seq [-tooloption ...]: KOI tool option See also DNSConfig.pm
AP Server1 (TN) |3ffe:501:ffff:101::10 |192.168.1.10 | 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 3ffe:501:ffff:100::10 192.168.0.10 192.168.0.20
XXXX: EUI64
$TTL 86400 ; TTL of 1 day @ IN SOA NS1.example.com. root.example.com. ( 2005081600 ; serial 3600 ; refresh every 1 hr 900 ; retry every 15 min 604800 ; expire after a week 3600 ; Minimum TTL of a 1 hr ) ; IN NS NS1.example.com. ; IN NAPTR 100 50 "S" "http+N2L+N2C+N2R" "" _http._tcp.example.com. ; _http._tcp IN SRV 10 20 80 www.example.com. ; NS1 IN A 192.168.0.10 ; WWW IN A 192.168.1.10
$TTL 86400 ; TTL of 1 day @ IN SOA NS1.example.com. root.example.com. ( 2005081600 ; serial 3600 ; refresh after 1 hr 900 ; retry after 15 min 604800 ; expire after 1 week 3600 ; Minimum TTL of 1 hr ) ; IN NS NS1.example.com. ; cid.urn.arpa. IN NAPTR 100 10 "" "" "!^urn:cid:.+@([^\\.]+\\.)(.*)$!\\2!i" .
This test sequence is following.
DNS Client1 (TN) DNS Server1 (NUT) | | |------------------------------------->| | 1. Send standard query | | QNAME = cid.urn.arpa. | | QTYPE= NAPTR | | | |<-------------------------------------| | 2. Standard query response | | | |------------------------------------->| | 3. Send standard query | | QNAME = example.com. | | QTYPE= NAPTR | | | |<-------------------------------------| | 4. Standard query response | | | |------------------------------------->| | 5. Send standard query | | QNAME = _http._tcp.example.com. | | QTYPE= SRV | | | |<-------------------------------------| | 6. Standard query response | | | | | v v
1. TN send standard query QNAME=cid.urn.arpa., QTYPE=NAPTR to NUT. 2. NUT reply query response w/ NAPTR resource record to TN (Judgment *2) 3. TN send standard query QNAME=example.com., QTYPE=NAPTR to NUT. 4. NUT reply query response w/ NAPTR resource record to TN (Judgment *4) 5. TN send standard query QNAME=_http._tcp.example.com., QTYPE=SRV to NUT. 6. NUT reply query response w/ SRV resource record to TN (Judgment *6)
|
||
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 | cid.urn.arpa. |
QTYPE | NAPTR (0x0023) | |
QCLASS | IN (0x0001) |
|
||
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 | cid.urn.arpa. |
QTYPE | NAPTR (0x0023) | |
QCLASS | IN (0x0001) | |
DNS Answer section | NAME | cid.urn.arpa. (Pointer 0xC00C) |
TYPE | NAPTR (0x0023) | |
CLASS | IN (0x0001) | |
TTL | 86400sec | |
RDLENGTH | 41 | |
ORDER | 100 | |
PREFERENCE | 10 | |
FLAGS | ||
SERVICES | ||
REGEXP | !^urn:cid:.+@([^\.]+\.)(.*)$!\2!i | |
REPLACEMENT | . | |
DNS Authority section | NAME | cid.urn.arpa. (Pointer 0xC00C) |
TYPE | NS (0x0002) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 17 | |
NSDNAME | NS1.example.com | |
DNS Additional section | NAME | NS1.example.com (Pointer 0xC05F) |
TYPE | A (0x0001) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 4 | |
ADDRESS | 192.168.0.10 |
|
||
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 | example.com. |
QTYPE | NAPTR (0x0023) | |
QCLASS | IN (0x0001) |
|
||
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 | 1 | |
TC | 0 | |
RD | 0 | |
RA | 0 | |
Z | ANY | |
RCODE | 0 | |
QDCOUNT | 1 | |
ANCOUNT | 1 | |
NSCOUNT | 1 | |
ARCOUNT | 1 | |
DNS Question section | QNAME | example.com |
QTYPE | NAPTR (0x0023) | |
QCLASS | IN (0x0001) | |
DNS Answer section | NAME | example.com. (Pointer 0xC00C) |
TYPE | NAPTR (0x0023) | |
CLASS | IN (0x0001) | |
TTL | 86400sec | |
RDLENGTH | 48 | |
ORDER | 100 | |
PREFERENCE | 50 | |
FLAGS | S | |
SERVICES | http+N2L+N2C+N2R | |
REGEXP | ||
REPLACEMENT | _http._tcp.example.com. | |
DNS Authority 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 Additional section | NAME | NS1.example.com (Pointer 0xC065) |
TYPE | A (0x0001) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 4 | |
ADDRESS | 192.168.0.10 |
|
||
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 | _http._tcp.example.com. |
QTYPE | SRV (0x0021) | |
QCLASS | IN (0x0001) |
|
||
IP Header | Source Address | NUT_NETZ |
Destination Address | CL1_NETZ | |
UDP Header | Src Port | 53 |
Dst Port | 2000 | |
DNS Header | ID | 0x1002 |
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 | _http._tcp.example.com. |
QTYPE | SRV (0x0021) | |
QCLASS | IN (0x0001) | |
DNS Answer section | NAME | _http._tcp.example.com. (Pointer 0xC00C) |
TYPE | SRV (0x0021) | |
CLASS | IN (0x0001) | |
TTL | 86400sec | |
RDLENGTH | 23 | |
Priority | 10 | |
Weight | 20 | |
Port | 80 | |
Target | www.example.com. | |
DNS Authority section | NAME | example.com (Pointer 0xC017) |
TYPE | NS (0x0002) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 6 | |
NSDNAME | NS1.example.com (NS1 + Pointer 0xC017) | |
DNS Additional section | NAME | NS1.example.com (Pointer 0xC057) |
TYPE | A (0x0001) | |
CLASS | IN (0x0001) | |
TTL | 1 day (86400) | |
RDLENGTH | 4 | |
ADDRESS | 192.168.0.10 |
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. 4. Received standard query response including NAPTR resource record. 6. Received standard query response including SRV resource record.
None
RFC3403 Dynamic Delegation Discovery System (DDDS) Part Three: The Domain Name System (DNS) Database 4.1 Packet Format
RFC3403 Dynamic Delegation Discovery System (DDDS) Part Four: The Uniform Resource Identifiers (URI) Resolution Application 4.3 Flags