host is a DNS host name or IP address. If a host name is passed, this function will resolve it into an IP address.
pattern is an IP address pattern in the dot-separated format
mask is the IP address pattern mask that determines which parts of the IP address should be matched against. A value of 0 means ignore; 255 means match. This function is true if the IP address of the host matches the specified IP address pattern.