``domain-metadata-cache-ttl``
-----------------------------
-- Integer
-- Default: 60
+.. deprecated:: 4.5.0
+ Renamed to :ref:`setting-zone-metadata-cache-ttl`.
Seconds to cache domain metadata from the database. A value of 0
disables caching.
Seconds to cache a list of all known zones. A value of 0 will disable the cache.
If your backends do not respond to unknown or dynamically generated zones, it is suggested to enable :ref:`setting-consistent-backends` and set this option to `60`.
+
+.. _setting-zone-metadata-cache-ttl:
+
+``zone-metadata-cache-ttl``
+-----------------------------
+
+.. versionchanged:: 4.5.0
+ This was called :ref:`setting-domain-metadata-cache-ttl` before 4.5.0.
+
+- Integer
+- Default: 60
+
+Seconds to cache zone metadata from the database. A value of 0
+disables caching.
* :ref:`setting-slave-renotify` is now :ref:`setting-secondary-do-renotify`
* :ref:`setting-slave` is now :ref:`setting-secondary`
* :ref:`setting-superslave` is now :ref:`setting-autosecondary`
+* :ref:`setting-domain-metadata-cache-ttl` is now :ref:`setting-zone-metadata-ttl`
Changed defaults
~~~~~~~~~~~~~~~~
::arg().set("default-soa-edit","Default SOA-EDIT value")="";
::arg().set("default-soa-edit-signed","Default SOA-EDIT value for signed zones")="";
::arg().set("dnssec-key-cache-ttl","Seconds to cache DNSSEC keys from the database")="30";
- ::arg().set("domain-metadata-cache-ttl","Seconds to cache domain metadata from the database")="60";
+ ::arg().set("domain-metadata-cache-ttl", "Seconds to cache zone metadata from the database") = "0";
+ ::arg().set("zone-metadata-cache-ttl", "Seconds to cache zone metadata from the database") = "60";
::arg().set("trusted-notification-proxy", "IP address of incoming notification proxy")="";
::arg().set("slave-renotify", "If we should send out notifications for secondaried updates")="no";
d_metaUpdate=false;
}
- static int ttl = ::arg().asNum("domain-metadata-cache-ttl");
+ static int ttl = ::arg().asNum("zone-metadata-cache-ttl");
if(!((++s_ops) % 100000)) {
cleanup();
::arg().set("default-soa-content","Default SOA content")="a.misconfigured.dns.server.invalid hostmaster.@ 0 10800 3600 604800 3600";
::arg().set("chroot","Switch to this chroot jail")="";
::arg().set("dnssec-key-cache-ttl","Seconds to cache DNSSEC keys from the database")="30";
- ::arg().set("domain-metadata-cache-ttl","Seconds to cache domain metadata from the database")="60";
+ ::arg().set("domain-metadata-cache-ttl", "Seconds to cache zone metadata from the database") = "0";
+ ::arg().set("zone-metadata-cache-ttl", "Seconds to cache zone metadata from the database") = "60";
::arg().set("consistent-backends", "Assume individual domains are not divided over backends. Send only ANY lookup operations to the backend to reduce the number of lookups")="yes";
// Keep this line below all ::arg().set() statements
if (::arg().mustDo("slave-renotify")) ::arg().set("secondary-do-renotify")="yes";
if (::arg().mustDo("superslave")) ::arg().set("autosecondary")="yes";
if (::arg().mustDo("allow-unsigned-supermaster")) ::arg().set("allow-unsigned-autoprimary")="yes";
+ if (::arg().asNum("domain-metadata-cache-ttl"))
+ ::arg().set("zone-metadata-cache-ttl") = ::arg()["domain-metadata-cache-ttl"];
// this mirroring back is on purpose, so that config dumps reflect the actual setting on both names
if (::arg().mustDo("primary")) ::arg().set("master")="yes";
if (::arg().mustDo("secondary-do-renotify")) ::arg().set("slave-renotify")="yes";
if (::arg().mustDo("autosecondary")) ::arg().set("superslave")="yes";
if (::arg().mustDo("allow-unsigned-autoprimary")) ::arg().set("allow-unsigned-supermaster")="yes";
+ if (::arg().asNum("zone-metadata-cache-ttl"))
+ ::arg().set("domain-metadata-cache-ttl") = ::arg()["zone-metadata-cache-ttl"];
g_log.setLoglevel((Logger::Urgency)(::arg().asNum("loglevel")));
g_log.disableSyslog(::arg().mustDo("disable-syslog"));