]> granicus.if.org Git - pdns/commitdiff
Add some docs on new ComboAddress features in Lua
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 28 Jul 2016 08:56:56 +0000 (10:56 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 29 Jul 2016 13:17:46 +0000 (15:17 +0200)
docs/markdown/recursor/scripting.md

index 9625b4ea85b86e14e38bde18639b447c70dd9d30..ac3291ad85414f8e9f548418acc30d2812e79d59 100644 (file)
@@ -240,6 +240,11 @@ To compare the address (so not the port) of two ComboAddresses, use `:equal`.
 To convert an address to human-friendly representation, use `:toString()` or
 `:toStringWithPort()`. To get only the port number, use `:getPort()`.
 
+Other functions that can be called on a ComboAddress are:
+ * `isIpv4` - true if the address is an IPv4 address
+ * `isIpv6` - true if the address is an IPv6 address
+ * `getBits` - the number of bits in the address
+
 ### DNSName
 DNSNames are passed to various functions, and they sport the following methods: