From d0ce9fb4e98e879335ea067fd7861ead419fb4dd Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Tue, 30 Aug 2016 14:55:22 +0200 Subject: [PATCH] Docs: add missing functions, fix indents On the recursor scripting page --- docs/markdown/recursor/scripting.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/markdown/recursor/scripting.md b/docs/markdown/recursor/scripting.md index 8e2ac6a2f..2b6886a90 100644 --- a/docs/markdown/recursor/scripting.md +++ b/docs/markdown/recursor/scripting.md @@ -89,15 +89,15 @@ The DNSQuestion object contains at least the following fields: * localaddr - address this query was received on * variable - a boolean which, if set, indicates the recursor should not packet cache this answer. Honored even when returning 'false'! Important when providing answers that vary over time or based on sender details. * followupFunction - a string that signals the nameserver to take one of the following additional actions: - * followCNAMERecords: When adding a CNAME to the answer, this tells the recursor to follow that CNAME. See [CNAME chain resolution](#cname-chain-resolution) - * getFakeAAAARecords: Get a fake AAAA record, see [DNS64](#dns64) - * getFakePTRRecords: Get a fake PTR record, see [DNS64](#dns64) - * udpQueryResponse: Do a UDP query and call a handler, see [`udpQueryResponse`](#udpqueryresponse) + * followCNAMERecords: When adding a CNAME to the answer, this tells the recursor to follow that CNAME. See [CNAME chain resolution](#cname-chain-resolution) + * getFakeAAAARecords: Get a fake AAAA record, see [DNS64](#dns64) + * getFakePTRRecords: Get a fake PTR record, see [DNS64](#dns64) + * udpQueryResponse: Do a UDP query and call a handler, see [`udpQueryResponse`](#udpqueryresponse) * appliedPolicy - The decision that was made by the policy engine, see [Modifying policy decisions](#modifying-policy-decisions). It has the following fields: - * policyName: The name of the policy (used in e.g. protobuf logging) - * policyAction: The action taken by the engine - * policyCustom: The CNAME content for the `pdns.policyactions.Custom` response, a string - * policyTTL: The TTL in seconds for the `pdns.policyactions.Custom` response + * policyName: The name of the policy (used in e.g. protobuf logging) + * policyAction: The action taken by the engine + * 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 `preresolve` to disable RPZ for this query It also supports the following methods: @@ -110,6 +110,9 @@ It also supports the following methods: * `getEDNSOption(num)`: get the EDNS Option with number `num` * `getEDNSOptions()`: get a map of all EDNS Options * `getEDNSSubnet()`: returns the netmask specified in the EDNSSubnet option, or empty if there was none +* `addPolicyTag(tag)`: Add policyTag `tag` to the list of policyTags +* `getPolicyTags()`: Get a list the policyTags for this message +* `setPolicyTags(tags)`: Set the policyTags for this message to `tags` (a list) ## `function ipfilter ( remoteip, localip, dh )` This hook gets queried immediately after consulting the packet cache, but before -- 2.40.0