Super User is a question and answer site for computer enthusiasts and power users. 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've downloaded and configured with a minimal configuration file. I'm running Squid 2.7 on a Windows box. I've configured a client machines' browser to use my proxy server, but all external DNS queries don't work (i.e. doesn't work but a local name works fine). Here's the error page I get:

The requested URL could not be retrieved

While trying to retrieve the URL:

The following error was encountered:

    Unable to determine IP address from host name for 

The dnsserver returned:

Refused: The name server refuses to perform the specified operation. 

This means that:

The cache was not able to resolve the hostname presented in the URL. 
Check if the address is correct. 

Your cache administrator is ##################.
Generated Thu, 12 Jan 2012 22:34:15 GMT by ######## (squid/2.7.STABLE8)

I think I have an unusual network setup, like this:

                       ____/    \____
                      /              \
internet ---- my proxy server      client PC

Does my setup have something to do with it? Any suggestions as to how to solve the problem? Thanks

share|improve this question
If you ping google the squid box does it resolve? – Paul Jan 12 '12 at 22:52
Yes. Also, from the client machine, I can request google's IP address through the proxy and it works fine. – phillid Jan 12 '12 at 22:59
Ok, can you check if you have any dns_nameserver entries in the squid.conf file? – Paul Jan 12 '12 at 23:04
No, I don't. Should I put some in with my ISP's nameservers' IP addresses in it or something? – phillid Jan 12 '12 at 23:07
Yes, I just did it, thanks :D I knew I'd missed something simple like that... Oh well, I ges this question may be found by someone else in the future and save them asking the question too – phillid Jan 12 '12 at 23:10
up vote 4 down vote accepted

On a Windows machine, if squid is not told to use specific nameservers in squid.conf, it should use the system nameservers by interogating the registry. This can be seen in the cache.log, when searching for "Adding nameserver".

If this doesn't work for any reason (sometime it will incorrectly choose itself as a nameserver -, you can add specific name servers in squid.conf:

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .