From: phonedph1 Date: Mon, 11 Feb 2019 15:57:29 +0000 (+0000) Subject: Document addRecord X-Git-Tag: auth-4.2.0-beta1~15^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eac36302a52213636cfad19786f36a91811757c6;p=thirdparty%2Fpdns.git Document addRecord --- diff --git a/pdns/recursordist/docs/lua-scripting/dq.rst b/pdns/recursordist/docs/lua-scripting/dq.rst index 7847d87060..6c6670b93b 100644 --- a/pdns/recursordist/docs/lua-scripting/dq.rst +++ b/pdns/recursordist/docs/lua-scripting/dq.rst @@ -150,6 +150,16 @@ The DNSQuestion object contains at least the following fields: :param int ttl: The TTL in seconds for this record :param DNSName name: The name of this record, defaults to :attr:`DNSQuestion.qname` + .. method:: DNSQuestion:addRecord(type, content, place, [ttl, name]) + + Add a record of ``type`` with ``content`` in section ``place``. + + :param int type: The type of record to add, can be ``pdns.AAAA`` etc. + :param str content: The content of the record, will be parsed into wireformat based on the ``type`` + :param int place: The section to place the record, see :attr:`DNSRecord.place` + :param int ttl: The TTL in seconds for this record + :param DNSName name: The name of this record, defaults to :attr:`DNSQuestion.qname` + .. method:: DNSQuestion:addPolicyTag(tag) Add a policy tag.