1; config options 2server: 3 target-fetch-policy: "0 0 0 0 0" 4 qname-minimisation: "no" 5 minimal-responses: no 6 rrset-roundrobin: no 7 8stub-zone: 9 name: "." 10 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET. 11CONFIG_END 12 13SCENARIO_BEGIN Test iterative resolve with a recursion lame server. 14; The scenario has a domain with two servers, one is lame the other doesn't 15; so depending on the randomly chosen server that goes first, it may 16; select the nonlame or the lame server first. 17 18; K.ROOT-SERVERS.NET. 19RANGE_BEGIN 0 100 20 ADDRESS 193.0.14.129 21ENTRY_BEGIN 22MATCH opcode qtype qname 23ADJUST copy_id 24REPLY QR NOERROR 25SECTION QUESTION 26. IN NS 27SECTION ANSWER 28. IN NS K.ROOT-SERVERS.NET. 29SECTION ADDITIONAL 30K.ROOT-SERVERS.NET. IN A 193.0.14.129 31ENTRY_END 32 33ENTRY_BEGIN 34MATCH opcode qtype qname 35ADJUST copy_id 36REPLY QR NOERROR 37SECTION QUESTION 38www.example.com. IN A 39SECTION AUTHORITY 40com. IN NS a.gtld-servers.net. 41SECTION ADDITIONAL 42a.gtld-servers.net. IN A 192.5.6.30 43ENTRY_END 44RANGE_END 45 46; a.gtld-servers.net. 47RANGE_BEGIN 0 100 48 ADDRESS 192.5.6.30 49ENTRY_BEGIN 50MATCH opcode qtype qname 51ADJUST copy_id 52REPLY QR NOERROR 53SECTION QUESTION 54com. IN NS 55SECTION ANSWER 56com. IN NS a.gtld-servers.net. 57SECTION ADDITIONAL 58a.gtld-servers.net. IN A 192.5.6.30 59ENTRY_END 60 61ENTRY_BEGIN 62MATCH opcode qtype qname 63ADJUST copy_id 64REPLY QR NOERROR 65SECTION QUESTION 66www.example.com. IN A 67SECTION AUTHORITY 68example.com. IN NS ns.example.com. 69example.com. IN NS lame.example.com. 70SECTION ADDITIONAL 71ns.example.com. IN A 1.2.3.4 72lame.example.com. IN A 1.2.3.5 73ENTRY_END 74RANGE_END 75 76; ns.example.com. 77RANGE_BEGIN 0 100 78 ADDRESS 1.2.3.4 79ENTRY_BEGIN 80MATCH opcode qtype qname 81ADJUST copy_id 82REPLY QR AA NOERROR 83SECTION QUESTION 84example.com. IN NS 85SECTION ANSWER 86example.com. IN NS ns.example.com. 87example.com. IN NS lame.example.com. 88SECTION ADDITIONAL 89ns.example.com. IN A 1.2.3.4 90lame.example.com. IN A 1.2.3.5 91ENTRY_END 92 93ENTRY_BEGIN 94MATCH opcode qtype qname 95ADJUST copy_id 96REPLY QR AA NOERROR 97SECTION QUESTION 98www.example.com. IN A 99SECTION ANSWER 100www.example.com. IN A 10.20.30.40 101SECTION AUTHORITY 102example.com. IN NS ns.example.com. 103example.com. IN NS lame.example.com. 104SECTION ADDITIONAL 105ns.example.com. IN A 1.2.3.4 106lame.example.com. IN A 1.2.3.5 107ENTRY_END 108RANGE_END 109 110; lame.example.com. 111RANGE_BEGIN 0 100 112 ADDRESS 1.2.3.5 113ENTRY_BEGIN 114MATCH opcode qtype qname 115ADJUST copy_id 116REPLY QR RA NOERROR 117SECTION QUESTION 118example.com. IN NS 119SECTION ANSWER 120example.com. IN NS ns.example.com. 121example.com. IN NS lame.example.com. 122SECTION ADDITIONAL 123ns.example.com. IN A 1.2.3.4 124lame.example.com. IN A 1.2.3.5 125ENTRY_END 126 127ENTRY_BEGIN 128MATCH opcode qtype qname 129ADJUST copy_id 130REPLY QR RA NOERROR 131SECTION QUESTION 132www.example.com. IN A 133SECTION ANSWER 134www.example.com. IN A 10.20.30.40 135SECTION AUTHORITY 136example.com. IN NS ns.example.com. 137example.com. IN NS lame.example.com. 138SECTION ADDITIONAL 139ns.example.com. IN A 1.2.3.4 140lame.example.com. IN A 1.2.3.5 141ENTRY_END 142RANGE_END 143 144STEP 1 QUERY 145ENTRY_BEGIN 146REPLY RD 147SECTION QUESTION 148www.example.com. IN A 149ENTRY_END 150 151; recursion happens here. 152STEP 10 CHECK_ANSWER 153ENTRY_BEGIN 154MATCH all 155REPLY QR RD RA NOERROR 156SECTION QUESTION 157www.example.com. IN A 158SECTION ANSWER 159www.example.com. IN A 10.20.30.40 160SECTION AUTHORITY 161example.com. IN NS ns.example.com. 162example.com. IN NS lame.example.com. 163SECTION ADDITIONAL 164ns.example.com. IN A 1.2.3.4 165lame.example.com. IN A 1.2.3.5 166ENTRY_END 167 168SCENARIO_END 169