Zones read from these files (in BIND format) are served authoritatively. DNSSEC is not supported. Example:
`auth-zones=example.org=/var/zones/example.org, powerdns.com=/var/zones/powerdns.com`.
+## `statistics-interval`
+* Integer
+* Default: 1800
+* Available since: 4.1.0
+
+Interval between logging statistical summary on recursor performance.
+Use 0 to disable.
+
## `carbon-interval`
* Integer
* Default: 30
static bool g_reusePort{false};
static bool g_useOneSocketPerThread;
static bool g_gettagNeedsEDNSOptions{false};
+static time_t g_statisticsInterval;
std::unordered_set<DNSName> g_delegationOnly;
RecursorControlChannel s_rcc; // only active in thread 0
}
if(!t_id) {
- if(now.tv_sec - last_stat >= 1800) {
+ if(g_statisticsInterval > 0 && now.tv_sec - last_stat >= g_statisticsInterval) {
doStats();
last_stat=time(0);
}
g_gettagNeedsEDNSOptions = ::arg().mustDo("gettag-needs-edns-options");
+ g_statisticsInterval = ::arg().asNum("statistics-interval");
+
#ifdef SO_REUSEPORT
g_reusePort = ::arg().mustDo("reuseport");
#endif
::arg().set("carbon-ourname", "If set, overrides our reported hostname for carbon stats")="";
::arg().set("carbon-server", "If set, send metrics in carbon (graphite) format to this server IP address")="";
::arg().set("carbon-interval", "Number of seconds between carbon (graphite) updates")="30";
+ ::arg().set("statistics-interval", "Number of seconds between printing of recursor statistics, 0 to disable")="1800";
::arg().set("quiet","Suppress logging of questions and answers")="";
::arg().set("logging-facility","Facility to log messages as. 0 corresponds to local0")="";
::arg().set("config-dir","Location of configuration directory (recursor.conf)")=SYSCONFDIR;