Hi Guys,
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") ||
            isResolvable(host))
            return "PROXY proxy.abc.net:8080";
        else
            return "DIRECT";
    }

Thanks,
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

There are no answers at this time

Answers

Answer this question or Comment on this question for clarity