Public bug reported:

| #  TAG: visible_hostname
| #       If you want to present a special hostname in error messages, etc,
| #       define this.  Otherwise, the return value of gethostname()
| #       will be used. If you have multiple caches in a cluster and
| #       get errors about IP-forwarding you must set them to have individual
| #       names with this setting.
| #Default:
| # visible_hostname localhost

This isn't actually true, at least the part about gethostname().
It'll first do a reverse DNS lookup on the IP of the first http_port
entry (getMyHostname() in src/tools.cc) and only use get_hostname().

Our first http_port is 127.0.0.1 in a lot of places, so
visible_hostname is now localhost for those squids.  This caused bogus
forward loop detection to kick in when our office squid tried to talk
to the squid that runs the Ubuntu Forums.

I'm not necessarily arguging that the current behaviour is wrong, but
it would be nice if the code and the docs could be consistent.

** Affects: squid3 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1098641

Title:
  visible_hostname defaults to hostname of first http_port IP, not
  get_hostname()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid3/+bug/1098641/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to