<div dir="ltr">Thanks for the reply.<div>You mentioned supported Squid versions. For Windows I see Squid versions 3.5, 3.3 and 2.7. Which ones are supported?</div><div>Additionally, what are the supported versions for Linux? </div><div><br></div><div>Jazmine</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 6, 2021 at 7:04 AM Alex Rousskov <<a href="mailto:rousskov@measurement-factory.com">rousskov@measurement-factory.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 5/6/21 12:09 AM, Jazmine Redmond wrote:<br>
> Hi, <br>
> <br>
> I am having issues getting Squid to use the hosts file on the squid server.<br>
> <br>
> I added the hosts_file configuration directive to my squid config file<br>
> as follows:<br>
> <br>
> hosts_file C:/Windows/System32/drivers/etc/hosts<br>
> <br>
> But, when my squid client browser specifies a URL with a machine name<br>
> listed in the hosts file, squid returns an error that says:<br>
> <br>
> “Unable to determine IP address from host name. The DNS server returned:<br>
> Name Error: the domain name does not exist. This means that the cache<br>
> was not able to resolve the hostname presented in the URL.”<br>
> <br>
> So, it seems that squid is NOT using my hosts file.<br>
> <br>
> I have tried using forward slashes (/) and backward slashes (\) in the<br>
> hosts_file configuration directive, yet the error persists.<br>
> <br>
> I have verified the path to the hosts file is correct and I restart<br>
> Squid each time I make edits to the configuration file. Yet the error<br>
> persists.<br>
> <br>
> I am running Squid version 3.5.28 on Windows 10.<br>
> <br>
> Am I missing something?<br>
<br>
Supported Squid versions are known to use /etc/hosts file. I do not know<br>
whether there are any Windows-specific or v3-specific bugs in that area.<br>
Unfortunately, very few people responding on this mailing list are using<br>
Squid v3 and Squid on Windows in general. That is probably why you are<br>
not getting any responses.<br>
<br>
If you can try a supported Squid version, please do so (especially if<br>
you can try it on Linux). You may also share a pointer to a compressed<br>
cache.log after setting debug_options to ALL,9 in case somebody<br>
volunteers to help you with triage.<br>
<br>
Alex.<br>
</blockquote></div>