PDA

View Full Version : [ubuntu] host name for sudo



rplantz
April 11th, 2009, 04:53 PM
I have been playing with dnsmasq but have not completed the set up. Now when I need to use sudo for something I get


bob@bob-desktop:~$ sudo updatedb
sudo: unable to resolve host bob-desktop

However,


bob@bob-desktop:~$ hostname
bob-desktop

sudo works just fine. What is causing this error message?

Edit: Thanks to Michael.Godawski for providing the link that shows how to fix this.

Michael.Godawski
April 11th, 2009, 05:43 PM
hi rplantz ,

have a look here:



http://ubuntuforums.org/showthread.php?t=723361