Commit c8c884b7 authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

made defaults for max-cache-ttl and max-ncache-ttl the same as in

BIND 8: 7 days and 3 hours, respectively
parent 311918e5
...@@ -635,7 +635,7 @@ configure_view(dns_view_t *view, dns_c_ctx_t *cctx, dns_c_view_t *cview, ...@@ -635,7 +635,7 @@ configure_view(dns_view_t *view, dns_c_ctx_t *cctx, dns_c_view_t *cview,
if (result != ISC_R_SUCCESS) if (result != ISC_R_SUCCESS)
result = dns_c_ctx_getmaxcachettl(cctx, &val); result = dns_c_ctx_getmaxcachettl(cctx, &val);
if (result != ISC_R_SUCCESS) if (result != ISC_R_SUCCESS)
val = 30 * 24 * 3600; val = 7 * 24 * 3600;
view->maxcachettl = val; view->maxcachettl = val;
} }
{ {
......
...@@ -142,8 +142,8 @@ dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass, ...@@ -142,8 +142,8 @@ dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass,
view->recursionacl = NULL; view->recursionacl = NULL;
view->requestixfr = ISC_TRUE; view->requestixfr = ISC_TRUE;
view->provideixfr = ISC_TRUE; view->provideixfr = ISC_TRUE;
view->maxcachettl = 30 * 24 * 3600; view->maxcachettl = 7 * 24 * 3600;
view->maxncachettl = 24 * 3600; view->maxncachettl = 3 * 3600;
result = dns_peerlist_new(view->mctx, &view->peers); result = dns_peerlist_new(view->mctx, &view->peers);
if (result != ISC_R_SUCCESS) if (result != ISC_R_SUCCESS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment