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 same zone in different views is using different DNSSEC policies, so it 16 * may not have the same key-directory. 17 */ 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 zone "example.net" { 34 type primary; 35 dnssec-policy "default"; 36 key-directory "."; 37 file "example1.db"; 38 }; 39}; 40 41view "example2" { 42 match-clients { key "keyforview2"; }; 43 44 zone "example.net" { 45 type primary; 46 dnssec-policy "insecure"; 47 key-directory "."; 48 file "example2.db"; 49 }; 50}; 51