]> granicus.if.org Git - pdns/commitdiff
update dq.data docs
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 20 Mar 2017 14:24:01 +0000 (15:24 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 21 Mar 2017 10:15:54 +0000 (11:15 +0100)
docs/markdown/recursor/scripting.md

index 26857b568a261de8ba56a9c295df8a8f2349b05f..a82fdc42fc4b484ab6d8a5564f3ee947bf6fd584 100644 (file)
@@ -99,7 +99,7 @@ The DNSQuestion object contains at least the following fields:
      * policyCustom: The CNAME content for the `pdns.policyactions.Custom` response, a string
      * policyTTL: The TTL in seconds for the `pdns.policyactions.Custom` response
 * wantsRPZ - A boolean that indicates the use of the Policy Engine, can be set to `false` in `prerpz` to disable RPZ for this query
-* data - a table that is persistent throughout the lifetime of the `dq` object and can be used to store custom data. All keys and values in the table must be of type `string`.
+* data - a Lua object reference that is persistent throughout the lifetime of the `dq` object for a single query. It can be used to store custom data. Most scripts initialise this to an empty table early on so they can store multiple items.
 
 It also supports the following methods: