[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/hosts and resolving of the local host/domainname - 127.0.0.1 vs. 127.0.1.1



> On Wed, 2013-07-31 at 01:30 +0100, Steve Langasek wrote:
> > That's correct.  If you want to talk to a loopback-only service,
> > you should be connecting to 'localhost', *not* to the hostname.

[Christoph Anton Mitterer]
> Well why not? Imagine that one server in a cluster serves a debian
> package repo (e.g. via http)...

That doesn't sound like a "loopback-only service" at all.


> - let the webserver listen as well on 127.0.1.1,... sure that works but
> it's rather ugly to make such special handling... and not all services
> are even able to bind to multiple addresses.

Special handling?  No, I'm pretty sure the default for all web servers
in Debian is to listen on INADDR_ANY.  That's not special handling at
all.  Special handling would be to listen on 11.22.33.44 and 127.0.0.1
specifically.


Reply to: