OOps, I mistakenly sent the answer only to Andres.. ---------- Forwarded message ---------- From: Kinkie <gkinkie@xxxxxxxxx> Date: Mon, Jul 27, 2009 at 12:17 AM Subject: Re: /etc/hosts is ignored when browser is pointed to use a proxy, any workaround? To: Andres Salazar <ndrsslzr80@xxxxxxxxx> On Sun, Jul 26, 2009 at 9:23 PM, Andres Salazar<ndrsslzr80@xxxxxxxxx> wrote: > Hello, > > Ive noticed that when a computer is set to use a transparent proxy > (forced one) , or when it is pointed in the settings of the browser > the contents for /etc/hosts in that particular computer are ignored. I > assume it is because the DNS request is actually performed by squid on > the remote box and not by the user computer. > > However... the functionality of /etc/hosts is both practical and > required for our IT department testing in comparison of setting up a > DNS server and have the hassle of maintaning this. > > > Is there any work arround to this for squid? This is an issue of the browser, not of squid. When a browser is configured to use a proxy, it will not perform DNS lookups for the content it fetches. There's nothing squid can do about it. The only way to perform the testing you hint at is to configure the browsers you do the testing with NOT to use a proxy when accessing the tested sites. -- /kinkie -- /kinkie