]>
Commit | Line | Data |
---|---|---|
1 | ; config options | |
2 | server: | |
3 | target-fetch-policy: "0 0 0 0 0" | |
4 | ||
5 | stub-zone: | |
6 | name: "." | |
7 | stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET. | |
8 | ||
9 | forward-zone: | |
10 | name: "example.com" | |
11 | forward-addr: 1.2.3.4 | |
12 | CONFIG_END | |
13 | ||
14 | SCENARIO_BEGIN Test scrubber to scrub NS record for lamelike reply from fwd | |
15 | ||
16 | ; K.ROOT-SERVERS.NET. | |
17 | RANGE_BEGIN 0 100 | |
18 | ADDRESS 193.0.14.129 | |
19 | ENTRY_BEGIN | |
20 | MATCH opcode qtype qname | |
21 | ADJUST copy_id | |
22 | REPLY QR NOERROR | |
23 | SECTION QUESTION | |
24 | . IN NS | |
25 | SECTION ANSWER | |
26 | . IN NS K.ROOT-SERVERS.NET. | |
27 | SECTION ADDITIONAL | |
28 | K.ROOT-SERVERS.NET. IN A 193.0.14.129 | |
29 | ENTRY_END | |
30 | RANGE_END | |
31 | ||
32 | ; ns.example.com. | |
33 | RANGE_BEGIN 0 100 | |
34 | ADDRESS 1.2.3.4 | |
35 | ENTRY_BEGIN | |
36 | MATCH opcode qtype qname | |
37 | ADJUST copy_id | |
38 | REPLY RD RA QR NOERROR | |
39 | SECTION QUESTION | |
40 | www.example.com. IN A | |
41 | SECTION ANSWER | |
42 | ; must be scrubbed | |
43 | www.burritolovers.com. IN A 10.20.30.40 | |
44 | SECTION AUTHORITY | |
45 | example1234.com. IN NS ns.example.com. | |
46 | SECTION ADDITIONAL | |
47 | ns.example.com. IN A 1.2.3.4 | |
48 | ENTRY_END | |
49 | ||
50 | ENTRY_BEGIN | |
51 | MATCH opcode qtype qname | |
52 | ADJUST copy_id | |
53 | REPLY RD RA QR NOERROR | |
54 | SECTION QUESTION | |
55 | mail.example.com. IN A | |
56 | SECTION ANSWER | |
57 | SECTION AUTHORITY | |
58 | ; LAME | |
59 | com. IN NS ns.example.com. | |
60 | SECTION ADDITIONAL | |
61 | ns.example.com. IN A 1.2.3.4 | |
62 | ENTRY_END | |
63 | ||
64 | RANGE_END | |
65 | ||
66 | STEP 1 QUERY | |
67 | ENTRY_BEGIN | |
68 | REPLY RD | |
69 | SECTION QUESTION | |
70 | www.example.com. IN A | |
71 | ENTRY_END | |
72 | ||
73 | ; recursion happens here. | |
74 | STEP 10 CHECK_ANSWER | |
75 | ENTRY_BEGIN | |
76 | MATCH all | |
77 | REPLY QR RD RA NOERROR | |
78 | SECTION QUESTION | |
79 | www.example.com. IN A | |
80 | SECTION ANSWER | |
81 | SECTION AUTHORITY | |
82 | SECTION ADDITIONAL | |
83 | ENTRY_END | |
84 | ||
85 | STEP 20 QUERY | |
86 | ENTRY_BEGIN | |
87 | REPLY RD | |
88 | SECTION QUESTION | |
89 | mail.example.com. IN A | |
90 | ENTRY_END | |
91 | ||
92 | STEP 30 CHECK_ANSWER | |
93 | ENTRY_BEGIN | |
94 | MATCH all | |
95 | REPLY QR RD RA SERVFAIL | |
96 | SECTION QUESTION | |
97 | mail.example.com. IN A | |
98 | SECTION ANSWER | |
99 | SECTION AUTHORITY | |
100 | SECTION ADDITIONAL | |
101 | ENTRY_END | |
102 | ||
103 | SCENARIO_END |