1 ; config options 2 server: 3 target-fetch-policy: "0 0 0 0 0" 4 qname-minimisation: "no" 5 minimal-responses: no 6 iter-scrub-promiscuous: no 7 8 stub-zone: 9 name: "." 10 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET. 11 CONFIG_END 12 13 SCENARIO_BEGIN Test resolver with parent-child diff for direct impact 14 ; the trouble is resolving this right away. 15 ; otherwise it gets picked out of the cache. 16 ; i.e. on a failed lookup, pickup lame stuff from the cache. 17 ; the nameserver lookup may have failed but produced some (lame) addresses. 18 19 ; K.ROOT-SERVERS.NET. 20 RANGE_BEGIN 0 100 21 ADDRESS 193.0.14.129 22 ENTRY_BEGIN 23 MATCH opcode qtype qname 24 ADJUST copy_id 25 REPLY QR NOERROR 26 SECTION QUESTION 27 . IN NS 28 SECTION ANSWER 29 . IN NS K.ROOT-SERVERS.NET. 30 SECTION ADDITIONAL 31 K.ROOT-SERVERS.NET. IN A 193.0.14.129 32 ENTRY_END 33 34 ENTRY_BEGIN 35 MATCH opcode qtype qname 36 ADJUST copy_id 37 REPLY QR NOERROR 38 SECTION QUESTION 39 www.example.com. IN A 40 SECTION AUTHORITY 41 com. IN NS a.gtld-servers.net. 42 SECTION ADDITIONAL 43 a.gtld-servers.net. IN A 192.5.6.30 44 ENTRY_END 45 46 ENTRY_BEGIN 47 MATCH opcode subdomain 48 ADJUST copy_id copy_query 49 REPLY QR NOERROR 50 SECTION QUESTION 51 org. IN A 52 SECTION AUTHORITY 53 org. IN NS a0.org.afilias-nst.org. 54 SECTION ADDITIONAL 55 a0.org.afilias-nst.org. IN A 199.19.56.1 56 ENTRY_END 57 RANGE_END 58 59 ; a.gtld-servers.net. 60 RANGE_BEGIN 0 100 61 ADDRESS 192.5.6.30 62 ENTRY_BEGIN 63 MATCH opcode qtype qname 64 ADJUST copy_id 65 REPLY QR NOERROR 66 SECTION QUESTION 67 com. IN NS 68 SECTION ANSWER 69 com. IN NS a.gtld-servers.net. 70 SECTION ADDITIONAL 71 a.gtld-servers.net. IN A 192.5.6.30 72 ENTRY_END 73 74 ENTRY_BEGIN 75 MATCH opcode qtype qname 76 ADJUST copy_id 77 REPLY QR NOERROR 78 SECTION QUESTION 79 www.example.com. IN A 80 SECTION AUTHORITY 81 example.com. IN NS ns.example.org. 82 ENTRY_END 83 RANGE_END 84 85 ; a0.org.afilias-nst.org. 86 RANGE_BEGIN 0 100 87 ADDRESS 199.19.56.1 88 ENTRY_BEGIN 89 MATCH opcode qtype qname 90 ADJUST copy_id 91 REPLY QR NOERROR 92 SECTION QUESTION 93 org. IN NS 94 SECTION ANSWER 95 org. IN NS a0.org.afilias-nst.org. 96 SECTION ADDITIONAL 97 a0.org.afilias-nst.org. IN A 199.19.56.1 98 ENTRY_END 99 100 ENTRY_BEGIN 101 MATCH opcode subdomain 102 ADJUST copy_id copy_query 103 REPLY QR NOERROR 104 SECTION QUESTION 105 example.org. IN A 106 SECTION AUTHORITY 107 example.org. IN NS ns.example.org. 108 SECTION ADDITIONAL 109 ; parent-side working address. 110 ns.example.org. IN A 1.2.3.4 111 ENTRY_END 112 RANGE_END 113 114 ; ns.example.org. 115 RANGE_BEGIN 0 100 116 ADDRESS 1.2.3.4 117 ENTRY_BEGIN 118 MATCH opcode qtype qname 119 ADJUST copy_id 120 REPLY QR NOERROR 121 SECTION QUESTION 122 example.com. IN NS 123 SECTION ANSWER 124 example.com. IN NS ns.example.org. 125 ENTRY_END 126 127 ENTRY_BEGIN 128 MATCH opcode qtype qname 129 ADJUST copy_id 130 REPLY QR NOERROR 131 SECTION QUESTION 132 example.org. IN NS 133 SECTION ANSWER 134 example.org. IN NS ns.example.org. 135 ENTRY_END 136 137 ENTRY_BEGIN 138 MATCH opcode qtype qname 139 ADJUST copy_id 140 REPLY QR AA RA NOERROR 141 SECTION QUESTION 142 www.example.com. IN A 143 SECTION ANSWER 144 www.example.com. IN A 10.20.30.40 145 SECTION AUTHORITY 146 example.com. IN NS ns.example.org. 147 ENTRY_END 148 149 ENTRY_BEGIN 150 MATCH opcode qtype qname 151 ADJUST copy_id 152 REPLY QR AA RA NOERROR 153 SECTION QUESTION 154 mail.example.com. IN A 155 SECTION ANSWER 156 mail.example.com. IN A 10.20.30.50 157 SECTION AUTHORITY 158 example.com. IN NS ns.example.org. 159 ENTRY_END 160 161 ENTRY_BEGIN 162 MATCH opcode qtype qname 163 ADJUST copy_id 164 REPLY QR RA NOERROR 165 SECTION QUESTION 166 ns.example.org. IN A 167 SECTION ANSWER 168 ; correct answer: ns.example.org. IN A 1.2.3.4 169 SECTION AUTHORITY 170 ns.example.org. IN NS 1.2.3.4.example.org. 171 ENTRY_END 172 173 ENTRY_BEGIN 174 MATCH opcode qtype qname 175 ADJUST copy_id 176 REPLY QR RA NOERROR 177 SECTION QUESTION 178 ns.example.org. IN AAAA 179 SECTION ANSWER 180 SECTION AUTHORITY 181 ns.example.org. IN NS 1.2.3.4.example.org. 182 ENTRY_END 183 184 ENTRY_BEGIN 185 MATCH opcode qtype qname 186 ADJUST copy_id 187 REPLY QR AA RA NXDOMAIN 188 SECTION QUESTION 189 1.2.3.4.example.org. IN A 190 SECTION ANSWER 191 SECTION AUTHORITY 192 example.org. IN SOA ns.example.org. root.example.org. 2009111400 14400 3600 1209600 86400 193 ENTRY_END 194 195 ENTRY_BEGIN 196 MATCH opcode qtype qname 197 ADJUST copy_id 198 REPLY QR AA RA NXDOMAIN 199 SECTION QUESTION 200 1.2.3.4.example.org. IN AAAA 201 SECTION ANSWER 202 SECTION AUTHORITY 203 example.org. IN SOA ns.example.org. root.example.org. 2009111400 14400 3600 1209600 86400 204 ENTRY_END 205 206 RANGE_END 207 208 STEP 1 QUERY 209 ENTRY_BEGIN 210 REPLY RD 211 SECTION QUESTION 212 www.example.com. IN A 213 ENTRY_END 214 215 ; recursion happens here. 216 STEP 10 CHECK_ANSWER 217 ENTRY_BEGIN 218 MATCH all 219 REPLY QR RD RA NOERROR 220 SECTION QUESTION 221 www.example.com. IN A 222 SECTION ANSWER 223 www.example.com. IN A 10.20.30.40 224 SECTION AUTHORITY 225 example.com. IN NS ns.example.org. 226 ENTRY_END 227 228 ; perhaps some messages are still pending - allow those to resolve. 229 STEP 20 QUERY 230 ENTRY_BEGIN 231 REPLY RD 232 SECTION QUESTION 233 mail.example.com. IN A 234 ENTRY_END 235 236 ; recursion happens here. 237 STEP 30 CHECK_ANSWER 238 ENTRY_BEGIN 239 MATCH all 240 REPLY QR RD RA NOERROR 241 SECTION QUESTION 242 mail.example.com. IN A 243 SECTION ANSWER 244 mail.example.com. IN A 10.20.30.50 245 SECTION AUTHORITY 246 example.com. IN NS ns.example.org. 247 ENTRY_END 248 249 SCENARIO_END 250