since upgrade to suse 11.3 every time I reboot pc the file /etc/hosts is reset to default value. I am a web developer so I need to put in there my aliases for 127.0.0.1. It is annoying to do it again and again. Luckily, I don’t restart my system very often but still I would like to avoid that.
What should I do to stop this resetting? Or is there another place in 11.3 where should I put my entries?
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# IP-Address Full-Qualified-Hostname Short-Hostname
127.0.0.1 localhost.localdomain localhost
# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback
127.0.0.2 redBook.redBook redBook
This is the default value. However I want to change the line starting 127.0.0.1 to something like…
It may be netconfig that’s regenerating the lines so you may have to change it in YaST, and define an alias rather than change the localhost entry. I use ifup so I have control over /etc/hosts. Also things may have changed in 11.3, I’m still on 11.2 on this machine.
Where should I look for netconfig in Yast? I have openSuse in Czech language so the names are a little bit different. Btw I am using networkmanager for network configuration so there also might be a problem. However in 11.2 it worked nicely even with NM so something has changed probably.