On Apr 29 11:15:15, t...@tedunangst.com wrote: > On Mon, Apr 29, 2013 at 11:02, Kenneth R Westerback wrote: > > On Mon, Apr 29, 2013 at 01:41:52PM +0200, Jan Stary wrote: > >> Installed yesterday's current/i386, using dhcpd and pxeboot > >> from another machine. After the installation, I noticed > >> that the address that was assigned to me during the install > >> via DHCP was written into /etc/hosts. Is that intended? > >> Should an arbitrary dhcp-assigned address be written into > >> /etc/hosts to stay there? Should that be mentioned in afterboot? > > > Your points are valid. I no longer recall the discussions that took > > place at the time, and am open to any new discussion. > > As I recall, Bad Things (tm) happen when the machine's hostname does > not resolve, and that's why there is always an entry in hosts. > > If I wanted to open a giant rabbit hole, I might suggest dhclient > should update hosts as it runs... But it's important that *something* > be in /etc/hosts that matches what's in /etc/myname. > > We changed it from adding 127.0.0.1 entries for the hostname because > Other Bad Things (tm) happened when forward and reverse lookups for > localhost and/or the hostname didn't coordinate.
On a fresh current/i386 I see 127.0.0.1 localhost ::1 localhost 192.168.167.100 gw.my.domain gw where is the dhcp address assigned to me during install, now completely meaningless. I just deleted it. Should this be mentioned afterboot, possibly under "Check hostname" or "Verify network interface configuration"? Jan