Figure 2   PAC Helper Functions

Function
Returns

dnsDomainIs(host, domain)
Returns true if the host is part of the specified domain, false otherwise.
isInNet(hostname,
Resolves the hostname and subnet IP, subnet mask) returns true if the hostname is within the subnet specified by the IP address and the subnet mask, false otherwise.
isPlainHostName(host)
Returns true if there are no dots in the hostname, false otherwise.
isResolvable(host)
Internet Explorer tries to resolve the hostname through DNS and returns true if successful, false otherwise.
localHostOrDomainIs
Returns true if the host matches (host, domain) the host portion of the domain, or if the host matches the host and domain portions of the domain, false otherwise. (Executed only for URLs in the local domain.)
dnsDomainLevels(host)
Returns the number of dots in the hostname.
dnsResolve(host)
Returns a string containing the IP address of the specified host.
myIPAddress( )
Returns a string containing the local machine’s IP address.
shExpMatch(url, shexp)
Returns true if the supplied URL matches the specified shell expression, false otherwise.
dateRange(parmList)
Returns true if the current date falls within the dates specified in parmList, false otherwise.
timeRange(parmList)
Returns true if the current time falls within the times specified in parmList, false otherwise.
weekdayRange(parmList)
Returns true if today is within the days of the week specified in parmList, false otherwise.