2 ; config options go here.
3 forward-zone: name: "." forward-addr: 216.0.0.1
6 SCENARIO_BEGIN RRset TTL is not greedily updated from message.
14 ; the query is sent to the forwarder - no cache yet.
15 STEP 2 CHECK_OUT_QUERY
17 MATCH qname qtype opcode
23 MATCH opcode qtype qname
25 ; authoritative answer
26 REPLY QR AA RD RA NOERROR
30 www.example.com. IN A 10.20.30.40
32 example.com. 100 IN NS ns.example.com.
34 ns.example.com. IN A 10.20.30.50
43 www.example.com. IN A 10.20.30.40
45 example.com. 100 IN NS ns.example.com.
47 ns.example.com. IN A 10.20.30.50
50 ; another query passes along
57 STEP 7 CHECK_OUT_QUERY
59 MATCH qname qtype opcode
64 ; This answer has a fresh TTL
66 MATCH opcode qtype qname
68 ; authoritative answer
69 REPLY QR AA RD RA NOERROR
73 bla.example.com. IN A 10.20.30.140
75 example.com. 200 IN NS ns.example.com.
77 ns.example.com. IN A 10.20.30.50
86 bla.example.com. IN A 10.20.30.140
88 example.com. 100 IN NS ns.example.com.
90 ns.example.com. IN A 10.20.30.50
93 ; original www.example.com query
101 ; immediate answer without an OUT_QUERY happening (checked on exit)
102 ; also, the answer does not have AA set
103 ; NS rrset has not been updated. No greedy TTL has happened.
109 www.example.com. IN A
111 www.example.com. IN A 10.20.30.40
113 example.com. 100 IN NS ns.example.com.
115 ns.example.com. IN A 10.20.30.50