1; config options go here. 2; This is one forever, one jostle. 3server: 4 num-queries-per-thread: 2 5forward-zone: 6 name: "." 7 forward-addr: 216.0.0.1 8CONFIG_END 9SCENARIO_BEGIN Test too many queries asked, last is too recent to be jostled 10 11; fill the forever slot. 12STEP 1 QUERY 13ENTRY_BEGIN 14REPLY RD 15SECTION QUESTION 16www.example.com. IN A 17ENTRY_END 18 19STEP 2 CHECK_OUT_QUERY 20ENTRY_BEGIN 21MATCH qname qtype opcode 22SECTION QUESTION 23www.example.com. IN A 24ENTRY_END 25 26; NO REPLY (this step is not needed) 27STEP 3 NOTHING 28 29;something enters the jostle slot. 30STEP 4 QUERY 31ENTRY_BEGIN 32REPLY RD 33SECTION QUESTION 34www.example.net. IN A 35ENTRY_END 36 37STEP 5 CHECK_OUT_QUERY 38ENTRY_BEGIN 39MATCH qname qtype opcode 40SECTION QUESTION 41www.example.net. IN A 42ENTRY_END 43 44; something else tries to replace the entry in the jostle slot. 45; but the entry in the jostle slot is too recent. 46STEP 6 QUERY 47ENTRY_BEGIN 48REPLY RD 49SECTION QUESTION 50www.example.org. IN A 51ENTRY_END 52 53; reply from latest query returns 54STEP 7 REPLY 55ENTRY_BEGIN 56 MATCH opcode qtype qname 57 ADJUST copy_id 58 REPLY QR RD RA NOERROR 59 SECTION QUESTION 60www.example.net. IN A 61 SECTION ANSWER 62www.example.net. IN A 10.20.30.42 63 SECTION AUTHORITY 64www.example.net. IN NS ns.example.net. 65 SECTION ADDITIONAL 66ns.example.net. IN A 10.20.30.50 67ENTRY_END 68 69; answer to last query 70STEP 8 CHECK_ANSWER 71ENTRY_BEGIN 72MATCH opcode qname qtype 73SECTION QUESTION 74www.example.net. IN A 75SECTION ANSWER 76www.example.net. IN A 10.20.30.42 77ENTRY_END 78 79 80; reply from first query returns 81STEP 10 REPLY 82ENTRY_BEGIN 83 MATCH opcode qtype qname 84 ADJUST copy_id 85 REPLY QR RD RA NOERROR 86 SECTION QUESTION 87www.example.com. IN A 88 SECTION ANSWER 89www.example.com. IN A 10.20.30.40 90 SECTION AUTHORITY 91www.example.com. IN NS ns.example.com. 92 SECTION ADDITIONAL 93ns.example.com. IN A 10.20.30.50 94ENTRY_END 95 96; answer to first query 97STEP 11 CHECK_ANSWER 98ENTRY_BEGIN 99MATCH opcode qname qtype 100SECTION QUESTION 101www.example.com. IN A 102SECTION ANSWER 103www.example.com. IN A 10.20.30.40 104ENTRY_END 105 106SCENARIO_END 107 108; testbound checks before exit: 109; * no more pending queries outstanding. 110; * and no answers that have not been checked. 111