/build/static/layout/Breadcrumb_cap_w.png

Proxy Auto Config file

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

Answers (0)

Be the first to answer this question

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ