/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Proxy Auto Config file

02/26/2015 808 views
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


Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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