[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/hosts and resolving of the local host/domainname - 127.0.0.1 vs. 127.0.1.1



* Russ Allbery wrote [30.07.13 22:25]:
> We (Stanford) strip them out in FAI.  We can, of course, continue to do
> that, but I thought I'd mention it as a data point.  If you have stable
> DNS, you really don't want to have another shadow source of IP to host
> mapping on local disk; it's almost certain to cause you problems later.

If you are in a situation with no stable DNS you can use
libnss-myhostname which resolves the hostname to your local configured
IP addresses or 127.0.1.1 & ::1 if no IP address is configured.

Ulrich


Reply to: