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

2013-08-09 Thread Thomas Hood
Op 8 aug. 2013 17:49 schreef Tom H tomh0...@gmail.com het volgende: The output below is from Debian Sid with libnss-myhostname installed [...] [root@debdeb:/etc]# cat hostname debdeb [root@debdeb:/etc]# cat hosts 127.0.0.1 localhost [root@debdeb:/etc]# getent hosts 127.0.1.1 192.168.1.250

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

2013-08-08 Thread Tom H
On Mon, 5 Aug 2013 13:08:28 -0400, Thomas Hood wrote: (I had an exchange of emails with Thomas off-list and he suggested that I reply on-list.) With the nsswitch configuration hosts: files ... dns ... myhostname myhostname resolves the system hostname if nothing else does so first. So

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

2013-08-07 Thread Wouter Verhelst
On 05-08-13 19:08, Thomas Hood wrote: Wouter Verhelst wrote: The right way, in my opinion, is that /etc/hosts should look like this: 127.0.0.1 localhost 127.0.0.1 hostname.domain hostname Strictly speaking there should be no more than one line per IP address, so that would be In

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

2013-08-07 Thread Russ Allbery
Wouter Verhelst wou...@debian.org writes: On 05-08-13 19:08, Thomas Hood wrote: In that case 'hostname.domain' is the canonical name for alias 'localhost'. Which is fine. localhost is *supposed* to be an alias, it is not a canonical name (there are far too many machines called localhost for

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

2013-08-07 Thread Philipp Kern
On Wed, Aug 07, 2013 at 10:29:01AM -0700, Russ Allbery wrote: I think RFC 1912 is interesting here: The localhost address is a special address which always refers to the local host. It should contain the following line: localhost. IN A 127.0.0.1 RFC 6761

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

2013-08-07 Thread Thomas Hood
Op 7 aug. 2013 10:33 schreef Wouter Verhelst wou...@debian.org het volgende: Historically, localhost has always been 127.0.0.1. It feels wrong to change that, simply because localhost starts showing up in places it was never meant to show up in. To clarify, no one is proposing that 'localhost'

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

2013-08-05 Thread Thomas Hood
Sorry I'm a bit late contributing to this discussion. Christoph Anton Mitterer wrote: The eventual result[1] was that Debian nowadays ships /etc/hosts like these per default: 127.0.0.1 localhost 127.0.1.1 host_name.domain_name host_name As also described in the Debian reference[2]. That's