From: Peter van Dijk Date: Thu, 11 Aug 2016 08:48:07 +0000 (+0200) Subject: add missing methods to documentation X-Git-Tag: rec-4.0.2~41^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4300%2Fhead;p=thirdparty%2Fpdns.git add missing methods to documentation --- diff --git a/docs/markdown/recursor/scripting.md b/docs/markdown/recursor/scripting.md index ac3291ad85..d1a7b745fc 100644 --- a/docs/markdown/recursor/scripting.md +++ b/docs/markdown/recursor/scripting.md @@ -250,8 +250,12 @@ DNSNames are passed to various functions, and they sport the following methods: * `:equal`: use this to compare two DNSNames in DNS native fashion. So 'PoWeRdNs.COM' matches 'powerdns.com' * `:isPartOf`: returns true if a is a part of b. So: `newDN("www.powerdns.com"):isPartOf(newDN("CoM."))` returns true +* `:toString` and `:toStringNoDot`: return a string representation of the name, with or without trailing dot. +* `:chopOff`: removes the leftmost label from the name, returns true if this succeeded. -To make your own DNSName, use `newDN("domain.name")`. +You can compare DNSNames using `:equal` or the `==` operator. + +To make your own DNSName, use `newDN("domain.name")`. To copy an existing DNSName (please remember to do this before using `chopOff`), use `newDN(mydn)`. ### DNS Suffix Match groups The `newDS` function creates a "Suffix Match group" that allows fast checking if