msys.cidr.query
Last updated March 2020
Name
msys.cidr.query — Look up address against the named CIDR
Synopsis
msys.cidr.query(name, address);
name: string address: string, optional
Description
This function looks up addresses against the named CIDR. When using the datasource or rbldnsd types, the return value will always be a string, and will either be the value of the value_column or the a or txt entry. If an entry is not found, this function returns the default_value associated with the CIDR, which is typically false. If the address is unspecified, the IP address of the connected peer is assumed.
Enable this function with the statement require('msys.cidr');.
See Also
Was this page helpful?