]>
Commit | Line | Data |
---|---|---|
89c4ed63 A |
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 a query name in the reply is required by resolver | |
11 | ||
12 | ; K.ROOT-SERVERS.NET. | |
13 | RANGE_BEGIN 0 100 | |
14 | ADDRESS 193.0.14.129 | |
15 | ENTRY_BEGIN | |
16 | MATCH opcode qtype qname | |
17 | ADJUST copy_id | |
18 | REPLY QR NOERROR | |
19 | SECTION QUESTION | |
20 | . IN NS | |
21 | SECTION ANSWER | |
22 | . IN NS K.ROOT-SERVERS.NET. | |
23 | SECTION ADDITIONAL | |
24 | K.ROOT-SERVERS.NET. IN A 193.0.14.129 | |
25 | ENTRY_END | |
26 | ||
27 | ENTRY_BEGIN | |
28 | MATCH opcode subdomain | |
29 | ADJUST copy_id copy_query | |
30 | REPLY QR NOERROR | |
31 | SECTION QUESTION | |
32 | com. IN A | |
33 | SECTION AUTHORITY | |
34 | com. IN NS a.gtld-servers.net. | |
35 | SECTION ADDITIONAL | |
36 | a.gtld-servers.net. IN A 192.5.6.30 | |
37 | ENTRY_END | |
38 | RANGE_END | |
39 | ||
40 | ; a.gtld-servers.net. | |
41 | RANGE_BEGIN 0 100 | |
42 | ADDRESS 192.5.6.30 | |
43 | ENTRY_BEGIN | |
44 | MATCH opcode qtype qname | |
45 | ADJUST copy_id | |
46 | REPLY QR NOERROR | |
47 | SECTION QUESTION | |
48 | com. IN NS | |
49 | SECTION ANSWER | |
50 | com. IN NS a.gtld-servers.net. | |
51 | SECTION ADDITIONAL | |
52 | a.gtld-servers.net. IN A 192.5.6.30 | |
53 | ENTRY_END | |
54 | ||
55 | ENTRY_BEGIN | |
56 | MATCH opcode subdomain | |
57 | ADJUST copy_id copy_query | |
58 | REPLY QR NOERROR | |
59 | SECTION QUESTION | |
60 | example.com. IN A | |
61 | SECTION AUTHORITY | |
62 | example.com. IN NS ns.example.com. | |
63 | SECTION ADDITIONAL | |
64 | ns.example.com. IN A 1.2.3.4 | |
65 | ENTRY_END | |
66 | RANGE_END | |
67 | ||
68 | ; ns.example.com. | |
69 | RANGE_BEGIN 0 100 | |
70 | ADDRESS 1.2.3.4 | |
71 | ENTRY_BEGIN | |
72 | MATCH opcode qtype qname | |
73 | ADJUST copy_id | |
74 | REPLY QR NOERROR | |
75 | SECTION QUESTION | |
76 | example.com. IN NS | |
77 | SECTION ANSWER | |
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 | ||
83 | ; always the same reply since we cannot match anything from the qsection. | |
84 | ENTRY_BEGIN | |
85 | MATCH opcode | |
86 | ADJUST copy_id | |
87 | REPLY QR NOERROR | |
88 | SECTION QUESTION | |
89 | ; no query section! | |
90 | ; www.example.com. IN A | |
91 | SECTION ANSWER | |
92 | www.example.com. IN A 10.20.30.40 | |
93 | SECTION AUTHORITY | |
94 | example.com. IN NS ns.example.com. | |
95 | SECTION ADDITIONAL | |
96 | ns.example.com. IN A 1.2.3.4 | |
97 | ENTRY_END | |
98 | RANGE_END | |
99 | ||
100 | STEP 1 QUERY | |
101 | ENTRY_BEGIN | |
102 | REPLY RD | |
103 | SECTION QUESTION | |
104 | www.example.com. IN A | |
105 | ENTRY_END | |
106 | ||
107 | ; recursion happens here. | |
108 | ||
109 | ; the query name is echoed properly to *our* client | |
110 | STEP 10 CHECK_ANSWER | |
111 | ENTRY_BEGIN | |
112 | MATCH all | |
113 | REPLY QR RD RA SERVFAIL | |
114 | SECTION QUESTION | |
115 | www.example.com. IN A | |
116 | ENTRY_END | |
117 | ||
118 | SCENARIO_END |