From b044d4ccabd33ea062e2837f705a96d271ceb54d Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 5 May 2022 17:39:00 +0200 Subject: [PATCH] rec: Document a few missing DNSQuestion attributes --- .../docs/lua-scripting/dnsrecord.rst | 2 +- pdns/recursordist/docs/lua-scripting/dq.rst | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) 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 ======================== -- 2.47.2