2 ; config options go here.
5 forward-zone: name: "." forward-addr: 216.0.0.1
8 SCENARIO_BEGIN Query receives answer from the cache
16 ; the query is sent to the forwarder - no cache yet.
17 STEP 2 CHECK_OUT_QUERY
19 MATCH qname qtype opcode
25 MATCH opcode qtype qname
27 ; authoritative answer
28 REPLY QR AA RD RA NOERROR
32 www.example.com. IN A 10.20.30.40
34 www.example.com. IN NS ns.example.com.
36 ns.example.com. IN A 10.20.30.50
45 www.example.com. IN A 10.20.30.40
47 www.example.com. IN NS ns.example.com.
49 ns.example.com. IN A 10.20.30.50
52 ; another query, same, so it must be answered from the cache
59 ; immediate answer without an OUT_QUERY happening (checked on exit)
60 ; also, the answer does not have AA set
68 www.example.com. IN A 10.20.30.40
70 www.example.com. IN NS ns.example.com.
72 ns.example.com. IN A 10.20.30.50