iter_pcdirect.rpl 5.67 KB
Newer Older
Marek Vavruša's avatar
Marek Vavruša committed
1
; config options
2 3
;	target-fetch-policy: "0 0 0 0 0"
;	name: "."
4
	stub-addr: 193.0.14.129 	# K.ROOT-SERVERS.NET.
Marek Vavruša's avatar
Marek Vavruša committed
5 6 7 8 9 10 11 12 13 14
CONFIG_END

SCENARIO_BEGIN Test resolver with parent-child diff for direct impact
; the trouble is resolving this right away.
; otherwise it gets picked out of the cache.
; i.e. on a failed lookup, pickup lame stuff from the cache.
; the nameserver lookup may have failed but produced some (lame) addresses.

; K.ROOT-SERVERS.NET.
RANGE_BEGIN 0 100
15
	ADDRESS 193.0.14.129 
Marek Vavruša's avatar
Marek Vavruša committed
16 17 18 19 20 21 22 23 24
ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
. IN NS
SECTION ANSWER
. IN NS	K.ROOT-SERVERS.NET.
SECTION ADDITIONAL
25
K.ROOT-SERVERS.NET.	IN	A	193.0.14.129
Marek Vavruša's avatar
Marek Vavruša committed
26 27 28
ENTRY_END

ENTRY_BEGIN
29 30
MATCH opcode subdomain
ADJUST copy_id copy_query
Marek Vavruša's avatar
Marek Vavruša committed
31 32
REPLY QR NOERROR
SECTION QUESTION
33
com. IN A
Marek Vavruša's avatar
Marek Vavruša committed
34 35 36
SECTION AUTHORITY
com.	IN NS	a.gtld-servers.net.
SECTION ADDITIONAL
37
a.gtld-servers.net.	IN 	A	192.5.6.30
Marek Vavruša's avatar
Marek Vavruša committed
38 39
ENTRY_END

40
; net.
Marek Vavruša's avatar
Marek Vavruša committed
41
ENTRY_BEGIN
42
MATCH opcode qname
Marek Vavruša's avatar
Marek Vavruša committed
43 44 45
ADJUST copy_id copy_query
REPLY QR NOERROR
SECTION QUESTION
46
net. IN NS
Marek Vavruša's avatar
Marek Vavruša committed
47
SECTION AUTHORITY
48 49 50 51 52 53 54 55 56 57 58 59
.	IN SOA	. . 0 0 0 0 0
ENTRY_END

; root-servers.net.
ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
root-servers.net. IN NS
SECTION ANSWER
root-servers.net.	IN NS	k.root-servers.net.
Marek Vavruša's avatar
Marek Vavruša committed
60
SECTION ADDITIONAL
61 62 63 64 65 66 67 68 69 70 71
k.root-servers.net.	IN 	A	193.0.14.129
ENTRY_END

ENTRY_BEGIN
MATCH opcode qname
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
root-servers.net. IN A
SECTION AUTHORITY
root-servers.net.	IN	SOA	. . 0 0 0 0 0
Marek Vavruša's avatar
Marek Vavruša committed
72 73 74 75 76 77 78
ENTRY_END

ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
79
k.root-servers.net.	IN 	A
Marek Vavruša's avatar
Marek Vavruša committed
80
SECTION ANSWER
81
k.root-servers.net.	IN 	A	193.0.14.129
Marek Vavruša's avatar
Marek Vavruša committed
82 83 84 85 86 87 88 89
SECTION ADDITIONAL
ENTRY_END

ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
90
k.root-servers.net.	IN 	AAAA
Marek Vavruša's avatar
Marek Vavruša committed
91
SECTION AUTHORITY
92
root-servers.net.	IN	SOA	. . 0 0 0 0 0
Marek Vavruša's avatar
Marek Vavruša committed
93 94
ENTRY_END

95
; gtld-servers.net.
Marek Vavruša's avatar
Marek Vavruša committed
96 97 98 99 100
ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
101
gtld-servers.net. IN NS
Marek Vavruša's avatar
Marek Vavruša committed
102
SECTION ANSWER
103
gtld-servers.net.	IN NS	a.gtld-servers.net.
Marek Vavruša's avatar
Marek Vavruša committed
104
SECTION ADDITIONAL
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
a.gtld-servers.net.	IN 	A	192.5.6.30
ENTRY_END

ENTRY_BEGIN
MATCH opcode qname
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
gtld-servers.net. IN A
SECTION AUTHORITY
gtld-servers.net.	IN	SOA	. . 0 0 0 0 0
ENTRY_END

ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
a.gtld-servers.net.	IN 	A
SECTION ANSWER
a.gtld-servers.net.	IN 	A	192.5.6.30
SECTION ADDITIONAL
ENTRY_END

ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
a.gtld-servers.net.	IN 	AAAA
SECTION AUTHORITY
gtld-servers.net.	IN	SOA	. . 0 0 0 0 0
Marek Vavruša's avatar
Marek Vavruša committed
137 138 139 140 141 142 143
ENTRY_END

ENTRY_BEGIN
MATCH opcode subdomain
ADJUST copy_id copy_query
REPLY QR NOERROR
SECTION QUESTION
144
example.net. IN A
Marek Vavruša's avatar
Marek Vavruša committed
145
SECTION AUTHORITY
146
example.net.	IN NS	ns.example.net.
Marek Vavruša's avatar
Marek Vavruša committed
147 148
SECTION ADDITIONAL
; parent-side working address.
149
ns.example.net. IN A 1.2.3.4
Marek Vavruša's avatar
Marek Vavruša committed
150
ENTRY_END
151

Marek Vavruša's avatar
Marek Vavruša committed
152 153
RANGE_END

154
; a.gtld-servers.net.
Marek Vavruša's avatar
Marek Vavruša committed
155
RANGE_BEGIN 0 100
156
	ADDRESS 192.5.6.30
Marek Vavruša's avatar
Marek Vavruša committed
157 158 159 160 161
ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
162
com. IN NS
Marek Vavruša's avatar
Marek Vavruša committed
163
SECTION ANSWER
164 165 166
com.	IN NS	a.gtld-servers.net.
SECTION ADDITIONAL
a.gtld-servers.net.	IN 	A	192.5.6.30
Marek Vavruša's avatar
Marek Vavruša committed
167 168
ENTRY_END

169 170 171 172 173 174 175 176 177 178 179 180 181 182
ENTRY_BEGIN
MATCH opcode subdomain
ADJUST copy_id copy_query
REPLY QR NOERROR
SECTION QUESTION
example.com. IN A
SECTION AUTHORITY
example.com.	IN NS	ns.example.net.
ENTRY_END
RANGE_END

; a0.org.afilias-nst.org.
RANGE_BEGIN 0 100
	ADDRESS 199.19.56.1
Marek Vavruša's avatar
Marek Vavruša committed
183 184 185 186 187
ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
REPLY QR NOERROR
SECTION QUESTION
188
org. IN NS
Marek Vavruša's avatar
Marek Vavruša committed
189
SECTION ANSWER
190 191 192
org. IN NS a0.org.afilias-nst.org.
SECTION ADDITIONAL
a0.org.afilias-nst.org. IN A 199.19.56.1
Marek Vavruša's avatar
Marek Vavruša committed
193 194
ENTRY_END

195 196 197 198 199 200

RANGE_END

; ns.example.net.
RANGE_BEGIN 0 100
	ADDRESS 1.2.3.4
Marek Vavruša's avatar
Marek Vavruša committed
201 202 203
ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
204
REPLY QR NOERROR
Marek Vavruša's avatar
Marek Vavruša committed
205
SECTION QUESTION
206
example.com. IN NS
Marek Vavruša's avatar
Marek Vavruša committed
207
SECTION ANSWER
208
example.com.	IN NS	ns.example.net.
Marek Vavruša's avatar
Marek Vavruša committed
209 210 211 212 213
ENTRY_END

ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
214
REPLY QR NOERROR
Marek Vavruša's avatar
Marek Vavruša committed
215
SECTION QUESTION
216
example.net. IN NS
Marek Vavruša's avatar
Marek Vavruša committed
217
SECTION ANSWER
218
example.net.	IN NS	ns.example.net.
Marek Vavruša's avatar
Marek Vavruša committed
219 220 221 222 223
ENTRY_END

ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
224
REPLY QR AA RA NOERROR
Marek Vavruša's avatar
Marek Vavruša committed
225
SECTION QUESTION
226
www.example.com. IN A
Marek Vavruša's avatar
Marek Vavruša committed
227
SECTION ANSWER
228
www.example.com. IN A	10.20.30.40
Marek Vavruša's avatar
Marek Vavruša committed
229
SECTION AUTHORITY
230
example.com.	IN NS	ns.example.net.
Marek Vavruša's avatar
Marek Vavruša committed
231 232 233 234 235
ENTRY_END

ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
236
REPLY QR AA RA NOERROR
Marek Vavruša's avatar
Marek Vavruša committed
237
SECTION QUESTION
238
mail.example.com. IN A
Marek Vavruša's avatar
Marek Vavruša committed
239
SECTION ANSWER
240
mail.example.com. IN A	10.20.30.50
Marek Vavruša's avatar
Marek Vavruša committed
241
SECTION AUTHORITY
242
example.com.	IN NS	ns.example.net.
Marek Vavruša's avatar
Marek Vavruša committed
243 244 245
ENTRY_END

ENTRY_BEGIN
246 247 248
MATCH opcode qname
ADJUST copy_id copy_query
REPLY QR RA NOERROR
Marek Vavruša's avatar
Marek Vavruša committed
249
SECTION QUESTION
250
ns.example.net. IN A
Marek Vavruša's avatar
Marek Vavruša committed
251
SECTION ANSWER
252
; correct answer: ns.example.net. IN A	1.2.3.4
Marek Vavruša's avatar
Marek Vavruša committed
253
SECTION AUTHORITY
254
ns.example.net. IN NS 1.2.3.4.example.net.
Marek Vavruša's avatar
Marek Vavruša committed
255 256 257
ENTRY_END

ENTRY_BEGIN
258 259
MATCH opcode subdomain
ADJUST copy_id copy_query
Marek Vavruša's avatar
Marek Vavruša committed
260 261
REPLY QR AA RA NXDOMAIN
SECTION QUESTION
262
4.example.net. IN A
Marek Vavruša's avatar
Marek Vavruša committed
263 264
SECTION ANSWER
SECTION AUTHORITY
265
example.net. IN SOA ns.example.net. root.example.net. 2009111400 14400 3600 1209600 86400
Marek Vavruša's avatar
Marek Vavruša committed
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
ENTRY_END

RANGE_END

STEP 1 QUERY
ENTRY_BEGIN
REPLY RD
SECTION QUESTION
www.example.com. IN A
ENTRY_END

; recursion happens here.
STEP 10 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RD RA NOERROR
SECTION QUESTION
www.example.com. IN A
SECTION ANSWER
285
www.example.com. IN A	10.20.30.40
Marek Vavruša's avatar
Marek Vavruša committed
286
;SECTION AUTHORITY
287
;example.com.	IN NS	ns.example.net.
Marek Vavruša's avatar
Marek Vavruša committed
288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305
ENTRY_END

; perhaps some messages are still pending - allow those to resolve.
STEP 20 QUERY
ENTRY_BEGIN
REPLY RD
SECTION QUESTION
mail.example.com. IN A
ENTRY_END

; recursion happens here.
STEP 30 CHECK_ANSWER
ENTRY_BEGIN
MATCH all
REPLY QR RD RA NOERROR
SECTION QUESTION
mail.example.com. IN A
SECTION ANSWER
306
mail.example.com. IN A	10.20.30.50
Marek Vavruša's avatar
Marek Vavruša committed
307
;SECTION AUTHORITY
308
;example.com.	IN NS	ns.example.net.
Marek Vavruša's avatar
Marek Vavruša committed
309 310 311
ENTRY_END

SCENARIO_END