set-minimum-ttl <value>::
Set minimum-ttl-override.
-trace-regex [regex]::
- Emit resolution trace for matching queries. Empty regex to disable trace.
-
top-remotes::
Shows the top-20 most active remote hosts. Statistics are over the
last 'remotes-ringbuffer-entries' queries, which defaults to 0.
+trace-regex [regex]::
+ Emit resolution trace for matching queries. Empty regex to disable trace.
+
unload-lua-script::
Unloads Lua script.
+version::
+ Report running version (available after 3.6.1)
+
wipe-cache <domain0> [domain1]::
Wipe entries from the cache. This is useful if, for example, an
important server has a new IP address, but the TTL has not yet
#include <sys/time.h>
#include "lock.hh"
#include "responsestats.hh"
+#include "version_generated.h"
#include "namespaces.hh"
pthread_mutex_t g_carbon_config_lock=PTHREAD_MUTEX_INITIALIZER;
"trace-regex [regex] emit resolution trace for matching queries (empty regex to clear trace)\n"
"top-remotes show top remotes\n"
"unload-lua-script unload Lua script\n"
+"version return Recursor version number\n"
"wipe-cache domain0 [domain1] .. wipe domain data from cache\n";
if(cmd=="get-all")
*command=&doExit;
return "bye\n";
}
+
+ if(cmd=="version") {
+ return string(PDNS_VERSION)+"\n";
+ }
if(cmd=="quit-nicely") {
*command=&doExitNicely;