[Nix-dev] [NixOS] 127.0.0.1 in /etc/hosts
Lluís Batlle i Rossell
viric at viric.name
Sat Oct 6 11:37:39 CEST 2012
On Fri, Oct 05, 2012 at 07:11:26PM +0200, Rickard Nilsson wrote:
> I know this has been discussed before, but today I ran into a problem
> again that was caused by the fact that NixOS adds the row "127.0.0.1
> ${hostName} ${hostName}.${domain}" to /etc/hosts.
>
> I had configured my nfsd service (rpc.nfsd) to listen on the ip of its own
> hostname, but since that it set to 127.0.0.1 in /etc/hosts, rpc.nfsd bound
> only to the local interface, making nfs mounts from clients impossible.
>
> 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.
In one server I also have it worked around, having the hostname as normal public
ip. Maybe we can set it to a static ip, if there is a static ip set, and
127.0.0.1 otherwise?
More information about the nix-dev
mailing list