Hello,
I am setting a pool of squid servers that should be neighbours to each
other.
I haven't set up visible_hostname not unique_hostname - by documentation
squid should get them from current hostname.
Looking at src/tools.c, squid looks at first IP it is listening to, does
reverse lookup on it and uses that for both parameters.
However, I am not able to get where and how did squid get it's name.
Turning on debug_options 50,9 didn't help (I don't see the hostname in
log) even if function getMyHostname (src/tools.c) calls debug:
debug(50, 4) ("getMyHostname: resolved %s to '%s'\n",
inet_ntoa(Config.Sockaddr.http->s.sin_addr),
host);
debug(50, 6) ("getMyHostname: '%s' resolved into '%s'\n",
host, h->h_name);
what am I missing? How can I get hat does squid think about its name?
could this be the problem?
<CUT>
http_port proxy.nextra.sk:3128
</CUT>
I wanted to have _the same_ config on all servers, so I'd define IP
addresses in /etc/hosts file. However, doing reverse lookup of the IP
points to different name (proxy?.nextra.sk - even via /etc/hosts), so
GetMyHostname shouldn't return proxy.nextra.sk, should it?
-- Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin, 1759Received on Wed Mar 24 2004 - 08:25:56 MST
This archive was generated by hypermail pre-2.1.9 : Thu Apr 01 2004 - 12:00:02 MST