From: Remi Gacogne Date: Thu, 21 Feb 2019 10:52:05 +0000 (+0100) Subject: dnsdist: Add ERCodeAction and RCodeAction to console completion X-Git-Tag: auth-4.2.0-beta1~9^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ece50fe25a8527696d43e2401137f63670765718;p=thirdparty%2Fpdns.git dnsdist: Add ERCodeAction and RCodeAction to console completion --- diff --git a/pdns/dnsdist-console.cc b/pdns/dnsdist-console.cc index 0ca1d581dd..e15c663ee0 100644 --- a/pdns/dnsdist-console.cc +++ b/pdns/dnsdist-console.cc @@ -376,6 +376,7 @@ const std::vector 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 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" },