max-ncache-ttl 10800; /* 3 hours */\n\
max-recursion-depth 7;\n\
max-recursion-queries 32;\n\
+ max-query-restarts 11;\n\
max-stale-ttl 86400; /* 1 day */\n\
message-compression yes;\n\
min-ncache-ttl 0; /* 0 hours */\n\
INSIST(result == ISC_R_SUCCESS);
dns_resolver_setmaxqueries(view->resolver, cfg_obj_asuint32(obj));
+ obj = NULL;
+ result = named_config_get(maps, "max-query-restarts", &obj);
+ INSIST(result == ISC_R_SUCCESS);
+ dns_view_setmaxrestarts(view, cfg_obj_asuint32(obj));
+
obj = NULL;
result = named_config_get(maps, "fetches-per-zone", &obj);
INSIST(result == ISC_R_SUCCESS);
algorithm hmac-sha256;
};
+key restart16 {
+ secret "1234abcd8765";
+ algorithm @DEFAULT_HMAC@;
+};
+
controls {
inet 10.53.0.7 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
};
-zone "." {
- type hint;
- file "root.hint";
+view restart16 {
+ match-clients { key restart16; none; };
+ max-query-restarts 16;
+
+ zone "." {
+ type hint;
+ file "root.hint";
+ };
+};
+
+view default {
+ zone "." {
+ type hint;
+ file "root.hint";
+ };
};
check-names primary warn;
check-names secondary ignore;
max-cache-size 20000000000000;
+ max-query-restarts 10;
nta-lifetime 604800;
nta-recheck 604800;
validate-except {
max-ixfr-ratio unlimited;
};
dnssec-validation auto;
+ max-query-restarts 15;
zone-statistics terse;
};
view "second" {
is a CNAME, then the subsequent lookup for the target of the CNAME is
counted separately.) The default is 32.
+``max-query-restarts``
+ This sets the maximum number of successive CNAME targets to follow
+ when resolving a client query, before terminating the query to avoid a
+ CNAME loop. Valid values are 1 to 255. The default is 11.
+
``notify-delay``
This sets the delay, in seconds, between sending sets of NOTIFY messages
for a zone. Whenever a NOTIFY message is sent for a zone, a timer will
max-ixfr-ratio ( unlimited | <percentage> );
max-journal-size ( default | unlimited | <sizeval> );
max-ncache-ttl <duration>;
+ max-query-restarts <integer>;
max-records <integer>;
max-records-per-type <integer>;
max-recursion-depth <integer>;
max-ixfr-ratio ( unlimited | <percentage> );
max-journal-size ( default | unlimited | <sizeval> );
max-ncache-ttl <duration>;
+ max-query-restarts <integer>;
max-records <integer>;
max-records-per-type <integer>;
max-recursion-depth <integer>;
max-ixfr-ratio ( unlimited | <percentage> );
max-journal-size ( default | unlimited | <sizeval> );
max-ncache-ttl <duration>;
+ max-query-restarts <integer>;
max-records <integer>;
max-records-per-type <integer>;
max-recursion-depth <integer>;
max-ixfr-ratio ( unlimited | <percentage> );
max-journal-size ( default | unlimited | <sizeval> );
max-ncache-ttl <duration>;
+ max-query-restarts <integer>;
max-records <integer>;
max-records-per-type <integer>;
max-recursion-depth <integer>;
}
}
+ obj = NULL;
+ (void)cfg_map_get(options, "max-query-restarts", &obj);
+ if (obj != NULL) {
+ uint32_t restarts = cfg_obj_asuint32(obj);
+ if (restarts == 0 || restarts > 255) {
+ cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
+ "'max-query-restarts' is out of "
+ "range 1..255)");
+ if (result == ISC_R_SUCCESS) {
+ result = ISC_R_RANGE;
+ }
+ }
+ }
+
return (result);
}
{ "max-ncache-ttl", &cfg_type_duration, 0 },
{ "max-recursion-depth", &cfg_type_uint32, 0 },
{ "max-recursion-queries", &cfg_type_uint32, 0 },
+ { "max-query-restarts", &cfg_type_uint32, 0 },
{ "max-stale-ttl", &cfg_type_duration, 0 },
{ "max-udp-size", &cfg_type_uint32, 0 },
{ "message-compression", &cfg_type_boolean, 0 },