Results 1 to 5 of 5

Thread: sudo: unable to resolve host Lair

  1. #1
    Join Date
    Apr 2008
    Location
    Sessrumnir
    Beans
    440
    Distro
    Ubuntu 9.10 Karmic Koala

    sudo: unable to resolve host Lair

    hi all

    when using terminal im getting this message

    sudo: unable to resolve host Lair

    when i do something like;

    i.e. sudo gedit /etc/samba/smb.conf

    it doesnt seem to effect whatever i am doing, but, what is it and why has it suddenly begun to occur?
    "Windows Vista Sir?"
    "No thanks, I'd rather shove wasps up my nostrils!"

  2. #2
    Join Date
    Nov 2006
    Location
    40.31996,-80.607213
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: sudo: unable to resolve host Lair

    Post the result of these two commands, please:
    Code:
    cat /etc/hosts
    cat /etc/hostname
    "Security lies within the user of who runs the system. Think smart, live safe." - Dr Small
    Linux User #441960 | Wiki: DrSmall

  3. #3
    Join Date
    May 2008
    Location
    Eugene, OR, USA
    Beans
    435

    Re: sudo: unable to resolve host Lair

    You might want to check out this thread:

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

    Sounds like you're having the same issue.
    Hal Pomeranz, Deer Run Associates
    [[ Various Linux/Unix related documents ]]
    [[ Command-Line Kung Fu blog ]]

  4. #4
    Join Date
    Jun 2008
    Location
    Buenos Aires, Argentina
    Beans
    1
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: sudo: unable to resolve host Lair

    This just happened to me.

    Write in the terminal:

    sudo gedit /etc/hosts

    Then, add the following line at the beginning:

    127.0.0.1 denise

    (In my case, "denise" is my computer's name... change it for your computer's name) and save.

  5. #5
    Join Date
    Apr 2008
    Location
    Sessrumnir
    Beans
    440
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: sudo: unable to resolve host Lair

    Code:
    fenris@Lair:~$ cat /etc/hosts
    127.0.0.1 localhost
    127.0.1.1 Lair.TOTSVILLE
    
    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    fenris@Lair:~$ cat /etc/hostname
    i have changed the top line as follows;
    Code:
    127.0.0.1 Lair
    127.0.1.1 Lair.TOTSVILLE
    now i get this in terminal when i close i.e. gedit /etc/*****
    Code:
    Usage:program_name [address][:port]Usage:program_name [address][:port]Usage:program_name [address][:port]fenris@Lair:~$ sudo gedit /etc/hosts
    @Hal looked at the thread you indicated and have adjusted my host file in a similar fasion. result sorted
    now im not sure i can assist in why it suddenly began but here goes. my hostname was picked during install.
    samba was installed later and i had to add a line to gain permission to create shares, i also changed the 'group'
    from the default.

    workgroup = TOTSVILLE << changed from the default 'workgroup'
    usershare owner only = False<< added this whole line

    at the time nothing occured. BUT the latest updates requested if i wanted to keep my current smb.conf or install the newer 1. i opted for the newer one, last time i refused a similar offer it caused severe problems later, and of course i had to go back in to smb.conf to re-edit as before. this is the only thing that was done after the latest updates and emmediately before it started throwing the message up. thanks for all your help guys, clicking your thanks
    Last edited by Fenris_rising; June 11th, 2008 at 08:38 AM.
    "Windows Vista Sir?"
    "No thanks, I'd rather shove wasps up my nostrils!"

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •