2 ; config options go here.
5 forward-zone: name: "." forward-addr: 216.0.0.1
8 SCENARIO_BEGIN RRset TTL is not greedily updated from message.
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 example.com. 100 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 example.com. 100 IN NS ns.example.com.
49 ns.example.com. IN A 10.20.30.50
52 ; another query passes along
59 STEP 7 CHECK_OUT_QUERY
61 MATCH qname qtype opcode
66 ; This answer has a fresh TTL
68 MATCH opcode qtype qname
70 ; authoritative answer
71 REPLY QR AA RD RA NOERROR
75 bla.example.com. IN A 10.20.30.140
77 example.com. 200 IN NS ns.example.com.
79 ns.example.com. IN A 10.20.30.50
88 bla.example.com. IN A 10.20.30.140
90 example.com. 100 IN NS ns.example.com.
92 ns.example.com. IN A 10.20.30.50
95 ; original www.example.com query
100 www.example.com. IN A
103 ; immediate answer without an OUT_QUERY happening (checked on exit)
104 ; also, the answer does not have AA set
105 ; NS rrset has not been updated. No greedy TTL has happened.
111 www.example.com. IN A
113 www.example.com. IN A 10.20.30.40
115 example.com. 100 IN NS ns.example.com.
117 ns.example.com. IN A 10.20.30.50