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