]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Document addRecord
authorphonedph1 <phoned@gmail.com>
Mon, 11 Feb 2019 15:57:29 +0000 (15:57 +0000)
committerphonedph1 <phoned@gmail.com>
Mon, 11 Feb 2019 15:57:29 +0000 (15:57 +0000)
pdns/recursordist/docs/lua-scripting/dq.rst

index 7847d870608b489f4658e5dc89a13424d0c0647f..6c6670b93bebd7227b98e691ce547fd8018be8b6 100644 (file)
@@ -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.