function FindProxyForURL(url, host) { if ( (dnsDomainIs(host, ".my-domain")) && !(dnsDomainIs(host, ".other-domain")) ) { return "SOCKS localhost:2000;"; // SOCKS V5 } else { return "DIRECT"; } } // See https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file for more information on the syntax.