]> granicus.if.org Git - pdns/commitdiff
dnsdist: Add completion for `setStaleCacheEntriesTTL()`
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 31 Jul 2017 08:08:03 +0000 (10:08 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 31 Jul 2017 08:08:03 +0000 (10:08 +0200)
pdns/dnsdist-console.cc

index 9c2d3a0ae1698bef3d247aeac70e35e8ef0f86e7..2034989b20eb548e9b2b971be968cd9667a0c289 100644 (file)
@@ -379,6 +379,7 @@ const std::vector<ConsoleKeyword> g_consoleKeywords{
   { "setServerPolicy", true, "policy", "set server selection policy to that policy" },
   { "setServerPolicyLua", true, "name, function", "set server selection policy to one named 'name' and provided by 'function'" },
   { "setServFailWhenNoServer", true, "bool", "if set, return a ServFail when no servers are available, instead of the default behaviour of dropping the query" },
+  { "setStaleCacheEntriesTTL", true, "n", "allows using cache entries expired for at most n seconds when there is no backend available to answer for a query" },
   { "setTCPDownstreamCleanupInterval", true, "interval", "minimum interval in seconds between two cleanups of the idle TCP downstream connections" },
   { "setTCPUseSinglePipe", true, "bool", "whether the incoming TCP connections should be put into a single queue instead of using per-thread queues. Defaults to false" },
   { "setTCPRecvTimeout", true, "n", "set the read timeout on TCP connections from the client, in seconds" },