isInNet()

This function evaluates the IP address of a hostname and, if within a specified subnet, returns true. If a hostname is passed, the function will resolve the hostname to an IP address.

Example:

if (isInNet(host, "172.16.0.0", "255.240.0.0")) return "DIRECT";