Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I found in the /etc/hostname my IP-address, than I deleted it and each time I use sudo - I get a message and a system email sudo: unable to resolve host (none) or if in the /etc/hostname is saved myhostname than sudo: unable to resolve host (myhostname).

I know it is used to set the system's hostname via /etc/init.d/ while booting process, but what is this setting required for (programs, services, daemons ...)?

What if i set to localhost (so it doesn't happen any sudo: unable to resolve host (none) anymore, but is it still ok?)?


I found some information here:, but it is all about how to use it and not about - why it is required.

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.