]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testdata/fwd_lrudrop.rpl
31b26748ff4a8ca3c8d89e1368b7787fef60cbbe
[apple/network_cmds.git] / unbound / testdata / fwd_lrudrop.rpl
1 ; This is a comment.
2 ; config options go here.
3 ; extremely small cache to force dropping old records.
4 server:
5 msg-cache-size: 1 # one whole byte!
6 msg-cache-slabs: 1
7 forward-zone: name: "." forward-addr: 216.0.0.1
8 CONFIG_END
9
10 SCENARIO_BEGIN Old answer is dropped from the cache
11
12 STEP 1 QUERY
13 ENTRY_BEGIN
14 REPLY RD
15 SECTION QUESTION
16 www.example.com. IN A
17 ENTRY_END
18 ; the query is sent to the forwarder - no cache yet.
19 STEP 2 CHECK_OUT_QUERY
20 ENTRY_BEGIN
21 MATCH qname qtype opcode
22 SECTION QUESTION
23 www.example.com. IN A
24 ENTRY_END
25 STEP 3 REPLY
26 ENTRY_BEGIN
27 MATCH opcode qtype qname
28 ADJUST copy_id
29 REPLY QR RD RA NOERROR
30 SECTION QUESTION
31 www.example.com. IN A
32 SECTION ANSWER
33 www.example.com. IN A 10.20.30.40
34 SECTION AUTHORITY
35 www.example.com. IN NS ns.example.com.
36 SECTION ADDITIONAL
37 ns.example.com. IN A 10.20.30.50
38 ENTRY_END
39 STEP 4 CHECK_ANSWER
40 ENTRY_BEGIN
41 MATCH opcode qname qtype
42 SECTION QUESTION
43 www.example.com. IN A
44 SECTION ANSWER
45 www.example.com. IN A 10.20.30.40
46 ENTRY_END
47
48 ; another query to force the cache to drop the example.com entry.
49 STEP 11 QUERY
50 ENTRY_BEGIN
51 REPLY RD
52 SECTION QUESTION
53 www.example.net. IN A
54 ENTRY_END
55 ; the query is sent to the forwarder - no cache yet.
56 STEP 12 CHECK_OUT_QUERY
57 ENTRY_BEGIN
58 MATCH qname qtype opcode
59 SECTION QUESTION
60 www.example.net. IN A
61 ENTRY_END
62 STEP 13 REPLY
63 ENTRY_BEGIN
64 MATCH opcode qtype qname
65 ADJUST copy_id
66 REPLY QR RD RA NOERROR
67 SECTION QUESTION
68 www.example.net. IN A
69 SECTION ANSWER
70 www.example.net. IN A 10.20.30.40
71 SECTION AUTHORITY
72 www.example.net. IN NS ns.example.net.
73 SECTION ADDITIONAL
74 ns.example.net. IN A 10.20.30.50
75 ENTRY_END
76 STEP 14 CHECK_ANSWER
77 ENTRY_BEGIN
78 MATCH opcode qname qtype
79 SECTION QUESTION
80 www.example.net. IN A
81 SECTION ANSWER
82 www.example.net. IN A 10.20.30.40
83 ENTRY_END
84
85
86 ; query, same as first, but it fell out of the cache.
87 STEP 21 QUERY
88 ENTRY_BEGIN
89 REPLY RD
90 SECTION QUESTION
91 www.example.com. IN A
92 ENTRY_END
93 STEP 22 CHECK_OUT_QUERY
94 ENTRY_BEGIN
95 MATCH qname qtype opcode
96 SECTION QUESTION
97 www.example.com. IN A
98 ENTRY_END
99 STEP 23 REPLY
100 ENTRY_BEGIN
101 MATCH opcode qtype qname
102 ADJUST copy_id
103 REPLY QR RD RA NOERROR
104 SECTION QUESTION
105 www.example.com. IN A
106 SECTION ANSWER
107 www.example.com. IN A 10.20.30.40
108 SECTION AUTHORITY
109 www.example.com. IN NS ns.example.com.
110 SECTION ADDITIONAL
111 ns.example.com. IN A 10.20.30.50
112 ENTRY_END
113 STEP 24 CHECK_ANSWER
114 ENTRY_BEGIN
115 MATCH opcode qname qtype
116 SECTION QUESTION
117 www.example.com. IN A
118 SECTION ANSWER
119 www.example.com. IN A 10.20.30.40
120 ENTRY_END
121
122 SCENARIO_END