/* * 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. */ /* * In view "example1" no key-directory is set, so the default is used. * In view "example2" the key-store directory is set to "." which is the * default. This should fail because the same zone in different views is using * different DNSSEC policies. */ key "keyforview1" { algorithm "hmac-sha1"; secret "YPfMoAk6h+3iN8MDRQC004iSNHY="; }; key "keyforview2" { algorithm "hmac-sha1"; secret "4xILSZQnuO1UKubXHkYUsvBRPu8="; }; key-store "store2" { directory "."; }; dnssec-policy "policy2" { keys { csk key-store "store2" lifetime unlimited algorithm 13; }; }; view "example1" { match-clients { key "keyforview1"; }; zone "example.net" { type primary; dnssec-policy "default"; file "example1.db"; }; }; view "example2" { match-clients { key "keyforview2"; }; zone "example.net" { type primary; dnssec-policy "policy2"; file "example2.db"; }; };