1; config options 2server: 3 target-fetch-policy: "0 0 0 0 0" 4 minimal-responses: no 5 rrset-roundrobin: no 6 7stub-zone: 8 name: "." 9 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET. 10CONFIG_END 11 12SCENARIO_BEGIN Test resolution with parent child differ with pc child name. 13; child has extra name and it has to be used once the other one stops working. 14; the extra child name has parent-child trouble and needs its parent version. 15 16; K.ROOT-SERVERS.NET. 17RANGE_BEGIN 0 100 18 ADDRESS 193.0.14.129 19ENTRY_BEGIN 20MATCH opcode qtype qname 21ADJUST copy_id 22REPLY QR NOERROR 23SECTION QUESTION 24. IN NS 25SECTION ANSWER 26. IN NS K.ROOT-SERVERS.NET. 27SECTION ADDITIONAL 28K.ROOT-SERVERS.NET. IN A 193.0.14.129 29ENTRY_END 30 31ENTRY_BEGIN 32MATCH opcode subdomain 33ADJUST copy_id copy_query 34REPLY QR NOERROR 35SECTION QUESTION 36com. IN NS 37SECTION AUTHORITY 38com. IN NS a.gtld-servers.net. 39SECTION ADDITIONAL 40a.gtld-servers.net. IN A 192.5.6.30 41ENTRY_END 42 43ENTRY_BEGIN 44MATCH opcode subdomain 45ADJUST copy_id copy_query 46REPLY QR NOERROR 47SECTION QUESTION 48net. IN NS 49SECTION AUTHORITY 50net. IN NS e.gtld-servers.net. 51SECTION ADDITIONAL 52e.gtld-servers.net. IN A 192.12.94.30 53ENTRY_END 54 55RANGE_END 56 57; a.gtld-servers.net. 58RANGE_BEGIN 0 100 59 ADDRESS 192.5.6.30 60ENTRY_BEGIN 61MATCH opcode qtype qname 62ADJUST copy_id 63REPLY QR NOERROR 64SECTION QUESTION 65com. IN NS 66SECTION ANSWER 67com. IN NS a.gtld-servers.net. 68SECTION ADDITIONAL 69a.gtld-servers.net. IN A 192.5.6.30 70ENTRY_END 71 72ENTRY_BEGIN 73MATCH opcode subdomain 74ADJUST copy_id copy_query 75REPLY QR NOERROR 76SECTION QUESTION 77example.com. IN NS 78SECTION AUTHORITY 79example.com. IN NS ns.example.com. 80SECTION ADDITIONAL 81ns.example.com. IN A 1.2.3.44 82ENTRY_END 83RANGE_END 84 85; e.gtld-servers.net. 86RANGE_BEGIN 0 100 87 ADDRESS 192.12.94.30 88ENTRY_BEGIN 89MATCH opcode qtype qname 90ADJUST copy_id 91REPLY QR NOERROR 92SECTION QUESTION 93net. IN NS 94SECTION ANSWER 95net. IN NS e.gtld-servers.net. 96SECTION ADDITIONAL 97e.gtld-servers.net. IN A 192.12.94.30 98ENTRY_END 99 100ENTRY_BEGIN 101MATCH opcode subdomain 102ADJUST copy_id copy_query 103REPLY QR NOERROR 104SECTION QUESTION 105example.net. IN NS 106SECTION AUTHORITY 107example.net. IN NS ns.example.net. 108SECTION ADDITIONAL 109ns.example.net. IN A 1.2.3.55 110ENTRY_END 111 112RANGE_END 113 114; the working version, until time 49. 115RANGE_BEGIN 0 49 116 ADDRESS 1.2.3.44 117ENTRY_BEGIN 118MATCH opcode qtype qname 119ADJUST copy_id 120REPLY AA QR NOERROR 121SECTION QUESTION 122example.net. IN NS 123SECTION ANSWER 124example.net. IN NS ns.example.net. 125SECTION ADDITIONAL 126ns.example.net. IN A 1.2.3.44 127ENTRY_END 128 129ENTRY_BEGIN 130MATCH opcode qtype qname 131ADJUST copy_id 132REPLY AA QR NOERROR 133SECTION QUESTION 134ns.example.net. IN A 135SECTION ANSWER 136ns.example.net. IN A 1.2.3.44 137SECTION AUTHORITY 138example.net. IN NS ns.example.net. 139ENTRY_END 140 141ENTRY_BEGIN 142MATCH opcode qtype qname 143ADJUST copy_id 144REPLY AA QR NOERROR 145SECTION QUESTION 146ns.example.net. IN AAAA 147SECTION AUTHORITY 148example.net. IN NS ns.example.net. 149SECTION ADDITIONAL 150ns.example.net. IN A 1.2.3.44 151ENTRY_END 152 153ENTRY_BEGIN 154MATCH opcode qtype qname 155ADJUST copy_id 156REPLY AA QR NOERROR 157SECTION QUESTION 158ns.example.com. IN A 159SECTION ANSWER 160ns.example.com. IN A 1.2.3.44 161SECTION AUTHORITY 162example.com. IN NS ns.example.com. 163example.com. IN NS ns.example.net. 164ENTRY_END 165 166ENTRY_BEGIN 167MATCH opcode qtype qname 168ADJUST copy_id 169REPLY AA QR NOERROR 170SECTION QUESTION 171ns.example.com. IN AAAA 172SECTION AUTHORITY 173example.com. IN NS ns.example.com. 174example.com. IN NS ns.example.net. 175SECTION ADDITIONAL 176ns.example.com. IN A 1.2.3.44 177ENTRY_END 178 179ENTRY_BEGIN 180MATCH opcode qtype qname 181ADJUST copy_id 182REPLY AA QR NOERROR 183SECTION QUESTION 184example.com. IN NS 185SECTION ANSWER 186example.com. IN NS ns.example.com. 187example.com. IN NS ns.example.net. 188SECTION ADDITIONAL 189ns.example.com. IN A 1.2.3.44 190ENTRY_END 191 192ENTRY_BEGIN 193MATCH opcode qtype qname 194ADJUST copy_id 195REPLY AA QR NOERROR 196SECTION QUESTION 197www.example.com. IN A 198SECTION ANSWER 199www.example.com. IN A 10.20.30.40 200SECTION AUTHORITY 201example.com. IN NS ns.example.com. 202example.com. IN NS ns.example.net. 203SECTION ADDITIONAL 204ns.example.com. IN A 1.2.3.44 205ENTRY_END 206 207ENTRY_BEGIN 208MATCH opcode qtype qname 209ADJUST copy_id 210REPLY AA QR NOERROR 211SECTION QUESTION 212mail.example.com. IN A 213SECTION ANSWER 214mail.example.com. IN A 10.20.30.20 215SECTION AUTHORITY 216example.com. IN NS ns.example.com. 217example.com. IN NS ns.example.net. 218SECTION ADDITIONAL 219ns.example.com. IN A 1.2.3.44 220ENTRY_END 221RANGE_END 222 223; Broken. Does not respond to anything (servfail instead 224; of timeouts since this is easier to encode in .rpl file format). 225RANGE_BEGIN 0 49 226 ADDRESS 1.2.3.55 227ENTRY_BEGIN 228MATCH opcode 229ADJUST copy_id copy_query 230REPLY QR SERVFAIL 231SECTION QUESTION 232example.net. IN NS 233SECTION ANSWER 234ENTRY_END 235RANGE_END 236 237RANGE_BEGIN 50 100 238 ADDRESS 1.2.3.44 239ENTRY_BEGIN 240MATCH opcode 241ADJUST copy_id copy_query 242REPLY QR SERVFAIL 243SECTION QUESTION 244example.net. IN NS 245SECTION ANSWER 246ENTRY_END 247RANGE_END 248 249RANGE_BEGIN 50 100 250 ADDRESS 1.2.3.55 251ENTRY_BEGIN 252MATCH opcode qtype qname 253ADJUST copy_id 254REPLY AA QR NOERROR 255SECTION QUESTION 256example.net. IN NS 257SECTION ANSWER 258example.net. IN NS ns.example.net. 259SECTION ADDITIONAL 260ns.example.net. IN A 1.2.3.44 261ENTRY_END 262 263ENTRY_BEGIN 264MATCH opcode qtype qname 265ADJUST copy_id 266REPLY AA QR NOERROR 267SECTION QUESTION 268ns.example.net. IN A 269SECTION ANSWER 270ns.example.net. IN A 1.2.3.44 271SECTION AUTHORITY 272example.net. IN NS ns.example.net. 273ENTRY_END 274 275ENTRY_BEGIN 276MATCH opcode qtype qname 277ADJUST copy_id 278REPLY AA QR NOERROR 279SECTION QUESTION 280ns.example.net. IN AAAA 281SECTION AUTHORITY 282example.net. IN NS ns.example.net. 283SECTION ADDITIONAL 284ns.example.net. IN A 1.2.3.44 285ENTRY_END 286 287ENTRY_BEGIN 288MATCH opcode qtype qname 289ADJUST copy_id 290REPLY AA QR NOERROR 291SECTION QUESTION 292ns.example.com. IN A 293SECTION ANSWER 294ns.example.com. IN A 1.2.3.44 295SECTION AUTHORITY 296example.com. IN NS ns.example.com. 297example.com. IN NS ns.example.net. 298ENTRY_END 299 300ENTRY_BEGIN 301MATCH opcode qtype qname 302ADJUST copy_id 303REPLY AA QR NOERROR 304SECTION QUESTION 305ns.example.com. IN AAAA 306SECTION AUTHORITY 307example.com. IN NS ns.example.com. 308example.com. IN NS ns.example.net. 309SECTION ADDITIONAL 310ns.example.com. IN A 1.2.3.44 311ENTRY_END 312 313ENTRY_BEGIN 314MATCH opcode qtype qname 315ADJUST copy_id 316REPLY AA QR NOERROR 317SECTION QUESTION 318example.com. IN NS 319SECTION ANSWER 320example.com. IN NS ns.example.com. 321example.com. IN NS ns.example.net. 322SECTION ADDITIONAL 323ns.example.com. IN A 1.2.3.44 324ENTRY_END 325 326ENTRY_BEGIN 327MATCH opcode qtype qname 328ADJUST copy_id 329REPLY AA QR NOERROR 330SECTION QUESTION 331www.example.com. IN A 332SECTION ANSWER 333www.example.com. IN A 10.20.30.40 334SECTION AUTHORITY 335example.com. IN NS ns.example.com. 336example.com. IN NS ns.example.net. 337SECTION ADDITIONAL 338ns.example.com. IN A 1.2.3.44 339ENTRY_END 340 341ENTRY_BEGIN 342MATCH opcode qtype qname 343ADJUST copy_id 344REPLY AA QR NOERROR 345SECTION QUESTION 346mail.example.com. IN A 347SECTION ANSWER 348mail.example.com. IN A 10.20.30.20 349SECTION AUTHORITY 350example.com. IN NS ns.example.com. 351example.com. IN NS ns.example.net. 352SECTION ADDITIONAL 353ns.example.com. IN A 1.2.3.44 354ENTRY_END 355RANGE_END 356 357 358STEP 1 QUERY 359ENTRY_BEGIN 360REPLY RD 361SECTION QUESTION 362www.example.com. IN A 363ENTRY_END 364 365; recursion happens here. 366STEP 20 CHECK_ANSWER 367ENTRY_BEGIN 368MATCH all 369REPLY QR RD RA NOERROR 370SECTION QUESTION 371www.example.com. IN A 372SECTION ANSWER 373www.example.com. IN A 10.20.30.40 374SECTION AUTHORITY 375example.com. IN NS ns.example.com. 376example.com. IN NS ns.example.net. 377SECTION ADDITIONAL 378ns.example.com. IN A 1.2.3.44 379ENTRY_END 380 381; server stops working. 382 383STEP 50 QUERY 384ENTRY_BEGIN 385REPLY RD 386SECTION QUESTION 387mail.example.com. IN A 388ENTRY_END 389 390STEP 60 CHECK_ANSWER 391ENTRY_BEGIN 392MATCH all 393REPLY QR RD RA NOERROR 394SECTION QUESTION 395mail.example.com. IN A 396SECTION ANSWER 397mail.example.com. IN A 10.20.30.20 398SECTION AUTHORITY 399example.com. IN NS ns.example.com. 400example.com. IN NS ns.example.net. 401SECTION ADDITIONAL 402ns.example.com. IN A 1.2.3.44 403ENTRY_END 404 405SCENARIO_END 406