If you find that the /etc/hosts
file getting over written (I have found this happening in Virtuzzo and HyperVM servers already) ensure that you add the additional entries above the following comment line which you see in /etc/hosts
file.
# Auto-generated hostname. Please do not remove this comment.