Author Topic: Http Proxy squid does not start on boot: DNS name lookup tests failed  (Read 12580 times)

fabiohsouza

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
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
« Last Edit: January 07, 2011, 07:09:13 pm by fabiohsouza »

Gonzalo

  • Zen Apprentice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Http Proxy squid does not start on boot: DNS name lookup tests failed
« Reply #1 on: November 30, 2011, 06:00:16 pm »
I have exactly the same problem, is there any solution to this?

thanks

christian

  • Guest
Re: Http Proxy squid does not start on boot: DNS name lookup tests failed
« Reply #2 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  ;)

Gonzalo

  • Zen Apprentice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Http Proxy squid does not start on boot: DNS name lookup tests failed
« Reply #3 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

innocenti_jr

  • Zen Monk
  • **
  • Posts: 98
  • Karma: +9/-0
    • View Profile
Re: Http Proxy squid does not start on boot: DNS name lookup tests failed
« Reply #4 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)
"The problem with quotes on the Internet is that it is hard to verify their authenticity." - Abraham Lincoln

Gonzalo

  • Zen Apprentice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Thanks that was what I needed !

It Works

[RESOLVED]