Zentyal Forum, Linux Small Business Server
Zentyal Server => Installation and Upgrades => Topic started 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
-
I have exactly the same problem, is there any solution to this?
thanks
-
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 ;)
-
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
-
For Zentyal v2.0:
Edit /etc/init/ebox.squid.conf and insert this line:
env SQUID_ARGS="-D"
after the "respawn" line.
Hope this helps ... 8)
-
Thanks that was what I needed !
It Works
[RESOLVED]