]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testdata/iter_lamescrub.rpl
5fe6b8af3d1c8b1e69dea9d8db47ef6a7e7b59a8
[apple/network_cmds.git] / unbound / testdata / iter_lamescrub.rpl
1 ; config options
2 stub-zone:
3 name: "."
4 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
5 CONFIG_END
6
7 SCENARIO_BEGIN Test lameness detection after scrubber.
8
9 ; K.ROOT-SERVERS.NET.
10 RANGE_BEGIN 0 100
11 ADDRESS 193.0.14.129
12 ENTRY_BEGIN
13 MATCH opcode qtype qname
14 ADJUST copy_id
15 REPLY QR NOERROR
16 SECTION QUESTION
17 . IN NS
18 SECTION ANSWER
19 . IN NS K.ROOT-SERVERS.NET.
20 SECTION ADDITIONAL
21 K.ROOT-SERVERS.NET. IN A 193.0.14.129
22 ENTRY_END
23
24 ENTRY_BEGIN
25 MATCH opcode subdomain
26 ADJUST copy_id copy_query
27 REPLY QR NOERROR
28 SECTION QUESTION
29 com. IN A
30 SECTION AUTHORITY
31 com. IN NS a.gtld-servers.net.
32 SECTION ADDITIONAL
33 a.gtld-servers.net. IN A 192.5.6.30
34 ENTRY_END
35
36 ENTRY_BEGIN
37 MATCH opcode qtype qname
38 ADJUST copy_id
39 REPLY QR NOERROR
40 SECTION QUESTION
41 a.gtld-servers.net. IN AAAA
42 SECTION ANSWER
43 ENTRY_END
44 ENTRY_BEGIN
45
46 MATCH opcode qtype qname
47 ADJUST copy_id
48 REPLY QR NOERROR
49 SECTION QUESTION
50 a.gtld-servers.net. IN A
51 SECTION ANSWER
52 a.gtld-servers.net. IN A 192.5.6.30
53 ENTRY_END
54 RANGE_END
55
56 ; a.gtld-servers.net.
57 RANGE_BEGIN 0 100
58 ADDRESS 192.5.6.30
59 ENTRY_BEGIN
60 MATCH opcode qtype qname
61 ADJUST copy_id
62 REPLY QR NOERROR
63 SECTION QUESTION
64 com. IN NS
65 SECTION ANSWER
66 com. IN NS a.gtld-servers.net.
67 SECTION ADDITIONAL
68 a.gtld-servers.net. IN A 192.5.6.30
69 ENTRY_END
70
71 ENTRY_BEGIN
72 MATCH opcode subdomain
73 ADJUST copy_id
74 REPLY QR NOERROR
75 SECTION QUESTION
76 example.com. IN A
77 SECTION AUTHORITY
78 example.com. IN NS ns.example.com.
79 SECTION ADDITIONAL
80 ns.example.com. IN A 1.2.3.4
81 ENTRY_END
82 RANGE_END
83
84 ; ns.example.com.
85 ; This server is Lame!
86 RANGE_BEGIN 0 100
87 ADDRESS 1.2.3.4
88 ENTRY_BEGIN
89 MATCH opcode
90 ADJUST copy_id copy_query
91 REPLY QR RD NOERROR
92 SECTION QUESTION
93 www.example.com. IN A
94 SECTION ANSWER
95 SECTION AUTHORITY
96 com. 155182 IN NS a.gtld-servers.net.
97 com. 155182 IN NS b.gtld-servers.net.
98 com. 155182 IN NS c.gtld-servers.net.
99 com. 155182 IN NS d.gtld-servers.net.
100 com. 155182 IN NS e.gtld-servers.net.
101 com. 155182 IN NS f.gtld-servers.net.
102 com. 155182 IN NS g.gtld-servers.net.
103 com. 155182 IN NS h.gtld-servers.net.
104 com. 155182 IN NS i.gtld-servers.net.
105 com. 155182 IN NS j.gtld-servers.net.
106 com. 155182 IN NS k.gtld-servers.net.
107 com. 155182 IN NS l.gtld-servers.net.
108 com. 155182 IN NS m.gtld-servers.net.
109 SECTION ADDITIONAL
110 a.gtld-servers.net. 155182 IN A 192.5.6.30
111 b.gtld-servers.net. 155182 IN A 192.33.14.30
112 c.gtld-servers.net. 155182 IN A 192.26.92.30
113 d.gtld-servers.net. 155182 IN A 192.31.80.30
114 e.gtld-servers.net. 155182 IN A 192.12.94.30
115 f.gtld-servers.net. 155182 IN A 192.35.51.30
116 g.gtld-servers.net. 155182 IN A 192.42.93.30
117 h.gtld-servers.net. 155182 IN A 192.54.112.30
118 i.gtld-servers.net. 155182 IN A 192.43.172.30
119 j.gtld-servers.net. 155182 IN A 192.48.79.30
120 k.gtld-servers.net. 155182 IN A 192.52.178.30
121 l.gtld-servers.net. 155182 IN A 192.41.162.30
122 m.gtld-servers.net. 155182 IN A 192.55.83.30
123 a.gtld-servers.net. 155182 IN AAAA 2001:503:a83e::2:30
124 ENTRY_END
125 RANGE_END
126
127 STEP 1 QUERY
128 ENTRY_BEGIN
129 REPLY RD
130 SECTION QUESTION
131 www.example.com. IN A
132 ENTRY_END
133
134 ; recursin happens here
135
136 ; check that the answer is a failure (lame server)
137 ; and not a nodata-noerror message (false answer classification).
138 STEP 10 CHECK_ANSWER
139 ENTRY_BEGIN
140 MATCH all
141 REPLY QR RD RA SERVFAIL
142 SECTION QUESTION
143 www.example.com. IN A
144 SECTION ANSWER
145 SECTION AUTHORITY
146 SECTION ADDITIONAL
147 ENTRY_END
148
149 SCENARIO_END