Ubuntu – changing back to — will it break anything in Unity


The /etc/hosts file defaults your hostname to rather than   localhost   my_machine

I've already found out why. But that was giving me problems testing some web apps, which had hard-coded assumption, that local machine == So I've change my hosts file to   localhost my_machine

Question is:

  • are there reasons for which hack still valid?
  • if so, which software included in 11.04 might have problem with the change I've made?

Best Answer

Your local machine IS It's the standard IP for the localhost.

Instead, the hostname of your machine resolves to

It should be no problem to change it to anything in the range which is reserved for loopbacks.

As long as nothing listens exclusively on you should be safe. To find if there's something listening on

sudo netstat -tunelp | grep
Related Question