3 module-config: "validator iterator"
4 qname-minimisation: "no"
7 serve-expired-client-timeout: 1800
8 serve-expired-reply-ttl: 123
17 SCENARIO_BEGIN Test serve-expired with client-timeout and a SERVFAIL upstream reply
19 ; - query for example.com. IN A
20 ; - check that we get an answer for example.com. IN A with the correct TTL
21 ; - query again right after the TTL expired
22 ; - answer from upstream is servfail
23 ; - check that we get the expired cached answer instead
29 MATCH opcode qtype qname
35 example.com. IN NS ns.example.com.
37 ns.example.com. IN A 1.2.3.4
41 MATCH opcode qtype qname
47 example.com. 10 IN A 5.6.7.8
49 example.com. IN NS ns.example.com.
51 ns.example.com. IN A 1.2.3.4
60 MATCH opcode qtype qname
76 ; Check that we got the correct answer (should be cached)
80 REPLY QR RD RA NOERROR
84 example.com. 10 IN A 5.6.7.8
86 example.com. IN NS ns.example.com.
88 ns.example.com. IN A 1.2.3.4
91 ; Wait for the TTL to expire
92 STEP 11 TIME_PASSES ELAPSE 3601
102 ; Check that we got a stale answer
106 REPLY QR RD RA NOERROR
110 example.com. 123 IN A 5.6.7.8
112 example.com. 123 IN NS ns.example.com.
114 ns.example.com. 123 IN A 1.2.3.4