Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm in a private domain where the client machines need a proxy server to access the internet. All the machines have an exception where every request to servers in my domain don't need to go through the proxy: don't use proxy to:, and so on...

Well, I now have a machine with an external IP, but I want my clients to access the machine using the dns name:

However, since they need a proxy to go to the internet, but the browser has an exception not to go through proxy when using the domain, they never reach the machine and the connection times out.

My DNS server (bind) has the www machine with the external IP. If I use directly the IP address, it goes to a "under construction" page, because the server outside is configured with a named virtual server and I don't have access to it.

How can I solve this problem? how can I force the machines to go through the proxy even if they are configured not to go ?

if i remove the exception, all the other requests to servers inside will not work...



share|improve this question
up vote 1 down vote accepted

I'm very confused as to what is currently happening and what you mean by "an exception"

However an obvious way to address the problem is to use a proxy auto-config script on the browsers:

function FindProxyForURL(url, host)
   if (dnsDomainIs(host, ""))
         return "DIRECT";
         return "PROXY";

(for preference you would serve this up from an internal webserver or put it on a shared drive so you can easily deploy updates).

share|improve this answer
I have a proxy.pac (or wpad.dat) where are all the exceptions for not using the proxy. by an exception i mean all the address where is not needed for the browser to use the proxy server...(which are all the internal servers). The proxy is only needed to access the internet... (in this case, it's my domain, but with an external - internet - ip address). the client computers are configured to use the proxy server to access internet addresses and not use it when the fqdn is an internal domain name. In this case, it's an internet address with an internal domain name.. – Feiticeir0 Jun 28 '11 at 15:23
I've used your sugestion, and added an entry in my proxy in my proxy.pac: if (isInNet(host,"","")) { return "PROXY";} – Feiticeir0 Jun 28 '11 at 15:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.