Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: fabiohsouza on January 07, 2011, 06:31:23 pm

Title: Http Proxy squid does not start on boot: DNS name lookup tests failed
Post by: fabiohsouza on January 07, 2011, 06:31:23 pm
Hi,
I'm running a fresh install of the Zentyal 2 (Core 2.0.13) on Ubuntu Server 10.04 LTS but the http proxy does not start on boot.

I have found this error on /var/log/squid/cache.log:

Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed

In SquidFaq i have found:

http://wiki.squid-cache.org/SquidFaq/TroubleShooting#FATAL:_ipcache_init:_DNS_name_lookup_tests_failed

   "{i} (!) This issue is now permanently resolved in Squid 3.1 and later.

Squid normally tests your system's DNS configuration before it starts server requests. Squid tries to resolve some common DNS names, as defined in the dns_testnames configuration directive. If Squid cannot resolve these names, it could mean:

    * your DNS nameserver is unreachable or not running.
    * your System is in the process of booting
    * your /etc/resolv.conf file may contain incorrect information.
    * your /etc/resolv.conf file may have incorrect permissions, and may be unreadable by Squid.

To disable this feature, use the -D command line option. Due to this issue displaying on Boot. Is is highly recommended that OS startup scripts for Squid earlier than 3.1 use this option to disable tests.

Note, Squid does NOT use the dnsservers to test the DNS. The test is performed internally, before the dnsservers start. ' "

Where I include this option -D in squid?

PS.:
My WAN is PPPoE
Squid 2.7.STABLE7

Thanks,
Fábio H Souza
Title: Re: Http Proxy squid does not start on boot: DNS name lookup tests failed
Post by: Gonzalo on November 30, 2011, 06:00:16 pm
I have exactly the same problem, is there any solution to this?

thanks
Title: Re: Http Proxy squid does not start on boot: DNS name lookup tests failed
Post by: christian on December 01, 2011, 07:47:40 am
I don't understand what your goal is...  :-[ sorry for this...
How useful (or rather useless) will be your HTTP proxy (AKA Squid) if there is no DNS available to resolve clients requests?
Fix your DNS issue and then Squid will start  ;)
Title: Re: Http Proxy squid does not start on boot: DNS name lookup tests failed
Post by: Gonzalo on December 01, 2011, 02:18:50 pm
The problem is that Squid starts before the PPPoE connection is established. So the DNS are available at the time Squid tries to check them. And the solution is to use the -D option when starting Squid. Unfortunately I do not know how it is implemented in Zentyal (core 2.0.23)

You know how you do it?

Thanks and Regards
Title: Re: Http Proxy squid does not start on boot: DNS name lookup tests failed
Post by: innocenti_jr on December 01, 2011, 04:35:24 pm
For Zentyal v2.0:
Edit /etc/init/ebox.squid.conf and insert this line:
Code: [Select]
env SQUID_ARGS="-D"after the "respawn" line.
Hope this helps ...  8)
Title: [RESOLVED] Http Proxy squid does not start on boot: DNS name lookup tests failed
Post by: Gonzalo on December 07, 2011, 04:37:07 pm
Thanks that was what I needed !

It Works

[RESOLVED]