]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - testdata/iter_reclame_one.rpl
import unbound 1.5.7
[FreeBSD/FreeBSD.git] / testdata / iter_reclame_one.rpl
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 CONFIG_END
9
10 SCENARIO_BEGIN Test iterative resolve with a recursion lame server.
11 ; The scenario has a domain with two servers, one is lame the other doesn't
12 ; so depending on the randomly chosen server that goes first, it may
13 ; select the nonlame or the lame server first.
14
15 ; K.ROOT-SERVERS.NET.
16 RANGE_BEGIN 0 100
17         ADDRESS 193.0.14.129 
18 ENTRY_BEGIN
19 MATCH opcode qtype qname
20 ADJUST copy_id
21 REPLY QR NOERROR
22 SECTION QUESTION
23 . IN NS
24 SECTION ANSWER
25 . IN NS K.ROOT-SERVERS.NET.
26 SECTION ADDITIONAL
27 K.ROOT-SERVERS.NET.     IN      A       193.0.14.129
28 ENTRY_END
29
30 ENTRY_BEGIN
31 MATCH opcode qtype qname
32 ADJUST copy_id
33 REPLY QR NOERROR
34 SECTION QUESTION
35 www.example.com. IN A
36 SECTION AUTHORITY
37 com.    IN NS   a.gtld-servers.net.
38 SECTION ADDITIONAL
39 a.gtld-servers.net.     IN      A       192.5.6.30
40 ENTRY_END
41 RANGE_END
42
43 ; a.gtld-servers.net.
44 RANGE_BEGIN 0 100
45         ADDRESS 192.5.6.30
46 ENTRY_BEGIN
47 MATCH opcode qtype qname
48 ADJUST copy_id
49 REPLY QR NOERROR
50 SECTION QUESTION
51 com. IN NS
52 SECTION ANSWER
53 com.    IN NS   a.gtld-servers.net.
54 SECTION ADDITIONAL
55 a.gtld-servers.net.     IN      A       192.5.6.30
56 ENTRY_END
57
58 ENTRY_BEGIN
59 MATCH opcode qtype qname
60 ADJUST copy_id
61 REPLY QR NOERROR
62 SECTION QUESTION
63 www.example.com. IN A
64 SECTION AUTHORITY
65 example.com.    IN NS   ns.example.com.
66 example.com.    IN NS   lame.example.com.
67 SECTION ADDITIONAL
68 ns.example.com.         IN      A       1.2.3.4
69 lame.example.com.               IN      A       1.2.3.5
70 ENTRY_END
71 RANGE_END
72
73 ; ns.example.com.
74 RANGE_BEGIN 0 100
75         ADDRESS 1.2.3.4
76 ENTRY_BEGIN
77 MATCH opcode qtype qname
78 ADJUST copy_id
79 REPLY QR AA NOERROR
80 SECTION QUESTION
81 example.com. IN NS
82 SECTION ANSWER
83 example.com.    IN NS   ns.example.com.
84 example.com.    IN NS   lame.example.com.
85 SECTION ADDITIONAL
86 ns.example.com.         IN      A       1.2.3.4
87 lame.example.com.               IN      A       1.2.3.5
88 ENTRY_END
89
90 ENTRY_BEGIN
91 MATCH opcode qtype qname
92 ADJUST copy_id
93 REPLY QR AA NOERROR
94 SECTION QUESTION
95 www.example.com. IN A
96 SECTION ANSWER
97 www.example.com. IN A   10.20.30.40
98 SECTION AUTHORITY
99 example.com.    IN NS   ns.example.com.
100 example.com.    IN NS   lame.example.com.
101 SECTION ADDITIONAL
102 ns.example.com.         IN      A       1.2.3.4
103 lame.example.com.               IN      A       1.2.3.5
104 ENTRY_END
105 RANGE_END
106
107 ; lame.example.com.
108 RANGE_BEGIN 0 100
109         ADDRESS 1.2.3.5
110 ENTRY_BEGIN
111 MATCH opcode qtype qname
112 ADJUST copy_id
113 REPLY QR RA NOERROR
114 SECTION QUESTION
115 example.com. IN NS
116 SECTION ANSWER
117 example.com.    IN NS   ns.example.com.
118 example.com.    IN NS   lame.example.com.
119 SECTION ADDITIONAL
120 ns.example.com.         IN      A       1.2.3.4
121 lame.example.com.               IN      A       1.2.3.5
122 ENTRY_END
123
124 ENTRY_BEGIN
125 MATCH opcode qtype qname
126 ADJUST copy_id
127 REPLY QR RA NOERROR
128 SECTION QUESTION
129 www.example.com. IN A
130 SECTION ANSWER
131 www.example.com. IN A   10.20.30.40
132 SECTION AUTHORITY
133 example.com.    IN NS   ns.example.com.
134 example.com.    IN NS   lame.example.com.
135 SECTION ADDITIONAL
136 ns.example.com.         IN      A       1.2.3.4
137 lame.example.com.               IN      A       1.2.3.5
138 ENTRY_END
139 RANGE_END
140
141 STEP 1 QUERY
142 ENTRY_BEGIN
143 REPLY RD
144 SECTION QUESTION
145 www.example.com. IN A
146 ENTRY_END
147
148 ; recursion happens here.
149 STEP 10 CHECK_ANSWER
150 ENTRY_BEGIN
151 MATCH all
152 REPLY QR RD RA NOERROR
153 SECTION QUESTION
154 www.example.com. IN A
155 SECTION ANSWER
156 www.example.com. IN A   10.20.30.40
157 SECTION AUTHORITY
158 example.com.    IN NS   ns.example.com.
159 example.com.    IN NS   lame.example.com.
160 SECTION ADDITIONAL
161 ns.example.com.         IN      A       1.2.3.4
162 lame.example.com.               IN      A       1.2.3.5
163 ENTRY_END
164
165 SCENARIO_END