dns_stats_t *dnssecsignstats;
dns_zonestat_level_t statlevel = dns_zonestat_none;
int seconds;
+ dns_ttl_t maxttl = 0; /* unlimited */
dns_zone_t *mayberaw = (raw != NULL) ? raw : zone;
isc_dscp_t dscp;
}
}
- obj = NULL;
- result = named_config_get(maps, "max-zone-ttl", &obj);
- if (result == ISC_R_SUCCESS) {
- dns_ttl_t maxttl = 0; /* unlimited */
-
- if (cfg_obj_isduration(obj)) {
- maxttl = cfg_obj_asduration(obj);
- }
- dns_zone_setmaxttl(zone, maxttl);
- if (raw != NULL) {
- dns_zone_setmaxttl(raw, maxttl);
- }
- }
-
obj = NULL;
result = named_config_get(maps, "max-records", &obj);
INSIST(result == ISC_R_SUCCESS && obj != NULL);
dns_zone_setjournalsize(zone, journal_size);
}
+ if (use_kasp) {
+ maxttl = dns_kasp_zonemaxttl(dns_zone_getkasp(zone));
+ } else {
+ obj = NULL;
+ result = named_config_get(maps, "max-zone-ttl", &obj);
+ if (result == ISC_R_SUCCESS) {
+ if (cfg_obj_isduration(obj)) {
+ maxttl = cfg_obj_asduration(obj);
+ }
+ }
+ }
+ dns_zone_setmaxttl(zone, maxttl);
+ if (raw != NULL) {
+ dns_zone_setmaxttl(raw, maxttl);
+ }
+
/*
* Configure update-related options. These apply to
* primary servers only.