[squid-users] WARNING: DNS lookup for 'example.com' failed!

Amos Jeffries squid3 at treenet.co.nz
Fri Sep 29 15:56:59 UTC 2017


On 30/09/17 04:32, chiasa.men wrote:
> I have to restart squid after each reboot to get it working. I think that is
> because squid starts before systemd has started the network and so the dns
> lookups fail:
> 
> journalctl says:
> "squid.service: Unit cannot be reloaded because it is inactive."
> 

So systemd thinks Squid is disabled.


> cache.log contains:
> "WARNING: DNS lookup for 'example.com' failed!"
> 
> 
> The problems seems to be the squid.service file which I took from ubuntus
> squid package:

Nod, quite probably. Squid-3 does not support systemd.

The gory details of that are outlined in:
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=855268#26>


Amos


More information about the squid-users mailing list