summaryrefslogtreecommitdiffstats
path: root/bin/tests/system/nsec3/ns3/named2.conf.in
blob: 084bba3f0b36547bdf636357a07edd2990873ed7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
/*
 * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
 *
 * SPDX-License-Identifier: MPL-2.0
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0.  If a copy of the MPL was not distributed with this
 * file, you can obtain one at https://mozilla.org/MPL/2.0/.
 *
 * See the COPYRIGHT file distributed with this work for additional
 * information regarding copyright ownership.
 */

// NS3

dnssec-policy "nsec" {
	// no need to change configuration: if no 'nsec3param' is set,
	// NSEC will be used;
};

dnssec-policy "rsasha1" {
	keys {
		csk lifetime unlimited algorithm rsasha1;
	};
};

dnssec-policy "nsec3" {
	nsec3param;
};

dnssec-policy "optout" {
	nsec3param optout yes;
};

dnssec-policy "nsec3-other" {
	nsec3param iterations 11 optout yes salt-length 0;
};

options {
	query-source address 10.53.0.3;
	notify-source 10.53.0.3;
	transfer-source 10.53.0.3;
	port @PORT@;
	pid-file "named.pid";
	listen-on { 10.53.0.3; };
	listen-on-v6 { none; };
	allow-transfer { any; };
	recursion no;
};

key rndc_key {
	secret "1234abcd8765";
	algorithm @DEFAULT_HMAC@;
};

controls {
	inet 10.53.0.3 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
};

/* This zone starts with NSEC, but will be reconfigured to use NSEC3. */
zone "nsec-to-nsec3.kasp" {
	type primary;
	file "nsec-to-nsec3.kasp.db";
	inline-signing yes;
	//dnssec-policy "nsec";
	dnssec-policy "nsec3";
};

/*
 * This zone starts with NSEC, but will be reconfigured to use NSEC3.
 * This should work despite the incompatible RSAHSHA1 algorithm,
 * because the DS is still in hidden state.
 */
zone "rsasha1-to-nsec3.kasp" {
	type primary;
	file "rsasha1-to-nsec3.kasp.db";
	inline-signing yes;
	//dnssec-policy "rsasha1";
	dnssec-policy "nsec3";
};

/*
 * This zone starts with NSEC, but will be reconfigured to use NSEC3.
 * This should block because RSASHA1 is not compatible with NSEC3,
 * and the DS is published.
 */
zone "rsasha1-to-nsec3-wait.kasp" {
	type primary;
	file "rsasha1-to-nsec3-wait.kasp.db";
	inline-signing yes;
	//dnssec-policy "rsasha1";
	dnssec-policy "nsec3";
};

/*
 * This zone starts with NSEC3, but will be reconfigured to use NSEC with an
 * NSEC only algorithm. This should work despite the incompatible RSAHSHA1
 * algorithm, because the DS is still in hidden state.
 */
zone "nsec3-to-rsasha1.kasp" {
	type primary;
	file "nsec3-to-rsasha1.kasp.db";
	inline-signing yes;
	//dnssec-policy "nsec3";
	dnssec-policy "rsasha1";
};

/*
 * This zone starts with NSEC3, but will be reconfigured to use NSEC with an
 * NSEC only algorithm. This should also be fine because we are allowed
 * to change to NSEC with any algorithm, then we can also publish the new
 * DNSKEY and signatures of the RSASHA1 algorithm.
 */
zone "nsec3-to-rsasha1-ds.kasp" {
	type primary;
	file "nsec3-to-rsasha1-ds.kasp.db";
	inline-signing yes;
	//dnssec-policy "nsec3";
	dnssec-policy "rsasha1";
};

/* These zones use the default NSEC3 settings. */
zone "nsec3.kasp" {
	type primary;
	file "nsec3.kasp.db";
	inline-signing yes;
	dnssec-policy "nsec3";
};

zone "nsec3-dynamic.kasp" {
	type primary;
	file "nsec3-dynamic.kasp.db";
	dnssec-policy "nsec3";
	allow-update { any; };
};

/* This zone uses non-default NSEC3 settings. */
zone "nsec3-other.kasp" {
	type primary;
	file "nsec3-other.kasp.db";
	inline-signing yes;
	dnssec-policy "nsec3-other";
};

/* These zone will be reconfigured to use other NSEC3 settings. */
zone "nsec3-change.kasp" {
	type primary;
	file "nsec3-change.kasp.db";
	inline-signing yes;
	//dnssec-policy "nsec3";
	dnssec-policy "nsec3-other";
};

zone "nsec3-dynamic-change.kasp" {
	type primary;
	file "nsec3-dynamic-change.kasp.db";
	//dnssec-policy "nsec3";
	dnssec-policy "nsec3-other";
	allow-update { any; };
};

/* The zone will be reconfigured to use opt-out. */
zone "nsec3-to-optout.kasp" {
	type primary;
	file "nsec3-to-optout.kasp.db";
	inline-signing yes;
	//dnssec-policy "nsec3";
	dnssec-policy "optout";
};

/* The zone will be reconfigured to disable opt-out. */
zone "nsec3-from-optout.kasp" {
	type primary;
	file "nsec3-from-optout.kasp.db";
	inline-signing yes;
	//dnssec-policy "optout";
	dnssec-policy "nsec3";
};

/* The zone starts with NSEC3, but will be reconfigured to use NSEC. */
zone "nsec3-to-nsec.kasp" {
	type primary;
	file "nsec3-to-nsec.kasp.db";
	inline-signing yes;
	//dnssec-policy "nsec3";
	dnssec-policy "nsec";
};

/* The zone fails to load, but is fixed after a reload. */
zone "nsec3-fails-to-load.kasp" {
	type primary;
	file "nsec3-fails-to-load.kasp.db";
	dnssec-policy "nsec3";
	allow-update { any; };
};

/* These zones switch from dynamic to inline-signing or vice versa. */
zone "nsec3-dynamic-to-inline.kasp" {
	type primary;
	file "nsec3-dynamic-to-inline.kasp.db";
	inline-signing yes;
	dnssec-policy "nsec3";
	allow-update { any; };
};

zone "nsec3-inline-to-dynamic.kasp" {
	type primary;
	file "nsec3-inline-to-dynamic.kasp.db";
	inline-signing no;
	dnssec-policy "nsec3";
	allow-update { any; };
};