Re: squid runs but client does not receive data

From: Dancer <[email protected]>
Date: Mon, 31 Jan 2000 03:54:33 +0000

Jinsong Zhao wrote:

> D,
>
> I tried using --disable-internal-dns in the configure. It seems the
> problem persists. As log shows, it seems squid tries to read
> /etc/resolv.conf to figure out the nameserver, and unfortunately my
> Solaries does not have this file. The nameserver stuff is figured out
> by consulting NIS specified in nsswitch.conf. Maybe this is where the
> problem resides?

I don't know much about name-resolution on the Sun platforms. There may be something of use in
the FAQ.

>
> Why squid tries to do DNS itself rather than relying on gethostbyname
> system call? Anyway, seems to solve the problem, I need to create the
> /etc/resolv.conf?
>

gethostbyname() is a blocking, synchronous call. If squid uses it, then it's unable to do
anything else for the time it takes to perform the lookup. Depending on what you're looking up
and the availability of servers and bandwidth, it can take up to 2 minutes to get an answer.
During this time, squid would be unable to do anything.

D
Received on Sun Jan 30 2000 - 21:02:24 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:46 MST