]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testdata/iter_ds_locate_ns_cname.rpl
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / testdata / iter_ds_locate_ns_cname.rpl
1 ; config options
2 server:
3 target-fetch-policy: "0 0 0 0 0"
4
5 stub-zone:
6 name: "."
7 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
8 CONFIG_END
9
10 SCENARIO_BEGIN Test locate of NS records for DS with CNAME
11
12 ; K.ROOT-SERVERS.NET.
13 RANGE_BEGIN 0 100
14 ADDRESS 193.0.14.129
15 ENTRY_BEGIN
16 MATCH opcode qtype qname
17 ADJUST copy_id
18 REPLY QR AA NOERROR
19 SECTION QUESTION
20 . IN NS
21 SECTION ANSWER
22 . IN NS K.ROOT-SERVERS.NET.
23 SECTION ADDITIONAL
24 K.ROOT-SERVERS.NET. IN A 193.0.14.129
25 ENTRY_END
26
27 ; content of root-servers.net
28 ENTRY_BEGIN
29 MATCH opcode qtype qname
30 ADJUST copy_id
31 REPLY QR AA NOERROR
32 SECTION QUESTION
33 root-servers.net. IN NS
34 SECTION ANSWER
35 root-servers.net. IN NS K.ROOT-SERVERS.NET.
36 SECTION ADDITIONAL
37 K.ROOT-SERVERS.NET. IN A 193.0.14.129
38 ENTRY_END
39
40 ENTRY_BEGIN
41 MATCH opcode qtype qname
42 ADJUST copy_id
43 REPLY QR AA NOERROR
44 SECTION QUESTION
45 k.root-servers.net. IN A
46 SECTION ANSWER
47 K.ROOT-SERVERS.NET. IN A 193.0.14.129
48 SECTION AUTHORITY
49 root-servers.net. IN NS K.ROOT-SERVERS.NET.
50 ENTRY_END
51
52 ENTRY_BEGIN
53 MATCH opcode qtype qname
54 ADJUST copy_id
55 REPLY QR AA NOERROR
56 SECTION QUESTION
57 k.root-servers.net. IN AAAA
58 SECTION ANSWER
59 SECTION AUTHORITY
60 root-servers.net. IN SOA K.ROOT-SERVERS.NET. hostmaster. 1 2 3 4 5
61 ENTRY_END
62
63 ENTRY_BEGIN
64 MATCH opcode qtype qname
65 ADJUST copy_id
66 REPLY QR AA NOERROR
67 SECTION QUESTION
68 root-servers.net. IN DS
69 SECTION ANSWER
70 root-servers.net. IN CNAME blabla.com.
71 ENTRY_END
72
73 ENTRY_BEGIN
74 MATCH opcode subdomain
75 ADJUST copy_id copy_query
76 REPLY QR NOERROR
77 SECTION QUESTION
78 net. IN A
79 SECTION AUTHORITY
80 net. IN NS a.gtld-servers.net.
81 SECTION ADDITIONAL
82 a.gtld-servers.net. IN A 192.5.6.30
83 ENTRY_END
84
85 ENTRY_BEGIN
86 MATCH opcode qtype qname
87 ADJUST copy_id
88 REPLY QR AA NXDOMAIN
89 SECTION QUESTION
90 blabla.com. IN DS
91 SECTION ANSWER
92 SECTION AUTHORITY
93 . IN SOA K.ROOT-SERVERS.NET. hostmaster. 1 2 3 4 5
94 ENTRY_END
95 RANGE_END
96
97 ; a.gtld-servers.net.
98 RANGE_BEGIN 0 100
99 ADDRESS 192.5.6.30
100 ENTRY_BEGIN
101 MATCH opcode qtype qname
102 ADJUST copy_id
103 REPLY QR AA NOERROR
104 SECTION QUESTION
105 net. IN NS
106 SECTION ANSWER
107 net. IN NS a.gtld-servers.net.
108 SECTION ADDITIONAL
109 a.gtld-servers.net. IN A 192.5.6.30
110 ENTRY_END
111
112 ENTRY_BEGIN
113 MATCH opcode qtype qname
114 ADJUST copy_id
115 REPLY QR AA NOERROR
116 SECTION QUESTION
117 root-servers.net. IN DS
118 SECTION AUTHORITY
119 net. IN SOA a.gtld-servers.net. hostmaster. 2 3 4 5 6
120 ENTRY_END
121
122 ENTRY_BEGIN
123 MATCH opcode subdomain
124 ADJUST copy_id copy_query
125 REPLY QR NOERROR
126 SECTION QUESTION
127 root-servers.net. IN A
128 SECTION AUTHORITY
129 root-servers.net. IN NS K.ROOT-SERVERS.NET.
130 SECTION ADDITIONAL
131 K.ROOT-SERVERS.NET. IN A 193.0.14.129
132 ENTRY_END
133 RANGE_END
134
135 STEP 1 QUERY
136 ENTRY_BEGIN
137 REPLY RD
138 SECTION QUESTION
139 root-servers.net. IN DS
140 ENTRY_END
141
142 ; recursion happens here.
143 STEP 10 CHECK_ANSWER
144 ENTRY_BEGIN
145 MATCH all
146 REPLY QR RD RA NOERROR
147 SECTION QUESTION
148 root-servers.net. IN DS
149 SECTION ANSWER
150 SECTION AUTHORITY
151 net. IN SOA a.gtld-servers.net. hostmaster. 2 3 4 5 6
152 SECTION ADDITIONAL
153 ENTRY_END
154
155 SCENARIO_END