]> git.saurik.com Git - apple/network_cmds.git/blame - unbound/testdata/autotrust_revtp_read.rpl
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / testdata / autotrust_revtp_read.rpl
CommitLineData
89c4ed63
A
1; config options
2server:
3 target-fetch-policy: "0 0 0 0 0"
4 log-time-ascii: yes
5 val-override-date: '20091018111500'
6stub-zone:
7 name: "."
8 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
9AUTOTRUST_FILE example.com
10; autotrust trust anchor file
11;;REVOKED
12; The zone has all keys revoked, and is
13; considered as if it has no trust anchors.
14; the remainder of the file is the last probe.
15; to restart the trust anchor, overwrite this file.
16; with one containing valid DNSKEYs or DSes.
17;;id: example.com. 1
18;;last_queried: 1258962400 ;;Mon Nov 23 08:46:40 2009
19;;last_success: 1258962400 ;;Mon Nov 23 08:46:40 2009
20;;next_probe_time: ${0} ;;${ctime 0}
21;;query_failed: 0
22;;query_interval: 5400
23;;retry_time: 3600
24example.com. 10800 IN DNSKEY 385 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55710 (ksk), size = 512b} ;;state=4 [ REVOKED ] ;;count=0 ;;lastchange=1258962400 ;;Mon Nov 23 08:46:40 2009
25example.com. 10800 IN DNSKEY 385 3 5 AwEAAas/cAhCFXvBUgTSNZCvQp0pLx1dY+7rXR0hH4/3EUgWmsmbYUpI1qD0xhwKD/oYGEwAm291fyWJ9c0oVxXDEK8= ;{id = 16614 (ksk), size = 512b} ;;state=4 [ REVOKED ] ;;count=0 ;;lastchange=1258962400 ;;Mon Nov 23 08:46:40 2009
26AUTOTRUST_END
27CONFIG_END
28
29SCENARIO_BEGIN Test autotrust with revoked trust point read back from config
30
31; K-ROOT
32RANGE_BEGIN 0 100
33 ADDRESS 193.0.14.129
34ENTRY_BEGIN
35MATCH opcode qname qtype
36ADJUST copy_id copy_query
37REPLY QR AA
38SECTION QUESTION
39. IN NS
40SECTION ANSWER
41. IN NS k.root-servers.net.
42SECTION ADDITIONAL
43k.root-servers.net IN A 193.0.14.129
44ENTRY_END
45
46ENTRY_BEGIN
47MATCH opcode subdomain
48ADJUST copy_id copy_query
49REPLY QR
50SECTION QUESTION
51com. IN NS
52SECTION AUTHORITY
53com. IN NS a.gtld-servers.net.
54SECTION ADDITIONAL
55a.gtld-servers.net. IN A 192.5.6.30
56ENTRY_END
57RANGE_END
58
59; a.gtld-servers.net.
60RANGE_BEGIN 0 100
61 ADDRESS 192.5.6.30
62ENTRY_BEGIN
63MATCH opcode subdomain
64ADJUST copy_id copy_query
65REPLY QR
66SECTION QUESTION
67example.com. IN NS
68SECTION AUTHORITY
69example.com. IN NS ns.example.com.
70SECTION ADDITIONAL
71ns.example.com. IN A 1.2.3.4
72ENTRY_END
73RANGE_END
74
75; ns.example.com.
76RANGE_BEGIN 0 100
77 ADDRESS 1.2.3.4
78ENTRY_BEGIN
79MATCH opcode subdomain
80ADJUST copy_id copy_query
81REPLY QR
82SECTION QUESTION
83www.example.com. IN A
84SECTION ANSWER
85www.example.com. IN A 10.20.30.40
86ENTRY_END
87RANGE_END
88
89RANGE_END
90
91STEP 20 QUERY
92ENTRY_BEGIN
93REPLY RD DO
94SECTION QUESTION
95www.example.com. IN A
96ENTRY_END
97
98; correct unsigned response works after trust point revocation.
99STEP 30 CHECK_ANSWER
100ENTRY_BEGIN
101MATCH all
102REPLY QR RD RA DO NOERROR
103SECTION QUESTION
104www.example.com. IN A
105SECTION ANSWER
106www.example.com. IN A 10.20.30.40
107ENTRY_END
108
109SCENARIO_END