I've got a machine here that's running a website. It's only really a development machine but it has IIS on it for testing purposes. Problem is that when pages get loaded in internet explorer using the machines name, the request is going out to the proxy server which is coming back with an error:
The requested URL could not be
retrieved
While trying to retrieve the URL:
http://seed-dev1.hull.ac.uk:5555/The following error was encountered:
Unable to determine IP address from
host name for seed-dev1.hull.ac.uk
The dnsserver returned:Name Error: The domain name does not
exist. 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 webmaster.
Generated Thu, 04 Jun 2009 16:18:33
GMT by slb-webcache-east.hull.ac.uk
(squid/2.6.STABLE22)
The error makes sense as the machine is really seed-dev1.net.dcs.hull.ac.uk. Regardless, I don't want it to be going off to the proxy server for local addresses. Not only is 'Bypass proxy server for local addresses' ticked on the proxy settings, but I've added exceptions in addition so it shouldn't be using the proxy for addresses beginning with: '*.hull.ac.uk; localhost; 127.0.0.1; seed-dev1' I can confirm that the exceptions are at least working because I can get to any pages within hull.ac.uk which I wouldn't be able to if I hadn't put it in the exception list.
As that doesn't work, I went further by going to the hosts file at C:\Windows\system32\drivers\ect
and added a line changing it to:
127.0.0.1 localhost
127.0.0.1 SEED-DEV1
A quick restart and it still doesn't work. Any pages that I try to access using the machine name just get that bad page returned from the proxy. Using localhost is all well and good for a single page but then you click on a link and it just switches back to the machine name in the url.
Any suggestions of stuff I could try would be much appriciated
Best Answer
Let's try the easy ones first:
(In Internet Explorer; and I'm assuming you're using IE because you're running IIS on 127.0.0.1 and you reference the hosts file in \drivers\etc.)
Now, hmm. Assuming you're running an internal DNS server/private IP addresses:
Let's clean up that hosts file:
Curious to see if any of those fixed the problem..