Proxy Auto Config file
02/26/2015 808 views
I am trying to write the PAC file, which will enable/disable proxy based on the DNS resolution. But this is not working. Can anyone guide me in correct direction.
this script should check if DNS (abc.com) is resolvable then go thru proxy if not then direct.
This is what i have so far:
function FindProxyForURL(url, host)
if (isPlainHostName(host) ||
dnsDomainIs(host, "abc.net") ||
return "PROXY proxy.abc.net:8080";
Be the first to answer this question