]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
move getDH methods so we get correct list formatting 5196/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 23 Mar 2017 13:12:24 +0000 (14:12 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 23 Mar 2017 13:12:24 +0000 (14:12 +0100)
docs/markdown/recursor/scripting.md

index a82fdc42fc4b484ab6d8a5564f3ee947bf6fd584..d4be4812c124713a0c4c2c0babc0c3c848c08f6f 100644 (file)
@@ -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.