blob: 2a16272822162eb558b4f2992403c4e47c83e65a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
|
trust-anchor: "example. DNSKEY 257 3 7 AwEAAcUlFV1vhmqx6NSOUOq2R/dsR7Xm3upJ ( j7IommWSpJABVfW8Q0rOvXdM6kzt+TAu92L9 AbsUdblMFin8CVF3n4s= )"
CONFIG_END
SCENARIO_BEGIN Test stats module
RANGE_BEGIN 0 100
ADDRESS 192.0.2.1
ENTRY_BEGIN
REPLY QR RA RD CD NOERROR
MATCH opcode question rcode
ADJUST copy_id
SECTION QUESTION
cd.test. IN TXT
SECTION ANSWER
cd.test. IN TXT "CD is set"
ENTRY_END
ENTRY_BEGIN
REPLY QR RA RD CD NOERROR
MATCH opcode question rcode
ADJUST copy_id
SECTION QUESTION
nodata.test. IN TXT
ENTRY_END
ENTRY_BEGIN
REPLY QR RA RD CD NXDOMAIN
MATCH opcode question
ADJUST copy_id
SECTION QUESTION
nxdomain.test. IN TXT
ENTRY_END
; failing DNSSEC-signed subdomain
ENTRY_BEGIN
REPLY QR RA RD CD SERVFAIL
MATCH opcode subdomain
ADJUST copy_id copy_query
SECTION QUESTION
bogus.test. IN TXT
ENTRY_END
; query for this name triggers check in Lua config
ENTRY_BEGIN
REPLY QR RA RD CD NOERROR
MATCH opcode question rcode
ADJUST copy_id
SECTION QUESTION
stats.test. IN TXT
SECTION ANSWER
stats.test. IN TXT "Ok, trigger query was not intercepted!"
ENTRY_END
ENTRY_BEGIN
REPLY QR RD RA CD TC NOERROR
MATCH opcode question rcode
ADJUST copy_id
SECTION QUESTION
tc.test. IN URI
ENTRY_END
RANGE_END
; +cd +rd
STEP 10 QUERY
ENTRY_BEGIN
REPLY RD CD NOERROR
SECTION QUESTION
cd.test. IN TXT
ENTRY_END
STEP 11 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RD RA CD NOERROR
SECTION QUESTION
cd.test. IN TXT
SECTION ANSWER
cd.test. IN TXT "CD is set"
ENTRY_END
; +cd +cached +rd
STEP 12 QUERY
ENTRY_BEGIN
REPLY RD CD NOERROR
SECTION QUESTION
cd.test. IN TXT
ENTRY_END
STEP 13 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RD RA CD NOERROR
SECTION QUESTION
cd.test. IN TXT
SECTION ANSWER
cd.test. IN TXT "CD is set"
ENTRY_END
; +nodata +rd
STEP 20 QUERY
ENTRY_BEGIN
REPLY RD NOERROR
SECTION QUESTION
nodata.test. IN TXT
SECTION ADDITIONAL
ENTRY_END
STEP 21 CHECK_ANSWER
ENTRY_BEGIN
REPLY QR RD RA NOERROR
MATCH all
SECTION QUESTION
nodata.test. IN TXT
ENTRY_END
; +nxdomain +rd
STEP 30 QUERY
ENTRY_BEGIN
REPLY RD NOERROR
SECTION QUESTION
nxdomain.test. IN TXT
SECTION ADDITIONAL
ENTRY_END
STEP 31 CHECK_ANSWER
ENTRY_BEGIN
REPLY QR RD RA NXDOMAIN
MATCH all
SECTION QUESTION
nxdomain.test. IN TXT
ENTRY_END
; +servfail +do +rd
STEP 40 QUERY
ENTRY_BEGIN
REPLY RD DO NOERROR
SECTION QUESTION
bogus.test. IN TXT
SECTION ADDITIONAL
ENTRY_END
STEP 41 CHECK_ANSWER
ENTRY_BEGIN
REPLY QR RD RA DO SERVFAIL
MATCH all
SECTION QUESTION
bogus.test. IN TXT
ENTRY_END
; no rd
STEP 50 QUERY
ENTRY_BEGIN
REPLY NOERROR
SECTION QUESTION
bogus.test. IN TXT
SECTION ADDITIONAL
ENTRY_END
STEP 51 CHECK_ANSWER
ENTRY_BEGIN
REPLY QR RA SERVFAIL
MATCH all
SECTION QUESTION
bogus.test. IN TXT
ENTRY_END
STEP 100 QUERY
ENTRY_BEGIN
REPLY RD NOERROR
SECTION QUESTION
stats.test. IN TXT
SECTION ADDITIONAL
ENTRY_END
STEP 101 CHECK_ANSWER
ENTRY_BEGIN
REPLY NOERROR
MATCH opcode question additional rcode answer
; AD must not be set in the answer
SECTION QUESTION
stats.test. IN TXT
SECTION ANSWER
stats.test. IN TXT "Ok, trigger query was not intercepted!"
ENTRY_END
SCENARIO_END
|