[squid-users] squid and hosts_file on ipv6 not working fine

Amos Jeffries squid3 at treenet.co.nz
Tue Sep 19 15:30:33 UTC 2017


On 19/09/17 23:47, --Ahmad-- wrote:
> hello folks
> 
> 
> sometimes i need to change domains for cetian ipv6 website
> 
> i use the directive
> 
> hosts_file /etc/hosts
> and in side it i have :
> 
> [root at server ~]# cat /etc/hosts
> 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
> ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
> 2607:f8b0:4006:810::200e google.com
> 2607:f8b0:4006:810::200e www.google.com
> 2607:f8b0:4006:810::2003 google.de
> 2607:f8b0:4006:810::2003 www.google.de
> 
> 
> 
> 
> but squid still don’t take google.com from that host file and take it from outside
> 

How are you determining that?

and what does your access.log say for one of the requests that are doing it?


Amos


More information about the squid-users mailing list