1/*
2 * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
3 *
4 * SPDX-License-Identifier: MPL-2.0
5 *
6 * This Source Code Form is subject to the terms of the Mozilla Public
7 * License, v. 2.0.  If a copy of the MPL was not distributed with this
8 * file, you can obtain one at https://mozilla.org/MPL/2.0/.
9 *
10 * See the COPYRIGHT file distributed with this work for additional
11 * information regarding copyright ownership.
12 */
13
14/*
15 * The zone inherits the key-directory from the "view" level. Both views use the
16 * same key-directory, but the zone uses a different DNSSEC policy per view.
17 * This is a configuration error.
18 */
19
20key "keyforview1" {
21	algorithm @DEFAULT_HMAC@;
22	secret "YPfMoAk6h+3iN8MDRQC004iSNHY=";
23};
24
25key "keyforview2" {
26	algorithm @DEFAULT_HMAC@;
27	secret "4xILSZQnuO1UKubXHkYUsvBRPu8=";
28};
29
30view "example1" {
31	match-clients { key "keyforview1"; };
32
33	key-directory "keys";
34
35	zone "example.net" {
36		type primary;
37		dnssec-policy "default";
38		file "example1.db";
39	};
40};
41
42view "example2" {
43	match-clients { key "keyforview2"; };
44
45	key-directory "keys";
46
47	zone "example.net" {
48		type primary;
49		dnssec-policy "insecure";
50		file "example2.db";
51	};
52};
53