Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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/hostname.sh 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?)?

UPD1:

I found some information here: http://jblevins.org/log/hostname, but it is all about how to use it and not about - why it is required.

share|improve this question

You must log in to answer this question.

Browse other questions tagged .