Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I often need to use aliases for localhost ( for my development work of websites, such that I can access them locally while routed via apaches virtual host concept.

In the past I have always amended the /etc/hosts file and added my aliases there.

However, I have noticed after the install to Maverick that the /etc/hosts file is overwritten in the process of upgrading.

How can I make my aliases permanent? Is there a better place to put them (I do not really want to run a full blown local DNS server, if I can avoid it).

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

This seems to be a bug in network-manager. See #659872 (Aliases in /etc/hosts overwritten).

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.