[Nix-dev] /etc/hosts again

Lluís Batlle i Rossell viric at viric.name
Tue Dec 20 17:12:40 CET 2011


On Tue, Dec 20, 2011 at 05:00:58PM +0100, Rickard Nilsson wrote:
> I noticed that Michael Raskin quickly commited this. Thanks!
> 
>    / Rickard

Without the same change for localhost / localdomain though. Let's wait a use
case :)

> Den 2011-12-20 12:39:40 skrev Rickard Nilsson <rickard.nilsson at telia.com>:
> 
> > Hi,
> >
> > nixos/modules/config/networking.nix generates /etc/hosts on the following
> > form:
> >
> > 127.0.0.1 myhost myhost.mydomain
> >
> > This makes both "hostname" and "hostname --fqdn" return "myhost".
> >
> > I think nixos/modules/config/networking.nix should be changed, to  
> > generate
> > /etc/hosts like this:
> >
> > 127.0.0.1 myhost.mydomain myhost
> >
> > That would make "hostname" return "myhost" and "hostname --fqdn" return
> > "myhost.mydomain", which makes things that depend on a fully qualified
> > domain name a bit happier.
> >
> > Could someone with commit rights make this change?
> >
> >
> > Best regards,
> >    Rickard Nilsson
> > _______________________________________________
> > nix-dev mailing list
> > nix-dev at lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev


More information about the nix-dev mailing list