March 26, 2020


msys.cidr.query — Look up address against the named CIDR


msys.cidr.query(name, address);

name: string
address: string, optional


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

“cidrdb – CIDRDB”, msys.cidr.define, msys.cidr.reload,