[squid-users] cache peer , force peer to use dns ipv4 not ipv6

Giles Coochey giles at coochey.net
Tue Sep 3 08:46:40 UTC 2019

On 03/09/2019 09:23, Amos Jeffries wrote:
> On 3/09/19 4:45 pm, --Ahmad-- wrote:
>> Hello Team ,
>> just wondering .
>> using cache peer to FWD request to upstream squid .
>> the problem is sometimes the Upstream go to destination over ipv6 .
>> is there an option can be used to force the peer to use ipv4 dns ?
> Put the IPv4 address of the peer into the cache_peer line instead of its
> hostname.
If you are trying to influence how your system chooses between IPv4 and 
IPv6 for its outbound connections then you should look to understand how 
/etc/gai.conf operates on your system. Otherwise, if you only want squid 
in this instance to use IPv4 then go with Amos' suggestion above.
> =-
> Giles Coochey

More information about the squid-users mailing list