SV_RFC1035_3_3_WKS_rdata - Resource record of WKS type
Verify that a NUT transmits correct message including WKS resource record.
- Header section field has the following value.
- QR : 1
- QDCOUNT : 1
- ANCOUNT : 1
- CNAME RDATA format
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
| ADDRESS |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
| PROTOCOL | |
+--+--+--+--+--+--+--+--+ |
| |
/ <BIT MAP> /
/ /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
ADDRESS :
|
An 32 bit Internet address
|
PROTOCOL :
|
An 8 bit IP protocol number
|
<BIT MAP> :
|
A variable length bit map. The bit map must be a multiple of 8 bits long.
|
The first bit corresponds to port 0, the second to port 1, etc.
If the bit map does not include a bit for a protocol of interest, that bit is assumed zero.
Authoritative Server
SV_RFC1035_3_3_WKS_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=A1.example.com |
| QTYPE=WKS |
| |
|<-------------------------------------|
| 2. Standard query response |
| ADDRESS=192.168.1.11 |
| PROTOCOL=TCP(6) |
| BITMAP=telnet(6) |
| |
|------------------------------------->|
| 3. Send standard query |
| QNAME=A2.example.com |
| QTYPE=WKS |
| |
|<-------------------------------------|
| 4. Standard query response |
| ADDRESS=192.168.1.12 |
| PROTOCOL=UDP(17) |
| BITMAP=telnet(6) |
| |
|------------------------------------->|
| 5. Send standard query to NUT |
| QNAME=A3.example.com |
| QTYPE=WKS |
| |
|<-------------------------------------|
| 6. Standard query response |
| ADDRESS=192.168.1.13 |
| PROTOCOL=TCP(6) |
| BITMAP=pop3(110), smtp(25) |
| |
|------------------------------------->|
| 7. Send standard query to NUT |
| QNAME=A4.example.com |
| QTYPE=WKS |
| |
|<-------------------------------------|
| 8. Standard query response |
| ADDRESS=192.168.1.14 |
| PROTOCOL=UDP(17) |
| BITMAP=pop3(110), smtp(25) |
| |
|------------------------------------->|
| 9. Send standard query to NUT |
| QNAME=A5.example.com |
| QTYPE=WKS |
| |
|<-------------------------------------|
| 10. Standard query response |
| ADDRESS=192.168.1.15 |
| PROTOCOL=TCP(6) |
| BITMAP=telnet(25) |
| ADDRESS=192.168.1.15 |
| PROTOCOL=UDP(17) |
| BITMAP=telnet(25) |
| |
v v
1. TN send standard query QNAME=A1.example.com, QTYPE=WKS to NUT.
2. NUT reply query response including ADDRESS=192.168.1.11, PROTOCOL=TCP(6),
BITMAP=telnet(25) to TN (Judgment *2)
3. TN send standard query QNAME=A2.example.com, QTYPE=WKS to NUT.
4. NUT reply query response including ADDRESS=192.168.1.12, PROTOCOL=UDP(17),
BITMAP=telnet(25) to TN (Judgment *4)
5. TN send standard query QNAME=A3.example.com, QTYPE=WKS to NUT.
6. NUT reply query response including ADDRESS=192.168.1.13, PROTOCOL=TCP(6),
BITMAP=pop3(110), smtp(25) to TN (Judgment *6)
7. TN send standard query QNAME=A4.example.com, QTYPE=WKS to NUT.
8. NUT reply query response including ADDRESS=192.168.1.14, PROTOCOL=UDP(17),
BITMAP=pop3(110), smtp(25) to TN (Judgment *8)
9. TN send standard query QNAME=A5.example.com, QTYPE=WKS to NUT.
10. NUT reply query response including multiple WKS resource records.
One is including ADDRESS=192.168.1.15, PROTOCOL=TCP(6), BITMAP=telnet(25),
others is including ADDRESS=192.168.1.15, PROTOCOL=UDP(17), BITMAP=telnet(25) to TN (Judgment *8)
- 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 |
A1.example.com |
QTYPE |
WKS (0x000B) |
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 |
1 |
NSCOUNT |
1 |
ARCOUNT |
1 |
DNS Question section |
QNAME |
A1.example.com |
QTYPE |
WKS (0x000B) |
QCLASS |
IN (0x0001) |
DNS Answer section |
NAME |
A1.example.com (Pointer 0xC00C) |
TYPE |
WKS (0x000B) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
8 |
ADDRESS |
192.168.1.11 |
PROTOCOL |
6 |
<BIT MAP> |
000000000000000000000001 |
DNS Authority section |
NAME |
example.com (Pointer 0xC00F) |
TYPE |
NS (0x0002) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
6 |
NSDNAME |
NS1.example.com (NS1 + Pointer 0xC00F) |
DNS Additional section |
NAME |
NS1.example.com (Pointer 0xC040) |
TYPE
|
A (0x0001) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
4 |
ADDRESS |
192.168.0.10 |
- 3rd packet.
Standard query from DNS Client1 (TN) to Server1 (NUT)
|
IP Header |
Source Address |
CL1_NETZ |
Destination Address |
NUT_NETZ |
UDP Header |
Src Port |
2001 |
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 |
A2.example.com |
QTYPE |
WKS (0x000B) |
QCLASS |
IN (0x0001) |
- 4th 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 |
2001 |
DNS Header |
ID |
0x1001 |
QR |
1 |
OPCODE |
0 |
AA |
1 |
TC |
0 |
RD |
1 |
RA |
ANY |
Z |
0 |
RCODE |
0 |
QDCOUNT |
1 |
ANCOUNT |
1 |
NSCOUNT |
1 |
ARCOUNT |
1 |
DNS Question section |
QNAME |
A2.example.com |
QTYPE |
WKS (0x000B) |
QCLASS |
IN (0x0001) |
DNS Answer section |
NAME |
A2.example.com (Pointer 0xC00C) |
TYPE |
WKS (0x000B) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
8 |
ADDRESS |
192.168.1.12 |
PROTOCOL |
17 |
<BIT MAP> |
000000000000000000000001 |
DNS Authority section |
NAME |
example.com (Pointer 0xC00F) |
TYPE |
NS (0x0002) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
6 |
NSDNAME |
NS1.example.com (NS1 + Pointer 0xC00F) |
DNS Additional section |
NAME |
NS1.example.com (Pointer 0xC040) |
TYPE
|
A (0x0001) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
4 |
ADDRESS |
192.168.0.10 |
- 5th packet.
Standard query from DNS Client1 (TN) to Server1 (NUT)
|
IP Header |
Source Address |
CL1_NETZ |
Destination Address |
NUT_NETZ |
UDP Header |
Src Port |
2001 |
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 |
A3.example.com |
QTYPE |
WKS (0x000B) |
QCLASS |
IN (0x0001) |
- 6th 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 |
2001 |
DNS Header |
ID |
0x1002 |
QR |
1 |
OPCODE |
0 |
AA |
1 |
TC |
0 |
RD |
1 |
RA |
ANY |
Z |
0 |
RCODE |
0 |
QDCOUNT |
1 |
ANCOUNT |
1 |
NSCOUNT |
1 |
ARCOUNT |
1 |
DNS Question section |
QNAME |
A3.example.com |
QTYPE |
WKS (0x000B) |
QCLASS |
IN (0x0001) |
DNS Answer section |
NAME |
A3.example.com (Pointer 0xC00C) |
TYPE |
WKS (0x000B) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
19 |
ADDRESS |
192.168.1.13 |
PROTOCOL |
6 |
<BIT MAP> |
0000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000010 |
DNS Authority section |
NAME |
example.com (Pointer 0xC00F) |
TYPE |
NS (0x0002) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
6 |
NSDNAME |
NS1.example.com (NS1 + Pointer 0xC00F) |
DNS Additional section |
NAME |
NS1.example.com (Pointer 0xC04B) |
TYPE
|
A (0x0001) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
4 |
ADDRESS |
192.168.0.10 |
- 7th packet.
Standard query from DNS Client1 (TN) to Server1 (NUT)
|
IP Header |
Source Address |
CL1_NETZ |
Destination Address |
NUT_NETZ |
UDP Header |
Src Port |
2001 |
Dst Port |
53 |
DNS Header |
ID |
0x1003 |
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 |
A4.example.com |
QTYPE |
WKS (0x000B) |
QCLASS |
IN (0x0001) |
- 8th 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 |
2001 |
DNS Header |
ID |
0x1003 |
QR |
1 |
OPCODE |
0 |
AA |
1 |
TC |
0 |
RD |
1 |
RA |
ANY |
Z |
0 |
RCODE |
0 |
QDCOUNT |
1 |
ANCOUNT |
1 |
NSCOUNT |
1 |
ARCOUNT |
1 |
DNS Question section |
QNAME |
A4.example.com |
QTYPE |
WKS (0x000B) |
QCLASS |
IN (0x0001) |
DNS Answer section |
NAME |
A4.example.com (Pointer 0xC00C) |
TYPE |
WKS (0x000B) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
19 |
ADDRESS |
192.168.1.14 |
PROTOCOL |
17 |
<BIT MAP> |
0000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000010 |
DNS Authority section |
NAME |
example.com (Pointer 0xC00F) |
TYPE |
NS (0x0002) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
6 |
NSDNAME |
NS1.example.com (NS1 + Pointer 0xC00F) |
DNS Additional section |
NAME |
NS1.example.com (Pointer 0xC04B) |
TYPE
|
A (0x0001) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
4 |
ADDRESS |
192.168.0.10 |
- 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 |
2001 |
Dst Port |
53 |
DNS Header |
ID |
0x1004 |
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 |
A5.example.com |
QTYPE |
WKS (0x000B) |
QCLASS |
IN (0x0001) |
- 10th 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 |
2001 |
DNS Header |
ID |
0x1004 |
QR |
1 |
OPCODE |
0 |
AA |
1 |
TC |
0 |
RD |
1 |
RA |
ANY |
Z |
0 |
RCODE |
0 |
QDCOUNT |
1 |
ANCOUNT |
2 |
NSCOUNT |
1 |
ARCOUNT |
1 |
DNS Question section |
QNAME |
A5.example.com |
QTYPE |
WKS (0x000B) |
QCLASS |
IN (0x0001) |
DNS Answer section |
NAME |
A5.example.com (Pointer 0xC00C) |
TYPE |
WKS (0x000B) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
8 |
ADDRESS |
192.168.1.15 |
PROTOCOL |
6 |
<BIT MAP> |
000000000000000000000001 |
DNS Answer section |
NAME |
A5.example.com (Pointer 0xC00C) |
TYPE |
WKS (0x000B) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
8 |
ADDRESS |
192.168.1.15 |
PROTOCOL |
17 |
<BIT MAP> |
000000000000000000000001 |
DNS Authority section |
NAME |
example.com (Pointer 0xC00F) |
TYPE |
NS (0x0002) |
CLASS |
IN (0x0001) |
TTL |
1 day (86400) |
RDLENGTH |
6 |
NSDNAME |
NS1.example.com (NS1 + Pointer 0xC00F) |
DNS Additional section |
NAME |
NS1.example.com (Pointer 0xC054) |
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 WKS resource record.
4. Received standard query response including WKS resource record.
6. Received standard query response including WKS resource record.
8. Received standard query response including WKS resource record.
10. Received standard query response including WKS resource record.
None
RFC1035 DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION
3.2.1 Format
3.2.2 TYPE values
3.4.2 WKS RDATA format