How to load squid was Re:localhost

Derek Broughton news at
Mon Feb 11 20:31:34 UTC 2008

NoOp wrote:

> On 02/11/2008 09:09 AM, Derek Broughton wrote:
>> Well, I agree this seems like a bug.  We _do_ have debconf, so surely it
>> should be used to _get_ your visible hostname so that the install doesn't
>> b0rk.  But do you really need to set visible_hostname?  The implication
>> of the messages, to me, seems to be that if it can find a proper FQDN
>> from "hostname -f" (or equivalent) you should be able to get by without
>> pre-configuring visible_hostname.
> Interesting part is that if you add the visible_hostname, you can put in
> whatever you want, even visible_hostname = foobar, and then squid will
> start. I don't know what it will do afterwards - haven't had time to try
> it, but it will start via sudo /etc/init.d/squid start (or restart). So
> it doesn't actually appear to be checking hostname -f or anything else
> that I can see. I think it's just looking for a hostname to put in the
> logs.

That's what it is.  It uses gethostbyname(), and if that doesn't give it a
usable name, it uses visible_hostname, and you can specifically set
visible_hostname to be anything, because that's what you want it to report.

More information about the ubuntu-users mailing list