From: Richard Gibson Date: Fri, 31 Aug 2018 03:29:28 +0000 (-0400) Subject: dnsdist: Document new Lua methods X-Git-Tag: rec-4.2.0-alpha1~16^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6410085b392f0f243a85a83fe54f2aa46fb7a2a;p=thirdparty%2Fpdns.git dnsdist: Document new Lua methods --- diff --git a/pdns/dnsdistdist/docs/reference/dq.rst b/pdns/dnsdistdist/docs/reference/dq.rst index 75cbb556c5..a716cfd6e1 100644 --- a/pdns/dnsdistdist/docs/reference/dq.rst +++ b/pdns/dnsdistdist/docs/reference/dq.rst @@ -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