Re: /etc/hosts format WAS [Re: host hostname not found]
On Fri 12 Sep 2014 at 06:34:58 +0400, Reco wrote:
> On Thu, 11 Sep 2014 23:03:25 +0100
> Brian <ad44@cityscape.co.uk> 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.
>
> '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 does the same for ipv6.
>
> 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 this thread there is
[🔎] 20140906161207.GN4985@copernicus.demon.co.uk">https://lists.debian.org/[🔎] 20140906161207.GN4985@copernicus.demon.co.uk
The link it contains leads to another with a recent -devel discussion.
There is a 10 year history with the issue; a search with "/etc/hosts"
and "Thomas Hood" should bring up some of it.
> > Needed with cups to discover and advertise print queues on a network.
>
> According to the cupsd.conf, DNSSD is only one of the methods of
> printer discovery. And, as I can tell from the experience, cupsd can
> perfectly discover any network printer without it if asked to do so.
> 'Advertise' is a gimmick too. If one needs to let know others where
> to print - one uses dhcp option 9. Therefore 'needed' is a wrong term.
DNSSD is the *only* method for printer discovery with cups-daemon in
Jessie.
Reply to: