3 module-config: "validator iterator"
4 qname-minimisation: "no"
17 SCENARIO_BEGIN Test serve-expired with NXDOMAIN followed by 0 TTL
19 ; - query for 0ttl.example.com. IN A
20 ; - answer from upstream is NODATA; will be cached for the SOA negative TTL.
21 ; - check that the client gets the NODATA; also cached
22 ; - query again right after the TTL expired
23 ; - this time the server answers with a 0 TTL RRset
24 ; - check that we get the correct answer
31 MATCH opcode qtype qname
35 0ttl.example.com. IN A
37 example.com IN SOA ns.example.com dns.example.com 1 7200 3600 2419200 10
45 MATCH opcode qtype qname
51 example.com. 10 IN NS ns.example.com.
53 ns.example.com. 10 IN A 1.2.3.4
57 MATCH opcode qtype qname
61 0ttl.example.com. IN A
63 0ttl.example.com. 0 IN A 5.6.7.8
65 example.com. 10 IN NS ns.example.com.
67 ns.example.com. 10 IN A 1.2.3.4
76 0ttl.example.com. IN A
79 ; Check that we get the NODATA (will be cached)
83 REPLY QR RD RA NOERROR
85 0ttl.example.com. IN A
87 example.com IN SOA ns.example.com dns.example.com 1 7200 3600 2419200 10
95 0ttl.example.com. IN A
98 ; Check that we get the cached NODATA
102 REPLY QR RD RA NOERROR
104 0ttl.example.com. IN A
106 example.com IN SOA ns.example.com dns.example.com 1 7200 3600 2419200 10
109 ; Wait for the NXDOMAIN to expire
110 STEP 31 TIME_PASSES ELAPSE 32
117 0ttl.example.com. IN A
120 ; Check that we get the cached NODATA
124 REPLY QR RD RA NOERROR
126 0ttl.example.com. IN A
128 example.com IN SOA ns.example.com dns.example.com 1 7200 3600 2419200 10
136 0ttl.example.com. IN A
139 ; Check that we got the correct answer
143 REPLY QR RD RA NOERROR
145 0ttl.example.com. IN A
147 0ttl.example.com. 0 IN A 5.6.7.8
149 example.com. 10 IN NS ns.example.com.
151 ns.example.com. 10 IN A 1.2.3.4