Hi,

On 07/10/12 00:24, Eelco Dolstra wrote:

>> Is there some particular motivation behind the /etc/hosts generation? Why  
>> should the hostname always be mapped to 127.0.0.1? I think it is wrong,  
>> simply.
> 
> The reason is that some software assumes that the hostname resolves to a valid
> IP address.  However, a better solution is to use nss-myhostname [1], which 
> I'm
> currently testing.  It makes the hostname resolve to the IP addresses of your
> network interfaces, or ::1 / 127.0.0.2 as a fallback.

I've pushed this to the NixOS repo on GitHub now.  Please let me know if this
causes any problems.

P.S. I do know that it won't work for people who have nscd disabled.  Without
nscd, programs need to have all active NSS modules in their $LD_LIBRARY_PATH.
Going through nscd gets rid of that problem (since only nscd has to be able to
find them).

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to