Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

Unable to resolve host

  Date: Dec 13    Category: Unix / Linux / Ubuntu    Views: 370
  

I'm running Ubuntu 8.04 with Gnome. In a terminal when I use 'sudo' in
front of a commend I get the message "sudo: unable to resolve host
LinuxBox3" before the command is executed. 'LinuxBox3' is the computer
name I assigned. What does this mean and what setting have I missed?

Share: 

 

2 Answers Found

 
Answer #1    Answered On: Dec 13    

The command gets executed anyway, right? There's an easy fix. Make a
backup copy of your "/etc/hosts" file, and then edit (via sudo gedit)
"/etc/hosts".

Look for a line that contains:

127.0.1.1 LinuxBox3.something

where "something" is likely the workgroup name you entered somewhere.
(On my computer, it was the second line in /etc/hosts.) Get rid of
the ".something" (be sure to delete the "."), so the line reads

127.0.1.1 LinuxBox3

save the file, and reboot.

 
Answer #2    Answered On: Dec 13    

I'll try that (I'm presently on work XP system). Yes the
command gets executed anyway. I don't remember entering a workgroup
name when I loaded Ubuntu. It did ask me for a domain name, and I
made something up because I don't run a domain. Maybe that's the
problem.

 
Didn't find what you were looking for? Find more on Unable to resolve host Or get search suggestion and latest updates.




Tagged: