[Nix-dev] /etc/hosts again

Rickard Nilsson rickard.nilsson at telia.com
Tue Dec 20 12:39:40 CET 2011


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


More information about the nix-dev mailing list