]> git.saurik.com Git - apple/network_cmds.git/blame - unbound/testdata/fwd_two.rpl
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / testdata / fwd_two.rpl
CommitLineData
89c4ed63
A
1; config options go here.
2server:
3 num-queries-per-thread: 2
4forward-zone:
5 name: "."
6 forward-addr: 216.0.0.1
7CONFIG_END
8SCENARIO_BEGIN Sample of a valid query
9
10; query responses from authority servers.
11RANGE_BEGIN 0 100
12ENTRY_BEGIN
13 MATCH opcode qtype qname
14 ADJUST copy_id
15 REPLY QR RD RA NOERROR
16 SECTION QUESTION
17www.example.net. IN A
18 SECTION ANSWER
19www.example.net. IN A 10.20.30.40
20 SECTION AUTHORITY
21www.example.net. IN NS ns.example.net.
22 SECTION ADDITIONAL
23ns.example.net. IN A 10.20.30.50
24ENTRY_END
25RANGE_END
26
27STEP 1 QUERY
28ENTRY_BEGIN
29REPLY RD
30SECTION QUESTION
31www.example.com. IN A
32ENTRY_END
33
34STEP 2 CHECK_OUT_QUERY
35ENTRY_BEGIN
36MATCH qname qtype opcode
37SECTION QUESTION
38www.example.com. IN A
39ENTRY_END
40
41; NO REPLY (this step is not needed)
42STEP 3 NOTHING
43
44; another query
45STEP 4 QUERY
46ENTRY_BEGIN
47REPLY RD
48SECTION QUESTION
49www.example.net. IN A
50ENTRY_END
51
52; reply from first query returns
53STEP 5 REPLY
54ENTRY_BEGIN
55 MATCH opcode qtype qname
56 ADJUST copy_id
57 REPLY QR RD RA NOERROR
58 SECTION QUESTION
59www.example.com. IN A
60 SECTION ANSWER
61www.example.com. IN A 10.20.30.40
62 SECTION AUTHORITY
63www.example.com. IN NS ns.example.com.
64 SECTION ADDITIONAL
65ns.example.com. IN A 10.20.30.50
66ENTRY_END
67
68STEP 10 CHECK_ANSWER
69ENTRY_BEGIN
70MATCH opcode qname qtype
71SECTION QUESTION
72www.example.com. IN A
73SECTION ANSWER
74www.example.com. IN A 10.20.30.40
75ENTRY_END
76
77STEP 11 CHECK_ANSWER
78ENTRY_BEGIN
79MATCH opcode qname qtype
80SECTION QUESTION
81www.example.net. IN A
82SECTION ANSWER
83www.example.net. IN A 10.20.30.40
84ENTRY_END
85SCENARIO_END
86
87; testbound checks before exit:
88; * no more pending queries outstanding.
89; * and no answers that have not been checked.