dnsDomainIs()

Evaluates hostnames and returns true if hostnames match. It is used mainly to match individual host names for exceptions.

Example:

if (dnsDomainIs(host, ".google.com")) return "DIRECT";