This code checks whether the variable host contains three numerals that are followed by a period and then followed by another numeral. You can use the following code to check whether the host is already in the IP address format: var isIpV4Addr = /^(\d .)\d $/ If the IP address is entered directly into the address bar, you do not have to resolve it again. If the IP address of the host belongs to the local intranet, regardless of the web server name, it should bypass the proxy in order to navigate directly. It returns the same result but adds an asterisk (*) as a wildcard character: if (shExpMatch(host, "*.")) The easiest way to determine such hosts is by using the dnsDomainis function: if (dnsDomainIs(host, "."))Īn alternative and faster method for the same result can be obtained by using ShExMatch(). Internally used DNS zones are typically routed directly. NetBIOS names (server names that contain no period) are used in the intranet only and are not routed through the proxy: if (isPlainHostName(host)) Therefore, you should avoid, or, at least, minimize the use of these functions. The isInNet(), isResolvable(), and dnsResolve() functions send queries to the DNS-subsystem.
0 Comments
|