]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Commit TeeAction optional local parameter docs and console
authorFredericDT <frederic.dt.twh@gmail.com>
Wed, 31 Aug 2022 01:54:04 +0000 (09:54 +0800)
committerFredericDT <frederic.dt.twh@gmail.com>
Wed, 31 Aug 2022 01:55:25 +0000 (09:55 +0800)
    keywords

Signed-off-by: FredericDT <frederic.dt.twh@gmail.com>
pdns/dnsdist-console.cc
pdns/dnsdistdist/docs/rules-actions.rst

index 40415a4ae3e12cb331a82efb4cfc42865487c51e..70696b47cb7fe8a3c299bc5424a774f685e8a1f7 100644 (file)
@@ -765,7 +765,7 @@ const std::vector<ConsoleKeyword> g_consoleKeywords{
   { "TagRule", true, "name [, value]", "matches if the tag named 'name' is present, with the given 'value' matching if any" },
   { "TCAction", true, "", "create answer to query with TC and RD bits set, to move to TCP" },
   { "TCPRule", true, "[tcp]", "Matches question received over TCP if tcp is true, over UDP otherwise" },
-  { "TeeAction", true, "remote [, addECS]", "send copy of query to remote, optionally adding ECS info" },
+  { "TeeAction", true, "remote [, addECS [, local]]", "send copy of query to remote, optionally adding ECS info, optionally set local address" },
   { "testCrypto", true, "", "test of the crypto all works" },
   { "TimedIPSetRule", true, "", "Create a rule which matches a set of IP addresses which expire"}, 
   { "topBandwidth", true, "top", "show top-`top` clients that consume the most bandwidth over length of ringbuffer" },
index 9048266bfb027dcf542cfe9883cdf64435e223f3..ee74a7194378fd86b31a0acd29f548ddbd732ec7 100644 (file)
@@ -1658,10 +1658,11 @@ The following actions exist.
   Before 1.7.0 this action was performed even when the query had been received over TCP, which required the use of :func:`TCPRule` to
   prevent the TC bit from being set over TCP transports.
 
-.. function:: TeeAction(remote[, addECS])
+.. function:: TeeAction(remote[, addECS[, local]])
 
   Send copy of query to ``remote``, keep stats on responses.
   If ``addECS`` is set to true, EDNS Client Subnet information will be added to the query.
+  If ``local`` has provided a value like "192.0.2.53", dnsdist will try binding that address as local address when sending the queries.
   Subsequent rules are processed after this action.
 
   :param string remote: An IP:PORT combination to send the copied queries to