[Nix-dev] [NixOS] 127.0.0.1 in /etc/hosts
Eelco Dolstra
eelco.dolstra at logicblox.com
Mon Oct 8 19:30:08 CEST 2012
Hi,
On 07/10/12 14:18, Rickard Nilsson wrote:
> nss-myhostname sounds like a good idea. I just wonder what happens when
> you have several network links configured, and want your hostname to
> resolve to one of those IPs.
That depends on the program I guess. Usually programs use the first address
returned by gethostbyname() / getaddrinfo().
> The documentation for nss-myhostname says
> "nss-myhostname simply returns all locally configure public IP addresses".
> I'm not sure what would happen in the nfsd case, would rpc-nfsd bind to
> all local IPs (which would basically be the same as 0.0.0.0), or would it
> pick the first one returned by nss-myhostname?
Dunno, but probably the latter.
--
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
More information about the nix-dev
mailing list