mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-28 21:17:54 +00:00
add named.conf option root-key-sentinel
This commit is contained in:
parent
8fc9f64df9
commit
68e9315c7d
@ -195,6 +195,7 @@ options {\n\
|
|||||||
resolver-nonbackoff-tries 3;\n\
|
resolver-nonbackoff-tries 3;\n\
|
||||||
resolver-retry-interval 800; /* in milliseconds */\n\
|
resolver-retry-interval 800; /* in milliseconds */\n\
|
||||||
# rfc2308-type1 <obsolete>;\n\
|
# rfc2308-type1 <obsolete>;\n\
|
||||||
|
root-key-sentinel yes;\n\
|
||||||
servfail-ttl 1;\n\
|
servfail-ttl 1;\n\
|
||||||
# sortlist <none>\n\
|
# sortlist <none>\n\
|
||||||
stale-answer-enable false;\n\
|
stale-answer-enable false;\n\
|
||||||
|
@ -4682,6 +4682,11 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewlist,
|
|||||||
INSIST(result == ISC_R_SUCCESS);
|
INSIST(result == ISC_R_SUCCESS);
|
||||||
view->trust_anchor_telemetry = cfg_obj_asboolean(obj);
|
view->trust_anchor_telemetry = cfg_obj_asboolean(obj);
|
||||||
|
|
||||||
|
obj = NULL;
|
||||||
|
result = named_config_get(maps, "root-key-sentinel", &obj);
|
||||||
|
INSIST(result == ISC_R_SUCCESS);
|
||||||
|
view->root_key_sentinel = cfg_obj_asboolean(obj);
|
||||||
|
|
||||||
CHECK(configure_view_acl(vconfig, config, named_g_config,
|
CHECK(configure_view_acl(vconfig, config, named_g_config,
|
||||||
"allow-query-cache-on", NULL, actx,
|
"allow-query-cache-on", NULL, actx,
|
||||||
named_g_mctx, &view->cacheonacl));
|
named_g_mctx, &view->cacheonacl));
|
||||||
|
@ -5845,6 +5845,17 @@ options {
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><command>root-key-sentinel</command></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Respond to root key sentinel probes as described in
|
||||||
|
draft-ietf-dnsop-kskroll-sentinel-08. The default is
|
||||||
|
<userinput>yes</userinput>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><command>maintain-ixfr-base</command></term>
|
<term><command>maintain-ixfr-base</command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
@ -318,6 +318,7 @@ options {
|
|||||||
} ];
|
} ];
|
||||||
rfc2308-type1 <boolean>; // not yet implemented
|
rfc2308-type1 <boolean>; // not yet implemented
|
||||||
root-delegation-only [ exclude { <quoted_string>; ... } ];
|
root-delegation-only [ exclude { <quoted_string>; ... } ];
|
||||||
|
root-key-sentinel <boolean>;
|
||||||
rrset-order { [ class <string> ] [ type <string> ] [ name
|
rrset-order { [ class <string> ] [ type <string> ] [ name
|
||||||
<quoted_string> ] <string> <string>; ... };
|
<quoted_string> ] <string> <string>; ... };
|
||||||
secroots-file <quoted_string>;
|
secroots-file <quoted_string>;
|
||||||
@ -643,6 +644,7 @@ view <string> [ <class> ] {
|
|||||||
dnsrps-enable <boolean> ] [ dnsrps-options { <unspecified-text>
|
dnsrps-enable <boolean> ] [ dnsrps-options { <unspecified-text>
|
||||||
} ];
|
} ];
|
||||||
rfc2308-type1 <boolean>; // not yet implemented
|
rfc2308-type1 <boolean>; // not yet implemented
|
||||||
|
root-key-sentinel <boolean>;
|
||||||
root-delegation-only [ exclude { <quoted_string>; ... } ];
|
root-delegation-only [ exclude { <quoted_string>; ... } ];
|
||||||
rrset-order { [ class <string> ] [ type <string> ] [ name
|
rrset-order { [ class <string> ] [ type <string> ] [ name
|
||||||
<quoted_string> ] <string> <string>; ... };
|
<quoted_string> ] <string> <string>; ... };
|
||||||
|
@ -125,6 +125,7 @@ struct dns_view {
|
|||||||
isc_boolean_t requireservercookie;
|
isc_boolean_t requireservercookie;
|
||||||
isc_boolean_t synthfromdnssec;
|
isc_boolean_t synthfromdnssec;
|
||||||
isc_boolean_t trust_anchor_telemetry;
|
isc_boolean_t trust_anchor_telemetry;
|
||||||
|
isc_boolean_t root_key_sentinel;
|
||||||
dns_transfer_format_t transfer_format;
|
dns_transfer_format_t transfer_format;
|
||||||
dns_acl_t * cacheacl;
|
dns_acl_t * cacheacl;
|
||||||
dns_acl_t * cacheonacl;
|
dns_acl_t * cacheonacl;
|
||||||
|
@ -242,6 +242,7 @@ dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass,
|
|||||||
view->requireservercookie = ISC_FALSE;
|
view->requireservercookie = ISC_FALSE;
|
||||||
view->synthfromdnssec = ISC_TRUE;
|
view->synthfromdnssec = ISC_TRUE;
|
||||||
view->trust_anchor_telemetry = ISC_TRUE;
|
view->trust_anchor_telemetry = ISC_TRUE;
|
||||||
|
view->root_key_sentinel = ISC_TRUE;
|
||||||
view->new_zone_dir = NULL;
|
view->new_zone_dir = NULL;
|
||||||
view->new_zone_file = NULL;
|
view->new_zone_file = NULL;
|
||||||
view->new_zone_db = NULL;
|
view->new_zone_db = NULL;
|
||||||
|
@ -1958,6 +1958,7 @@ view_clauses[] = {
|
|||||||
{ "response-policy", &cfg_type_rpz, 0 },
|
{ "response-policy", &cfg_type_rpz, 0 },
|
||||||
{ "rfc2308-type1", &cfg_type_boolean, CFG_CLAUSEFLAG_NYI },
|
{ "rfc2308-type1", &cfg_type_boolean, CFG_CLAUSEFLAG_NYI },
|
||||||
{ "root-delegation-only", &cfg_type_optional_exclude, 0 },
|
{ "root-delegation-only", &cfg_type_optional_exclude, 0 },
|
||||||
|
{ "root-key-sentinel", &cfg_type_boolean, 0 },
|
||||||
{ "rrset-order", &cfg_type_rrsetorder, 0 },
|
{ "rrset-order", &cfg_type_rrsetorder, 0 },
|
||||||
{ "send-cookie", &cfg_type_boolean, 0 },
|
{ "send-cookie", &cfg_type_boolean, 0 },
|
||||||
{ "servfail-ttl", &cfg_type_ttlval, 0 },
|
{ "servfail-ttl", &cfg_type_ttlval, 0 },
|
||||||
|
@ -5227,7 +5227,8 @@ ns__query_start(query_ctx_t *qctx) {
|
|||||||
/*
|
/*
|
||||||
* Setup for root key sentinel processing.
|
* Setup for root key sentinel processing.
|
||||||
*/
|
*/
|
||||||
if (qctx->client->query.restarts == 0 &&
|
if (qctx->client->view->root_key_sentinel &&
|
||||||
|
qctx->client->query.restarts == 0 &&
|
||||||
(qctx->qtype == dns_rdatatype_a ||
|
(qctx->qtype == dns_rdatatype_a ||
|
||||||
qctx->qtype == dns_rdatatype_aaaa) &&
|
qctx->qtype == dns_rdatatype_aaaa) &&
|
||||||
(qctx->client->message->flags & DNS_MESSAGEFLAG_CD) == 0)
|
(qctx->client->message->flags & DNS_MESSAGEFLAG_CD) == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user