]> granicus.if.org Git - pdns/commitdiff
add missing methods to documentation
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 11 Aug 2016 08:48:07 +0000 (10:48 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 11 Aug 2016 08:48:07 +0000 (10:48 +0200)
docs/markdown/recursor/scripting.md

index ac3291ad85414f8e9f548418acc30d2812e79d59..d1a7b745fc79bd426180456e9991d58ab290d17b 100644 (file)
@@ -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