LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Squid problems

[ILUG] Squid problems

Fergus Donohue Fergus.Donohue at eolach.com
Wed May 9 15:18:25 IST 2001


Hi Niall,

This used to work the other way. Squid 2.3 (and later) talk directly to
nameservers from their select loop. 2.2 (and earlier) had external DNS
programs that called the systems gethostbyname() and hence followed
nsswitch.conf. You can rebuild squid with --disable-internal-dns to
return to the old behaviour. I remember reading something about a patch
or workaround to use the internal squid dns code with hosts files etc.
but I can't remember where I saw it - you could try the archive for the
squid-users mailing list.

Regards,

Fergus.

Niall O Broin wrote:
> 
> I've just upgraded the distribution on my main machine to SuSE 7.0 (I know,
> I know - I've more to be doing than living on the bleeding edge) and squid
> is dying. Whenever I tried to access a URL by name in Netscape, I got a
> "Document contains no data." alert and there was an entry like
> 
> 2001/05/09 09:52:40| assertion failed: dns_internal.c:212: "nns > 0"
> 
> in cache.log, immediately followed by
> 
> 2001/05/09 09:52:43| Starting Squid Cache version 2.3.STABLE3 . . .
> 
> which I presume means that Squid has restarted.
> 
> My resolv.conf had no nameserver entries (they get inserted on the fly by
> wvdial) so I put in a couple. This stops squid from crashing, but instead I
> see a lot of entries in cache.log about squid being unable to reach the
> nameservers like
> 
> 2001/05/09 10:20:11| comm_udp_sendto: FD 2, 194.145.128.2, port 53: (101)
> Network is unreachable
> 2001/05/09 10:20:11| idnsSendQuery: FD 2: sendto: (101) Network is unreachable
> 
> These are unsurprising as I was offline at the the time :-)
> 
> The strange thing is that squid should not have tried to do a DNS lookup for
> the requested address - it's on my local LAN, nsswitch.conf is configured
> correctly (I can ping the relevant address by name) so why is squid trying
> to do a DNS lookup and how do I stop it ?
> 
> Regards,
> 
> Niall
> 
> --
> Irish Linux Users' Group: ilug at linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie

--
Eolach - Ireland's leading Open Source consultancy
web: www.eolach.com     email: info at eolach.com
tel: (+353) 1 874 0510  fax: (+353) 1 874 0515




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell