Otherwise you have to add the following line in the squid config to give first preference to ipv4. #vim /etc/squid/squid.conf dns_v4_first on #service squid restart