]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Document new Lua methods
authorRichard Gibson <richard.gibson@gmail.com>
Fri, 31 Aug 2018 03:29:28 +0000 (23:29 -0400)
committerRichard Gibson <richard.gibson@gmail.com>
Tue, 16 Oct 2018 21:46:27 +0000 (17:46 -0400)
pdns/dnsdistdist/docs/reference/dq.rst

index 75cbb556c5c65453f0226b8dc25c083a5aced130..a716cfd6e19eddcc34d57ae9c85adc7aa558ac22 100644 (file)
@@ -109,6 +109,14 @@ This state can be modified from the various hooks.
 
     :returns: A table of tags, using strings as keys and values
 
+  .. method:: DNSQuestion:getTrailingData() -> table
+
+    .. versionadded:: >1.3.2
+
+    Get all data following the DNS message.
+
+    :returns: A list of 8-bit integers
+
   .. method:: DNSQuestion:sendTrap(reason)
 
     .. versionadded:: 1.2.0
@@ -134,6 +142,15 @@ This state can be modified from the various hooks.
 
     :param table tags: A table of tags, using strings as keys and values
 
+  .. method:: DNSQuestion:setTrailingData(bytes) -> bool
+
+    .. versionadded:: >1.3.2
+
+    Set the data following the DNS message, overwriting anything already present.
+
+    :param table bytes: The new data as a list of 8-bit integers
+    :returns: true if the operation succeeded, false otherwise
+
 .. _DNSResponse:
 
 DNSResponse object