Right solution for /etc/hosts file reset on reboot

Posted by user846226 on Super User See other posts from Super User or by user846226
Published on 2012-11-14T16:43:24Z Indexed on 2012/11/14 17:06 UTC
Read the original article Hit count: 203

Filed under:
|

i've just installed funtoo and after setting the FQDN on /etc/conf.d/hostname i noticed when setting a list of aliases in /etc/hosts file it get overwtiten on each reboot.

Someone points to set the aliases to 127.0.0.2 ip address but that's not a valid solution for me. Could someone point me to the file where i should place entries like

127.0.0.1 local.foo 127.0.0.1 local.bar

in order to make them persist in /etc/hosts after rebooting?

Thanks!

PD: I think openresolv could be the one who is overwritting the file.

© Super User or respective owner

Related posts about linux

Related posts about networking