Just like with dynamic and/or inline-signing zones, check if no two or more zone configurations set the same filename. In these cases, the zone files are not read-only and named-checkconf should catch a configuration where multiple zone statements write to the same file. Add some bad configuration tests where KASP zones reference the same zone file. Update the good-kasp test to allow for two zones configure the same file name, dnssec-policy none.
62 lines
1.4 KiB
Plaintext
62 lines
1.4 KiB
Plaintext
/*
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
*
|
|
* 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 http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
* information regarding copyright ownership.
|
|
*/
|
|
|
|
/*
|
|
* This is just a random selection of DNSSEC configuration options.
|
|
*/
|
|
|
|
/* cut here */
|
|
dnssec-policy "test" {
|
|
dnskey-ttl 3600;
|
|
keys {
|
|
ksk key-directory lifetime P1Y algorithm ecdsa256;
|
|
zsk lifetime P30D algorithm 13;
|
|
csk key-directory lifetime unlimited algorithm rsasha256 2048;
|
|
};
|
|
max-zone-ttl 86400;
|
|
nsec3param iterations 5 optout no salt-length 8;
|
|
parent-ds-ttl 7200;
|
|
parent-propagation-delay PT1H;
|
|
publish-safety PT3600S;
|
|
retire-safety PT3600S;
|
|
signatures-refresh P3D;
|
|
signatures-validity P2W;
|
|
signatures-validity-dnskey P14D;
|
|
zone-propagation-delay PT5M;
|
|
};
|
|
options {
|
|
dnssec-policy "default";
|
|
};
|
|
zone "example1" {
|
|
type master;
|
|
file "example1.db";
|
|
};
|
|
zone "example2" {
|
|
type master;
|
|
file "example2.db";
|
|
dnssec-policy "test";
|
|
};
|
|
zone "example3" {
|
|
type master;
|
|
file "example3.db";
|
|
dnssec-policy "default";
|
|
};
|
|
zone "dnssec-policy-none-shared-zonefile1" {
|
|
type master;
|
|
file "shared.db";
|
|
dnssec-policy "none";
|
|
};
|
|
zone "dnssec-policy-none-shared-zonefile2" {
|
|
type master;
|
|
file "shared.db";
|
|
dnssec-policy "none";
|
|
};
|