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