]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Add ERCodeAction and RCodeAction to console completion
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 21 Feb 2019 10:52:05 +0000 (11:52 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 21 Feb 2019 10:52:05 +0000 (11:52 +0100)
pdns/dnsdist-console.cc

index 0ca1d581dd48a3f6b1722de7f118ca74c0f9ca0e..e15c663ee05fc077b690b956abdbeea0f32f055d 100644 (file)
@@ -376,6 +376,7 @@ const std::vector<ConsoleKeyword> g_consoleKeywords{
   { "dynBlockRulesGroup", true, "", "return a new DynBlockRulesGroup object" },
   { "EDNSVersionRule", true, "version", "matches queries with the specified EDNS version" },
   { "EDNSOptionRule", true, "optcode", "matches queries with the specified EDNS0 option present" },
+  { "ERCodeAction", true, "ercode", "Reply immediately by turning the query into a response with the specified EDNS extended rcode" },
   { "ERCodeRule", true, "rcode", "matches responses with the specified extended rcode (EDNS0)" },
   { "exceedNXDOMAINs", true, "rate, seconds", "get set of addresses that exceed `rate` NXDOMAIN/s over `seconds` seconds" },
   { "exceedQRate", true, "rate, seconds", "get set of address that exceed `rate` queries/s over `seconds` seconds" },
@@ -424,6 +425,7 @@ const std::vector<ConsoleKeyword> g_consoleKeywords{
   { "QNameRule", true, "qname", "matches queries with the specified qname" },
   { "QNameWireLengthRule", true, "min, max", "matches if the qname's length on the wire is less than `min` or more than `max` bytes" },
   { "QTypeRule", true, "qtype", "matches queries with the specified qtype" },
+  { "RCodeAction", true, "rcode", "Reply immediately by turning the query into a response with the specified rcode" },
   { "RCodeRule", true, "rcode", "matches responses with the specified rcode" },
   { "RegexRule", true, "regex", "matches the query name against the supplied regex" },
   { "registerDynBPFFilter", true, "DynBPFFilter", "register this dynamic BPF filter into the web interface so that its counters are displayed" },