]> git.saurik.com Git - apple/network_cmds.git/blame - unbound/testdata/iter_reclame_two.rpl
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / testdata / iter_reclame_two.rpl
CommitLineData
89c4ed63
A
1; config options
2server:
3 target-fetch-policy: "0 0 0 0 0"
4
5stub-zone:
6 name: "."
7 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
8CONFIG_END
9
10SCENARIO_BEGIN Test iterative resolve with two recursion lame servers.
11; both servers are recursion lame. The iterator tries both servers,
12; but they are both lame. Then it concludes that it only has reclame.
13
14; K.ROOT-SERVERS.NET.
15RANGE_BEGIN 0 100
16 ADDRESS 193.0.14.129
17ENTRY_BEGIN
18MATCH opcode qtype qname
19ADJUST copy_id
20REPLY QR NOERROR
21SECTION QUESTION
22. IN NS
23SECTION ANSWER
24. IN NS K.ROOT-SERVERS.NET.
25SECTION ADDITIONAL
26K.ROOT-SERVERS.NET. IN A 193.0.14.129
27ENTRY_END
28
29ENTRY_BEGIN
30MATCH opcode subdomain
31ADJUST copy_id copy_query
32REPLY QR NOERROR
33SECTION QUESTION
34com. IN A
35SECTION AUTHORITY
36com. IN NS a.gtld-servers.net.
37SECTION ADDITIONAL
38a.gtld-servers.net. IN A 192.5.6.30
39ENTRY_END
40RANGE_END
41
42; a.gtld-servers.net.
43RANGE_BEGIN 0 100
44 ADDRESS 192.5.6.30
45ENTRY_BEGIN
46MATCH opcode qtype qname
47ADJUST copy_id
48REPLY QR NOERROR
49SECTION QUESTION
50com. IN NS
51SECTION ANSWER
52com. IN NS a.gtld-servers.net.
53SECTION ADDITIONAL
54a.gtld-servers.net. IN A 192.5.6.30
55ENTRY_END
56
57ENTRY_BEGIN
58MATCH opcode subdomain
59ADJUST copy_id copy_query
60REPLY QR NOERROR
61SECTION QUESTION
62example.com. IN A
63SECTION AUTHORITY
64example.com. IN NS ns.example.com.
65example.com. IN NS lame.example.com.
66SECTION ADDITIONAL
67ns.example.com. IN A 1.2.3.4
68lame.example.com. IN A 1.2.3.5
69ENTRY_END
70RANGE_END
71
72; ns.example.com.
73RANGE_BEGIN 0 100
74 ADDRESS 1.2.3.4
75ENTRY_BEGIN
76MATCH opcode qtype qname
77ADJUST copy_id
78REPLY QR RA NOERROR
79SECTION QUESTION
80example.com. IN NS
81SECTION ANSWER
82example.com. IN NS ns.example.com.
83example.com. IN NS lame.example.com.
84SECTION ADDITIONAL
85ns.example.com. IN A 1.2.3.4
86lame.example.com. IN A 1.2.3.5
87ENTRY_END
88
89ENTRY_BEGIN
90MATCH opcode qtype qname
91ADJUST copy_id
92REPLY QR RA NOERROR
93SECTION QUESTION
94ns.example.com. IN AAAA
95SECTION ANSWER
96ENTRY_END
97
98ENTRY_BEGIN
99MATCH opcode qtype qname
100ADJUST copy_id
101REPLY QR RA NOERROR
102SECTION QUESTION
103lame.example.com. IN AAAA
104SECTION ANSWER
105ENTRY_END
106
107ENTRY_BEGIN
108MATCH opcode qtype qname
109ADJUST copy_id
110REPLY QR RA NOERROR
111SECTION QUESTION
112www.example.com. IN A
113SECTION ANSWER
114www.example.com. IN A 10.20.30.40
115SECTION AUTHORITY
116example.com. IN NS ns.example.com.
117example.com. IN NS lame.example.com.
118SECTION ADDITIONAL
119ns.example.com. IN A 1.2.3.4
120lame.example.com. IN A 1.2.3.5
121ENTRY_END
122RANGE_END
123
124; lame.example.com.
125RANGE_BEGIN 0 100
126 ADDRESS 1.2.3.5
127ENTRY_BEGIN
128MATCH opcode qtype qname
129ADJUST copy_id
130REPLY QR RA NOERROR
131SECTION QUESTION
132example.com. IN NS
133SECTION ANSWER
134example.com. IN NS ns.example.com.
135example.com. IN NS lame.example.com.
136SECTION ADDITIONAL
137ns.example.com. IN A 1.2.3.4
138lame.example.com. IN A 1.2.3.5
139ENTRY_END
140
141ENTRY_BEGIN
142MATCH opcode
143ADJUST copy_id copy_query
144REPLY QR RA NOERROR
145SECTION QUESTION
146www.example.com. IN A
147SECTION ANSWER
148www.example.com. IN A 10.20.30.40
149SECTION AUTHORITY
150example.com. IN NS ns.example.com.
151example.com. IN NS lame.example.com.
152SECTION ADDITIONAL
153ns.example.com. IN A 1.2.3.4
154lame.example.com. IN A 1.2.3.5
155ENTRY_END
156RANGE_END
157
158STEP 1 QUERY
159ENTRY_BEGIN
160REPLY RD
161SECTION QUESTION
162www.example.com. IN A
163ENTRY_END
164
165; recursion happens here.
166STEP 10 CHECK_ANSWER
167ENTRY_BEGIN
168MATCH all
169REPLY QR RD RA NOERROR
170SECTION QUESTION
171www.example.com. IN A
172SECTION ANSWER
173www.example.com. IN A 10.20.30.40
174SECTION AUTHORITY
175example.com. IN NS ns.example.com.
176example.com. IN NS lame.example.com.
177SECTION ADDITIONAL
178ns.example.com. IN A 1.2.3.4
179lame.example.com. IN A 1.2.3.5
180ENTRY_END
181
182SCENARIO_END