]> git.saurik.com Git - apple/network_cmds.git/blame - unbound/testdata/iter_req_qname.rpl
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / testdata / iter_req_qname.rpl
CommitLineData
89c4ed63
A
1; config options
2server:
3 target-fetch-policy: "0 0 0 0 0"
4
5stub-zone:
6 name: "."
7 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
8CONFIG_END
9
10SCENARIO_BEGIN Test a query name in the reply is required by resolver
11
12; K.ROOT-SERVERS.NET.
13RANGE_BEGIN 0 100
14 ADDRESS 193.0.14.129
15ENTRY_BEGIN
16MATCH opcode qtype qname
17ADJUST copy_id
18REPLY QR NOERROR
19SECTION QUESTION
20. IN NS
21SECTION ANSWER
22. IN NS K.ROOT-SERVERS.NET.
23SECTION ADDITIONAL
24K.ROOT-SERVERS.NET. IN A 193.0.14.129
25ENTRY_END
26
27ENTRY_BEGIN
28MATCH opcode subdomain
29ADJUST copy_id copy_query
30REPLY QR NOERROR
31SECTION QUESTION
32com. IN A
33SECTION AUTHORITY
34com. IN NS a.gtld-servers.net.
35SECTION ADDITIONAL
36a.gtld-servers.net. IN A 192.5.6.30
37ENTRY_END
38RANGE_END
39
40; a.gtld-servers.net.
41RANGE_BEGIN 0 100
42 ADDRESS 192.5.6.30
43ENTRY_BEGIN
44MATCH opcode qtype qname
45ADJUST copy_id
46REPLY QR NOERROR
47SECTION QUESTION
48com. IN NS
49SECTION ANSWER
50com. IN NS a.gtld-servers.net.
51SECTION ADDITIONAL
52a.gtld-servers.net. IN A 192.5.6.30
53ENTRY_END
54
55ENTRY_BEGIN
56MATCH opcode subdomain
57ADJUST copy_id copy_query
58REPLY QR NOERROR
59SECTION QUESTION
60example.com. IN A
61SECTION AUTHORITY
62example.com. IN NS ns.example.com.
63SECTION ADDITIONAL
64ns.example.com. IN A 1.2.3.4
65ENTRY_END
66RANGE_END
67
68; ns.example.com.
69RANGE_BEGIN 0 100
70 ADDRESS 1.2.3.4
71ENTRY_BEGIN
72MATCH opcode qtype qname
73ADJUST copy_id
74REPLY QR NOERROR
75SECTION QUESTION
76example.com. IN NS
77SECTION ANSWER
78example.com. IN NS ns.example.com.
79SECTION ADDITIONAL
80ns.example.com. IN A 1.2.3.4
81ENTRY_END
82
83; always the same reply since we cannot match anything from the qsection.
84ENTRY_BEGIN
85MATCH opcode
86ADJUST copy_id
87REPLY QR NOERROR
88SECTION QUESTION
89; no query section!
90; www.example.com. IN A
91SECTION ANSWER
92www.example.com. IN A 10.20.30.40
93SECTION AUTHORITY
94example.com. IN NS ns.example.com.
95SECTION ADDITIONAL
96ns.example.com. IN A 1.2.3.4
97ENTRY_END
98RANGE_END
99
100STEP 1 QUERY
101ENTRY_BEGIN
102REPLY RD
103SECTION QUESTION
104www.example.com. IN A
105ENTRY_END
106
107; recursion happens here.
108
109; the query name is echoed properly to *our* client
110STEP 10 CHECK_ANSWER
111ENTRY_BEGIN
112MATCH all
113REPLY QR RD RA SERVFAIL
114SECTION QUESTION
115www.example.com. IN A
116ENTRY_END
117
118SCENARIO_END