In the process of trying to resolve an issue that we were
having in reaching an internet address, I seem to have run
into a bug in the way IE handles a particular function.
The problem is as described below:
our local domains are say different flavors of xyz.com
in the autoproxy.pac script, we have the following lines:
if (dnsDomainIs(host, ".xyz.com")) return "DIRECT";
return "PROXY proxy.xyz.com:80";
Everything works fine until we get to something of the
sort:
http://www.xyz.com.abc.com/
This is obviously not an xyz.com domain. It appears,
however, that IE's flavor of dnsDomainIs() has a bug in
that it is looking for "xyz.com" anywhere in the host
string, instead of making sure that only "xyz.com"
and "*.xyz.com" match. I have checked the same autoproxy
script using Mozilla and Netscape browsers, and all works
fine. This is an IE only bug that is fixed when I change
the above expression to:
if (shExpMatch(host, "xyz.xom) || shExpMatch
(host, "*.xyz.com")) return "DIRECT";
This is the way that you would expect dnsDomainIs() to
work, so I can only conclude that the method has been
incorrectly implemented in IE.
Regards,
Mazi.