]>
Commit | Line | Data |
---|---|---|
1 | ; config options go here. | |
2 | server: | |
3 | num-queries-per-thread: 2 | |
4 | forward-zone: | |
5 | name: "." | |
6 | forward-addr: 216.0.0.1 | |
7 | CONFIG_END | |
8 | SCENARIO_BEGIN Sample of a valid query | |
9 | ||
10 | ; query responses from authority servers. | |
11 | RANGE_BEGIN 0 100 | |
12 | ENTRY_BEGIN | |
13 | MATCH opcode qtype qname | |
14 | ADJUST copy_id | |
15 | REPLY QR RD RA NOERROR | |
16 | SECTION QUESTION | |
17 | www.example.net. IN A | |
18 | SECTION ANSWER | |
19 | www.example.net. IN A 10.20.30.40 | |
20 | SECTION AUTHORITY | |
21 | www.example.net. IN NS ns.example.net. | |
22 | SECTION ADDITIONAL | |
23 | ns.example.net. IN A 10.20.30.50 | |
24 | ENTRY_END | |
25 | RANGE_END | |
26 | ||
27 | STEP 1 QUERY | |
28 | ENTRY_BEGIN | |
29 | REPLY RD | |
30 | SECTION QUESTION | |
31 | www.example.com. IN A | |
32 | ENTRY_END | |
33 | ||
34 | STEP 2 CHECK_OUT_QUERY | |
35 | ENTRY_BEGIN | |
36 | MATCH qname qtype opcode | |
37 | SECTION QUESTION | |
38 | www.example.com. IN A | |
39 | ENTRY_END | |
40 | ||
41 | ; NO REPLY (this step is not needed) | |
42 | STEP 3 NOTHING | |
43 | ||
44 | ; another query | |
45 | STEP 4 QUERY | |
46 | ENTRY_BEGIN | |
47 | REPLY RD | |
48 | SECTION QUESTION | |
49 | www.example.net. IN A | |
50 | ENTRY_END | |
51 | ||
52 | ; reply from first query returns | |
53 | STEP 5 REPLY | |
54 | ENTRY_BEGIN | |
55 | MATCH opcode qtype qname | |
56 | ADJUST copy_id | |
57 | REPLY QR RD RA NOERROR | |
58 | SECTION QUESTION | |
59 | www.example.com. IN A | |
60 | SECTION ANSWER | |
61 | www.example.com. IN A 10.20.30.40 | |
62 | SECTION AUTHORITY | |
63 | www.example.com. IN NS ns.example.com. | |
64 | SECTION ADDITIONAL | |
65 | ns.example.com. IN A 10.20.30.50 | |
66 | ENTRY_END | |
67 | ||
68 | STEP 10 CHECK_ANSWER | |
69 | ENTRY_BEGIN | |
70 | MATCH opcode qname qtype | |
71 | SECTION QUESTION | |
72 | www.example.com. IN A | |
73 | SECTION ANSWER | |
74 | www.example.com. IN A 10.20.30.40 | |
75 | ENTRY_END | |
76 | ||
77 | STEP 11 CHECK_ANSWER | |
78 | ENTRY_BEGIN | |
79 | MATCH opcode qname qtype | |
80 | SECTION QUESTION | |
81 | www.example.net. IN A | |
82 | SECTION ANSWER | |
83 | www.example.net. IN A 10.20.30.40 | |
84 | ENTRY_END | |
85 | SCENARIO_END | |
86 | ||
87 | ; testbound checks before exit: | |
88 | ; * no more pending queries outstanding. | |
89 | ; * and no answers that have not been checked. |