Re: /etc/hosts format WAS [Re: host hostname not found]

2014-09-16 Thread Vincent Lefevre
On 2014-09-12 00:59:27 +0400, Reco wrote: > On Thu, 11 Sep 2014 16:43:53 -0400 > Harry Putnam wrote: > The `hosts' entry: > > > > hosts: files myhostname mdns4_minimal [NOTFOUND=return] dns > > > > What does all that mean? I understand `files' first and `dns' at the > > end but none of

Re: /etc/hosts format WAS [Re: host hostname not found]

2014-09-16 Thread Vincent Lefevre
On 2014-09-12 06:34:58 +0400, Reco wrote: > On Thu, 11 Sep 2014 23:03:25 +0100 > Brian wrote: > > If the local hostname is always resolvable by a 127.0.1.1 line in > > /etc/hosts or the machine is unlikely to dynamically change its > > hostname libnss-myhostname probably can be purged. > > 'Purge

Re: /etc/hosts format WAS [Re: host hostname not found]

2014-09-12 Thread Brian
On Fri 12 Sep 2014 at 22:29:22 +0400, Reco wrote: > On Fri, 12 Sep 2014 11:23:56 +0100 > Brian wrote: > > > DNSSD is the *only* method for printer discovery with cups-daemon in > > Jessie. > > Oh, that changes things somewhat as I didn't know that. May need to > research the motivation of CUPS

Re: /etc/hosts format WAS [Re: host hostname not found]

2014-09-12 Thread Brian
On Fri 12 Sep 2014 at 22:29:22 +0400, Reco wrote: > On Fri, 12 Sep 2014 11:23:56 +0100 > Brian wrote: > > > > But the most interesting is why there's a need for the whole library to > > > do the job if a couple of lines in /etc/hosts would do the job just > > > fine. > > > > A few posts back in

Re: /etc/hosts format WAS [Re: host hostname not found]

2014-09-12 Thread Joe
On Fri, 12 Sep 2014 22:29:22 +0400 Reco wrote: > > If one as perfectly valid (which seem to be a direct consequence of > #247734) /etc/hosts with the following values: > > 127.0.0.1 localhost > 127.0.1.1 > Just to throw another log on the fire: I recently acquired a Windows 8 laptop (don't

Re: /etc/hosts format WAS [Re: host hostname not found]

2014-09-12 Thread Reco
Hi. On Fri, 12 Sep 2014 11:23:56 +0100 Brian wrote: > > 'Purged' implies one installed libnss-myhostname in the first place. > > And libnss-myhostname does more than merely match a local hostname to > > 127.0.1.1. For example, it 'helpfully' mathes FQDN hostname with > > 127.0.1.1, and also doe

Re: /etc/hosts format WAS [Re: host hostname not found]

2014-09-12 Thread Brian
On Fri 12 Sep 2014 at 06:34:58 +0400, Reco wrote: > On Thu, 11 Sep 2014 23:03:25 +0100 > Brian wrote: > > > > If the local hostname is always resolvable by a 127.0.1.1 line in > > /etc/hosts or the machine is unlikely to dynamically change its hostname > > libnss-myhostname probably can be purge

Re: /etc/hosts format WAS [Re: host hostname not found]

2014-09-11 Thread Reco
On Thu, 11 Sep 2014 23:03:25 +0100 Brian wrote: > On Fri 12 Sep 2014 at 00:59:27 +0400, Reco wrote: > > > 2) libnss-myhostname > > I honestly don't know what scares me most about libnss-hostname - the > > need of it in the first place, the author of the library, software that > > behaves funny w

Re: /etc/hosts format WAS [Re: host hostname not found]

2014-09-11 Thread Brian
On Fri 12 Sep 2014 at 00:59:27 +0400, Reco wrote: > 2) libnss-myhostname > I honestly don't know what scares me most about libnss-hostname - the > need of it in the first place, the author of the library, software that > behaves funny without it or the setups that genuinely need it :( People are

Re: /etc/hosts format WAS [Re: host hostname not found]

2014-09-11 Thread Reco
Hi. On Thu, 11 Sep 2014 16:43:53 -0400 Harry Putnam wrote: The `hosts' entry: > > hosts: files myhostname mdns4_minimal [NOTFOUND=return] dns > > What does all that mean? I understand `files' first and `dns' at the > end but none of what is in between. Every hostname → IP resolving

/etc/hosts format WAS [Re: host hostname not found]

2014-09-11 Thread Harry Putnam
Reco writes: > Hi. > > On Thu, Sep 04, 2014 at 08:26:38PM -0400, Podrigal, Aron wrote: >> Any idea what can be the cause? I am installing proxmox-ve and when >> starting pve-cluster it fails with [main] crit: Unable to get local >> IP address. So I tried >> to look up with host utility and it do

Re: host hostname not found

2014-09-07 Thread Jonathan Dowland
On Fri, Sep 05, 2014 at 06:13:28PM -0400, Podrigal, Aron wrote: > So yes, host does not look in /etc/hosts by default. It never looks in /etc/hosts, as others have pointed out, host(1) only checks DNS. When a program wants to resolve a host, it does so using some system calls that may or may not

Re: host hostname not found

2014-09-06 Thread Podrigal, Aron
Just want to note here, that I bumped in to this whole problem while installing proxmox pve-cluster and pve-cluster did also ignore /etc/hosts. Thanks guys for your help. On Sep 6, 2014 11:26 AM, "Bob Proulx" wrote: > Podrigal, Aron wrote: > > ok, a fresh install of debian 7.6, here is my settin

Re: host hostname not found

2014-09-06 Thread Brian
On Sat 06 Sep 2014 at 09:25:44 -0600, Bob Proulx wrote: > Podrigal, Aron wrote: > > ok, a fresh install of debian 7.6, here is my settings, I don't have > > libnss-myhostname > > installed yet > > It shouldn't be *required*. It is one of those optional features that > some people want and others

Re: host hostname not found

2014-09-06 Thread Bob Proulx
Podrigal, Aron wrote: > ok, a fresh install of debian 7.6, here is my settings, I don't have > libnss-myhostname > installed yet It shouldn't be *required*. It is one of those optional features that some people want and others do not want. It is useful. But for example I don't have it installed

Re: host hostname not found

2014-09-05 Thread Podrigal, Aron
ok, a fresh install of debian 7.6, here is my settings, I don't have libnss-myhostname installed yet root@test1:~# cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 test1.test.com test1 # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-

Re: host hostname not found

2014-09-05 Thread Brian
On Fri 05 Sep 2014 at 10:49:15 -0400, Podrigal, Aron wrote: > I did not have libnss-myhostname installed. I think it was always shipped > with the debian installation, at least on wheezy 7.4 through 7.5, I now had > wheezy 7.6 installed, Was this changed in 7.6 or I'm just wrong? libnss-myhostnam

Re: host hostname not found

2014-09-05 Thread Podrigal, Aron
I did not have libnss-myhostname installed. I think it was always shipped with the debian installation, at least on wheezy 7.4 through 7.5, I now had wheezy 7.6 installed, Was this changed in 7.6 or I'm just wrong? However I installed libnss-myhostname, amd I am now able to start proxmox pve-clust

Re: host hostname not found

2014-09-04 Thread Reco
Hi. On Thu, Sep 04, 2014 at 08:26:38PM -0400, Podrigal, Aron wrote: > Any idea what can be the cause? I am installing proxmox-ve and when starting > pve-cluster it fails with [main] crit: Unable to get local IP address. So I > tried > to look up with host utility and it does not resolve. > > h

Re: host hostname not found

2014-09-04 Thread Jonathan Dowland
On Thu, Sep 04, 2014 at 08:26:38PM -0400, Podrigal, Aron wrote: > Any idea what can be the cause? I am installing proxmox-ve and when > starting pve-cluster it fails with [main] crit: Unable to get local IP > address. So I tried to look up with host utility and it does not resolve. What does "grep