View Full Version : [ubuntu] Domain issue causes unresolved host

November 4th, 2010, 05:55 PM
Hello, I've had a dual booting linux partition for a while and am fairly capable with it at this point. However, the most recent problem I'm encountering is very confusing to me. Whenever I try to use the sudo command in the terminal I get the message unable to resolve host, then my computer name. Here's some command line output with some files which I think may be causing the problem. Please help, I have Operating Systems homework and need sudo :(

steve@steve-laptop:~$ sudo gedit /etc/resolv.conf
sudo: unable to resolve host steve-laptop
steve@steve-laptop:~$ cat /etc/resolv.conf
# Generated by NetworkManager
domain domain_not_set.invalid
search domain_not_set.invalid
steve@steve-laptop:~$ hostname
steve@steve-laptop:~$ domainname
steve@steve-laptop:~$ dnsdomainname
dnsdomainname: Name or service not known
steve@steve-laptop:~$ cat /etc/hosts localhost steve-laptop

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

I'm running Lucid Lynx

November 5th, 2010, 03:12 AM
What happens if you manually delete these from resolv.conf?

domain domain_not_set.invalid
search domain_not_set.invalid