On Thu, Aug 31, 2000 at 01:22:20AM +0200, Henrik Nordstrom wrote:
> What about using visible_hostname in squid.conf to make sure Squid knows
> it's name without having to guess based on the host configuration?
The problem with this is that in large cache clusters, it requires the
administrator to provide a different squid.conf file for each machine (bit
of an administrative headache). Speaking along this line, would you accept
a patch that would make squid remove it's own host from it's cache peer list
to avoid forwarding loops?
> Or second, make sure the machine is configured with its real FQDN
> instead of something else.
Usually when adminstering a machine, one assumes that it's configured with
its FQDN when the gethostname() call (or the hostname command) returns it.
Squid's trick of passing this back into gethostbyname() makes it harder to
tell aside of debugging getMyHostname.
> But you are probably right. If append_domain is defined and the
> gethostbyname trick does not return a FQDN name then append it to the
> host name, or fail saying that Squid could not find the real name of the
> host..
I actually like a fatal error if getMyHostname does not return a FQDN when
append_domain is used. Implicitly substituting the domain name in could
result in a severe headache for somebody if the wrong domain is appended.
cheers
-bmd
Received on Thu Aug 31 2000 - 13:11:21 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:35 MST