5forward-zone: name: "." forward-addr: 216.0.0.1 6CONFIG_END 7 8SCENARIO_BEGIN RRset is updated from other message that passes by. 9 10STEP 1 QUERY 11ENTRY_BEGIN 12 REPLY RD 13 SECTION QUESTION 14 www.example.com. IN A 15ENTRY_END 16; the query is sent to the forwarder - no cache yet. 17STEP 2 CHECK_OUT_QUERY 18ENTRY_BEGIN 19 MATCH qname qtype opcode 20 SECTION QUESTION 21 www.example.com. IN A 22ENTRY_END 23STEP 3 REPLY 24ENTRY_BEGIN 25 MATCH opcode qtype qname 26 ADJUST copy_id 27 ; authoritative answer 28 REPLY QR AA RD RA NOERROR 29 SECTION QUESTION 30 www.example.com. IN A 31 SECTION ANSWER 32 www.example.com. IN A 10.20.30.40 33 SECTION AUTHORITY 34 example.com. IN NS ns.example.com. 35 SECTION ADDITIONAL 36 ns.example.com. IN A 10.20.30.50 37ENTRY_END 38STEP 4 CHECK_ANSWER 39ENTRY_BEGIN 40 MATCH all 41 REPLY QR RD RA 42 SECTION QUESTION 43 www.example.com. IN A 44 SECTION ANSWER 45 www.example.com. IN A 10.20.30.40 46 SECTION AUTHORITY 47 example.com. IN NS ns.example.com. 48 SECTION ADDITIONAL 49 ns.example.com. IN A 10.20.30.50 50ENTRY_END 51 52; another query passes along 53STEP 6 QUERY 54ENTRY_BEGIN 55 REPLY RD 56 SECTION QUESTION 57 bla.example.com. IN A 58ENTRY_END 59STEP 7 CHECK_OUT_QUERY 60ENTRY_BEGIN 61 MATCH qname qtype opcode 62 SECTION QUESTION 63 bla.example.com. IN A 64ENTRY_END 65STEP 8 REPLY 66; This answer has updated information on ns2.example.com. 67ENTRY_BEGIN 68 MATCH opcode qtype qname 69 ADJUST copy_id 70 ; authoritative answer 71 REPLY QR AA RD RA NOERROR 72 SECTION QUESTION 73 bla.example.com. IN A 74 SECTION ANSWER 75 bla.example.com. IN A 10.20.30.140 76 SECTION AUTHORITY 77 example.com. IN NS ns.example.com. 78 example.com. IN NS ns2.example.com. 79 SECTION ADDITIONAL 80 ns.example.com. IN A 10.20.30.50 81 ns2.example.com. IN A 10.20.30.53 82ENTRY_END 83STEP 9 CHECK_ANSWER 84ENTRY_BEGIN 85 MATCH all 86 REPLY QR RD RA 87 SECTION QUESTION 88 bla.example.com. IN A 89 SECTION ANSWER 90 bla.example.com. IN A 10.20.30.140 91 SECTION AUTHORITY 92 example.com. IN NS ns.example.com. 93 example.com. IN NS ns2.example.com. 94 SECTION ADDITIONAL 95 ns.example.com. IN A 10.20.30.50 96 ns2.example.com. IN A 10.20.30.53 97ENTRY_END 98 99 100; original www.example.com query 101STEP 10 QUERY 102ENTRY_BEGIN 103 REPLY RD 104 SECTION QUESTION 105 www.example.com. IN A 106ENTRY_END 107; immediate answer without an OUT_QUERY happening (checked on exit) 108; also, the answer does not have AA set 109; NS rrset has been updated. 110STEP 11 CHECK_ANSWER 111ENTRY_BEGIN 112 MATCH all 113 REPLY QR RD RA 114 SECTION QUESTION 115 www.example.com. IN A 116 SECTION ANSWER 117 www.example.com. IN A 10.20.30.40 118 SECTION AUTHORITY 119 example.com. IN NS ns.example.com. 120 example.com. IN NS ns2.example.com. 121 SECTION ADDITIONAL 122 ns.example.com. IN A 10.20.30.50 123ENTRY_END 124 125SCENARIO_END
| 6forward-zone: name: "." forward-addr: 216.0.0.1 7CONFIG_END 8 9SCENARIO_BEGIN RRset is updated from other message that passes by. 10 11STEP 1 QUERY 12ENTRY_BEGIN 13 REPLY RD 14 SECTION QUESTION 15 www.example.com. IN A 16ENTRY_END 17; the query is sent to the forwarder - no cache yet. 18STEP 2 CHECK_OUT_QUERY 19ENTRY_BEGIN 20 MATCH qname qtype opcode 21 SECTION QUESTION 22 www.example.com. IN A 23ENTRY_END 24STEP 3 REPLY 25ENTRY_BEGIN 26 MATCH opcode qtype qname 27 ADJUST copy_id 28 ; authoritative answer 29 REPLY QR AA RD RA NOERROR 30 SECTION QUESTION 31 www.example.com. IN A 32 SECTION ANSWER 33 www.example.com. IN A 10.20.30.40 34 SECTION AUTHORITY 35 example.com. IN NS ns.example.com. 36 SECTION ADDITIONAL 37 ns.example.com. IN A 10.20.30.50 38ENTRY_END 39STEP 4 CHECK_ANSWER 40ENTRY_BEGIN 41 MATCH all 42 REPLY QR RD RA 43 SECTION QUESTION 44 www.example.com. IN A 45 SECTION ANSWER 46 www.example.com. IN A 10.20.30.40 47 SECTION AUTHORITY 48 example.com. IN NS ns.example.com. 49 SECTION ADDITIONAL 50 ns.example.com. IN A 10.20.30.50 51ENTRY_END 52 53; another query passes along 54STEP 6 QUERY 55ENTRY_BEGIN 56 REPLY RD 57 SECTION QUESTION 58 bla.example.com. IN A 59ENTRY_END 60STEP 7 CHECK_OUT_QUERY 61ENTRY_BEGIN 62 MATCH qname qtype opcode 63 SECTION QUESTION 64 bla.example.com. IN A 65ENTRY_END 66STEP 8 REPLY 67; This answer has updated information on ns2.example.com. 68ENTRY_BEGIN 69 MATCH opcode qtype qname 70 ADJUST copy_id 71 ; authoritative answer 72 REPLY QR AA RD RA NOERROR 73 SECTION QUESTION 74 bla.example.com. IN A 75 SECTION ANSWER 76 bla.example.com. IN A 10.20.30.140 77 SECTION AUTHORITY 78 example.com. IN NS ns.example.com. 79 example.com. IN NS ns2.example.com. 80 SECTION ADDITIONAL 81 ns.example.com. IN A 10.20.30.50 82 ns2.example.com. IN A 10.20.30.53 83ENTRY_END 84STEP 9 CHECK_ANSWER 85ENTRY_BEGIN 86 MATCH all 87 REPLY QR RD RA 88 SECTION QUESTION 89 bla.example.com. IN A 90 SECTION ANSWER 91 bla.example.com. IN A 10.20.30.140 92 SECTION AUTHORITY 93 example.com. IN NS ns.example.com. 94 example.com. IN NS ns2.example.com. 95 SECTION ADDITIONAL 96 ns.example.com. IN A 10.20.30.50 97 ns2.example.com. IN A 10.20.30.53 98ENTRY_END 99 100 101; original www.example.com query 102STEP 10 QUERY 103ENTRY_BEGIN 104 REPLY RD 105 SECTION QUESTION 106 www.example.com. IN A 107ENTRY_END 108; immediate answer without an OUT_QUERY happening (checked on exit) 109; also, the answer does not have AA set 110; NS rrset has been updated. 111STEP 11 CHECK_ANSWER 112ENTRY_BEGIN 113 MATCH all 114 REPLY QR RD RA 115 SECTION QUESTION 116 www.example.com. IN A 117 SECTION ANSWER 118 www.example.com. IN A 10.20.30.40 119 SECTION AUTHORITY 120 example.com. IN NS ns.example.com. 121 example.com. IN NS ns2.example.com. 122 SECTION ADDITIONAL 123 ns.example.com. IN A 10.20.30.50 124ENTRY_END 125 126SCENARIO_END
|