How-To Technical

sudo and “unable to resolve host hostname” error message

Working on a clean install of Ubuntu Desktop 13.04. I changed the hostname of the system /etc/hostname and later noticed I got the following error message “unable to resolve host hostname” when ever I did an sudo command (example: sudo -i).

To resolved this I changed the following:

I used nano to edit /etc/hosts and changed host entry to to my new host name. Closed the file and no more error message.