From: Pieter Lexis Date: Thu, 28 Jul 2016 08:56:56 +0000 (+0200) Subject: Add some docs on new ComboAddress features in Lua X-Git-Tag: auth-4.0.1~4^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef1bcfa5b277f90d549fd82d3556c5c01d74d260;p=pdns Add some docs on new ComboAddress features in Lua --- diff --git a/docs/markdown/recursor/scripting.md b/docs/markdown/recursor/scripting.md index 9625b4ea8..ac3291ad8 100644 --- a/docs/markdown/recursor/scripting.md +++ b/docs/markdown/recursor/scripting.md @@ -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: