]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testdata/rrset_updated.rpl
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / testdata / rrset_updated.rpl
1 ; This is a comment.
2 ; config options go here.
3 forward-zone: name: "." forward-addr: 216.0.0.1
4 CONFIG_END
5
6 SCENARIO_BEGIN RRset is updated from other message that passes by.
7
8 STEP 1 QUERY
9 ENTRY_BEGIN
10 REPLY RD
11 SECTION QUESTION
12 www.example.com. IN A
13 ENTRY_END
14 ; the query is sent to the forwarder - no cache yet.
15 STEP 2 CHECK_OUT_QUERY
16 ENTRY_BEGIN
17 MATCH qname qtype opcode
18 SECTION QUESTION
19 www.example.com. IN A
20 ENTRY_END
21 STEP 3 REPLY
22 ENTRY_BEGIN
23 MATCH opcode qtype qname
24 ADJUST copy_id
25 ; authoritative answer
26 REPLY QR AA RD RA NOERROR
27 SECTION QUESTION
28 www.example.com. IN A
29 SECTION ANSWER
30 www.example.com. IN A 10.20.30.40
31 SECTION AUTHORITY
32 example.com. IN NS ns.example.com.
33 SECTION ADDITIONAL
34 ns.example.com. IN A 10.20.30.50
35 ENTRY_END
36 STEP 4 CHECK_ANSWER
37 ENTRY_BEGIN
38 MATCH all
39 REPLY QR RD RA
40 SECTION QUESTION
41 www.example.com. IN A
42 SECTION ANSWER
43 www.example.com. IN A 10.20.30.40
44 SECTION AUTHORITY
45 example.com. IN NS ns.example.com.
46 SECTION ADDITIONAL
47 ns.example.com. IN A 10.20.30.50
48 ENTRY_END
49
50 ; another query passes along
51 STEP 6 QUERY
52 ENTRY_BEGIN
53 REPLY RD
54 SECTION QUESTION
55 bla.example.com. IN A
56 ENTRY_END
57 STEP 7 CHECK_OUT_QUERY
58 ENTRY_BEGIN
59 MATCH qname qtype opcode
60 SECTION QUESTION
61 bla.example.com. IN A
62 ENTRY_END
63 STEP 8 REPLY
64 ; This answer has updated information on ns2.example.com.
65 ENTRY_BEGIN
66 MATCH opcode qtype qname
67 ADJUST copy_id
68 ; authoritative answer
69 REPLY QR AA RD RA NOERROR
70 SECTION QUESTION
71 bla.example.com. IN A
72 SECTION ANSWER
73 bla.example.com. IN A 10.20.30.140
74 SECTION AUTHORITY
75 example.com. IN NS ns.example.com.
76 example.com. IN NS ns2.example.com.
77 SECTION ADDITIONAL
78 ns.example.com. IN A 10.20.30.50
79 ns2.example.com. IN A 10.20.30.53
80 ENTRY_END
81 STEP 9 CHECK_ANSWER
82 ENTRY_BEGIN
83 MATCH all
84 REPLY QR RD RA
85 SECTION QUESTION
86 bla.example.com. IN A
87 SECTION ANSWER
88 bla.example.com. IN A 10.20.30.140
89 SECTION AUTHORITY
90 example.com. IN NS ns.example.com.
91 example.com. IN NS ns2.example.com.
92 SECTION ADDITIONAL
93 ns.example.com. IN A 10.20.30.50
94 ns2.example.com. IN A 10.20.30.53
95 ENTRY_END
96
97
98 ; original www.example.com query
99 STEP 10 QUERY
100 ENTRY_BEGIN
101 REPLY RD
102 SECTION QUESTION
103 www.example.com. IN A
104 ENTRY_END
105 ; immediate answer without an OUT_QUERY happening (checked on exit)
106 ; also, the answer does not have AA set
107 ; NS rrset has been updated.
108 STEP 11 CHECK_ANSWER
109 ENTRY_BEGIN
110 MATCH all
111 REPLY QR RD RA
112 SECTION QUESTION
113 www.example.com. IN A
114 SECTION ANSWER
115 www.example.com. IN A 10.20.30.40
116 SECTION AUTHORITY
117 example.com. IN NS ns.example.com.
118 example.com. IN NS ns2.example.com.
119 SECTION ADDITIONAL
120 ns.example.com. IN A 10.20.30.50
121 ENTRY_END
122
123 SCENARIO_END