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

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



On Thu, 11 Sep 2014 23:03:25 +0100
Brian <ad44@cityscape.co.uk> 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 without it or the setups that genuinely need it :(
> 
> People are usually frightened most by things they have no understanding
> of.
> 
> 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.

> 
> > 3) avahi-daemon
> > Uses funny IPs from 169.254.0.0/16 range and (in)famous .local domain.
> > Not needed if you have DNS in your LAN.
> 
> 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.

Reco


Reply to: