This question already has an answer here:

I've changed my machine name through editing /etc/hostname file. but since I did, a weird message appears whenever I sudo:

sudo: unable to resolve host Tehuti

then it asks for password normally.

What is wrong and is there a correct way to change name with causing problems?

marked as duplicate by Lekensteyn, user25656, hhlp, stephenmyall, Seth Mar 6 '13 at 19:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Check in your hosts file(/etc/hosts), for the entry of Set your new hostname there as well. So probably for you: Tehuti


You have to edit /etc/hosts too. Replace old name with new name.

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