]>
Commit | Line | Data |
---|---|---|
89c4ed63 A |
1 | ; config options go here. |
2 | server: | |
3 | num-queries-per-thread: 1 | |
4 | forward-zone: | |
5 | name: "." | |
6 | forward-addr: 216.0.0.1 | |
7 | CONFIG_END | |
8 | SCENARIO_BEGIN Test too many queries asked, last is dropped. | |
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 | ; This answer does not arrive, the query was dropped | |
78 | ;STEP 11 CHECK_ANSWER | |
79 | ;ENTRY_BEGIN | |
80 | ;MATCH opcode qname qtype | |
81 | ;SECTION QUESTION | |
82 | ;www.example.net. IN A | |
83 | ;SECTION ANSWER | |
84 | ;www.example.net. IN A 10.20.30.40 | |
85 | ;ENTRY_END | |
86 | SCENARIO_END | |
87 | ||
88 | ; testbound checks before exit: | |
89 | ; * no more pending queries outstanding. | |
90 | ; * and no answers that have not been checked. |