To keep /etc/hosts after a reboot, do :

$ chattr +i /etc/hosts