[Nix-dev] /etc/hosts

Eelco Dolstra e.dolstra at tudelft.nl
Sun Nov 27 13:15:56 CET 2011


Hi,

On 11/25/2011 07:47 PM, Peter Simons wrote:

>   >  Author: viric
>   >  Date: Wed Nov  9 21:02:01 2011
>   >  New Revision: 30362
>   >  URL: https://nixos.org/websvn/nix/?rev=30362&sc=1
>   >
>   >  Log:
>   >  Adding the hostname.domain and localhost.domain to hosts, if possible.
>
> this patch generates broken entries in /etc/hosts if networking.hostName
> is a fully qualified domain name (as it is the case on several systems I
> administrate). Would it be possible to append the domain name only if
> hostName does not contain a '.' already?

In fact, "localhost.<domain>" looks very weird.  Why would that ever be 
needed?  There shouldn't be a "localhost" in whatever your domain is 
(unless your DNS server says so).

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/


More information about the nix-dev mailing list