Ubuntu Forums Archive Viewer

sudo: unable to resolve host dell

Archived thread 1005889 from Dell Ubuntu Support (CLOSED). Markdown source: Dell_Ubuntu_Support_(CLOSED)/thread_1005889_sudo_unable_to_resolve_host_dell.md

Original URL About this archive
#1

I don't recall when this started to occur but every time I enter 'sudo' a) it takes a long time (up to 10 seconds), b) it always says "sudo: unable to resolve host dell". I'm sure this is not good but I don't know what it portends. Does anyone know what i need to change to get rid of this 'problem'?

Thanks, Les

#2

check your hosts file:


gksu gedit /etc/hosts

your looking for a pair of lines like:


127.0.0.1	localhost
127.0.1.1	dell

most of the time, that error means that 'Dell' has been changed to a DNS name like Dell.<Domain>.net or whatever. just remove the end, leaving only the host name 'dell'. you need the line with 'dell' in order to sudo (though who knows why).

Network Manager in Gutsy did that to me all the time.... good luck