mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
Clarify error message about missing inline-signing & dnssec-policy
(cherry picked from commit 058c1744ba
)
This commit is contained in:
@@ -491,7 +491,7 @@ n=`expr $n + 1`
|
|||||||
echo_i "checking named-checkconf kasp errors ($n)"
|
echo_i "checking named-checkconf kasp errors ($n)"
|
||||||
ret=0
|
ret=0
|
||||||
$CHECKCONF kasp-and-other-dnssec-options.conf > checkconf.out$n 2>&1 && ret=1
|
$CHECKCONF kasp-and-other-dnssec-options.conf > checkconf.out$n 2>&1 && ret=1
|
||||||
grep "'dnssec-policy;' requires dynamic DNS or inline-signing to be configured for the zone" < checkconf.out$n > /dev/null || ret=1
|
grep "'inline-signing yes;' must also be configured explicitly for zones using dnssec-policy without a configured 'allow-update' or 'update-policy'" < checkconf.out$n > /dev/null || ret=1
|
||||||
grep "'auto-dnssec maintain;' cannot be configured if dnssec-policy is also set" < checkconf.out$n > /dev/null || ret=1
|
grep "'auto-dnssec maintain;' cannot be configured if dnssec-policy is also set" < checkconf.out$n > /dev/null || ret=1
|
||||||
grep "dnskey-sig-validity: cannot be configured if dnssec-policy is also set" < checkconf.out$n > /dev/null || ret=1
|
grep "dnskey-sig-validity: cannot be configured if dnssec-policy is also set" < checkconf.out$n > /dev/null || ret=1
|
||||||
grep "dnssec-dnskey-kskonly: cannot be configured if dnssec-policy is also set" < checkconf.out$n > /dev/null || ret=1
|
grep "dnssec-dnskey-kskonly: cannot be configured if dnssec-policy is also set" < checkconf.out$n > /dev/null || ret=1
|
||||||
|
@@ -3447,11 +3447,16 @@ check_zoneconf(const cfg_obj_t *zconfig, const cfg_obj_t *voptions,
|
|||||||
if (has_dnssecpolicy) {
|
if (has_dnssecpolicy) {
|
||||||
if (!ddns && !signing) {
|
if (!ddns && !signing) {
|
||||||
cfg_obj_log(kasp, logctx, ISC_LOG_ERROR,
|
cfg_obj_log(kasp, logctx, ISC_LOG_ERROR,
|
||||||
"'dnssec-policy;' requires%s "
|
"'inline-signing yes;' must also "
|
||||||
"inline-signing to be configured "
|
"be configured explicitly for "
|
||||||
"for the zone",
|
"zones using dnssec-policy%s. See "
|
||||||
|
"https://kb.isc.org/docs/"
|
||||||
|
"dnssec-policy-requires-dynamic-"
|
||||||
|
"dns-or-inline-signing",
|
||||||
(ztype == CFG_ZONE_PRIMARY)
|
(ztype == CFG_ZONE_PRIMARY)
|
||||||
? " dynamic DNS or"
|
? " without a configured "
|
||||||
|
"'allow-update' or "
|
||||||
|
"'update-policy'"
|
||||||
: "");
|
: "");
|
||||||
result = ISC_R_FAILURE;
|
result = ISC_R_FAILURE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user