From: Peter van Dijk Date: Thu, 23 Mar 2017 13:12:24 +0000 (+0100) Subject: move getDH methods so we get correct list formatting X-Git-Tag: rec-4.1.0-alpha1~184^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ef6607dc477f391e872624c091ea3af3c98ad68;p=pdns move getDH methods so we get correct list formatting --- diff --git a/docs/markdown/recursor/scripting.md b/docs/markdown/recursor/scripting.md index a82fdc42f..d4be4812c 100644 --- a/docs/markdown/recursor/scripting.md +++ b/docs/markdown/recursor/scripting.md @@ -107,11 +107,7 @@ It also supports the following methods: the answer too, which defaults to the name of the question * `addPolicyTag(tag)`: add a policy tag. * `discardPolicy(policyname)`: skip the filtering policy (for example RPZ) named `policyname` for this query. This is mostly useful in the `prerpz` hook. -* `getDH()` - Returns the DNS Header of the query or nil. A DNS header offers the following methods: - * `getRD()`, `getAA()`, `getAD()`, `getCD()`, `getTC()`: query these bits from the DNS Header - * `getRCODE()`: get the RCODE of the query - * `getOPCODE()`: get the OPCODE of the query - * `getID()`: get the ID of the query +* `getDH()` - Returns the DNS Header of the query or nil. * `getPolicyTags()`: get the current policy tags as a table of strings. * `getRecords()`: get a table of DNS Records in this DNS Question (or answer by now) * `setPolicyTags(tags)`: update the policy tags, taking a table of strings. @@ -125,6 +121,12 @@ It also supports the following methods: * `getPolicyTags()`: Get a list the policyTags for this message * `setPolicyTags(tags)`: Set the policyTags for this message to `tags` (a list) +A DNS header as returned by `getDH()` offers the following methods: +* `getRD()`, `getAA()`, `getAD()`, `getCD()`, `getTC()`: query these bits from the DNS Header +* `getRCODE()`: get the RCODE of the query +* `getOPCODE()`: get the OPCODE of the query +* `getID()`: get the ID of the query + ## `function ipfilter ( remoteip, localip, dh )` This hook gets queried immediately after consulting the packet cache, but before parsing the DNS packet. If this hook returns something else than false, the packet is dropped.