From: Remi Gacogne Date: Thu, 5 May 2022 15:39:00 +0000 (+0200) Subject: rec: Document a few missing DNSQuestion attributes X-Git-Tag: auth-4.8.0-alpha0~105^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11607%2Fhead;p=thirdparty%2Fpdns.git rec: Document a few missing DNSQuestion attributes --- diff --git a/pdns/recursordist/docs/lua-scripting/dnsrecord.rst b/pdns/recursordist/docs/lua-scripting/dnsrecord.rst index 4b386b284b..ff1002cf00 100644 --- a/pdns/recursordist/docs/lua-scripting/dnsrecord.rst +++ b/pdns/recursordist/docs/lua-scripting/dnsrecord.rst @@ -1,7 +1,7 @@ DNS Record ========== -DNS record objects are returned by :meth:`DNSQuestion:getRecords`. +DNS record objects are returned by :meth:`DNSQuestion:getRecords()` and accepted by :meth:`DNSQuestion:addAnswer()`, :meth:`DNSQuestion:addRecord()` and :meth:`DNSQuestion:setRecords()`. .. class:: DNSRecord diff --git a/pdns/recursordist/docs/lua-scripting/dq.rst b/pdns/recursordist/docs/lua-scripting/dq.rst index bc840d8497..6a7433af9c 100644 --- a/pdns/recursordist/docs/lua-scripting/dq.rst +++ b/pdns/recursordist/docs/lua-scripting/dq.rst @@ -70,6 +70,14 @@ The DNSQuestion object contains at least the following fields: - getFakePTRRecords: Get a fake PTR record, see :doc:`DNS64 <../dns64>` - udpQueryResponse: Do a UDP query and call a handler, see :ref:`UDP Query Response ` + .. attribute:: DNSQuestion.followupName + + see :doc:`DNS64 <../dns64>` + + .. attribute:: DNSQuestion.followupPrefix + + see :doc:`DNS64 <../dns64>` + .. attribute:: DNSQuestion.appliedPolicy The decision that was made by the policy engine, see :ref:`modifyingpolicydecisions`. @@ -211,6 +219,10 @@ The DNSQuestion object contains at least the following fields: Whether the response to this query will be exported to a remote protobuf logger, if one has been configured. + .. attribute:: DNSQuestion.tag + + The packet-cache tag set via :func:`gettag`, or 0 if it has not been set. + It also supports the following methods: .. method:: DNSQuestion:addAnswer(type, content, [ttl, name]) @@ -338,6 +350,11 @@ The DNS header as returned by :meth:`DNSQuestion:getDH()` represents a header of The ID of the query +DNSRecord Object +================ + +See :doc:`DNSRecord <../dnsrecord>`. + The EDNSOptionView Class ========================