Results 1 to 7 of 7

Thread: Computer Names on the Network

  1. #1
    Join Date
    Jun 2008
    Location
    San Diego
    Beans
    182
    Distro
    Ubuntu 9.10 Karmic Koala

    Computer Names on the Network

    Hi everyone. I'm trying to figure out why I can't get to my server using its host name.

    The ones that are working are running 8.10. I can get to them by using charlotte-desktop.local and hunter-desktop.local. Such as:
    Code:
    ssh charlotte@charlotte-desktop.local
    But I can't get to my server at hunter-server.local. That one is running 8.04 Server. It was hunter-server.family (which I also couldn't get to), but I changed /etc/hosts to:

    Code:
    127.0.0.1       localhost
    192.168.0.10    hunter-server
    
    # 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
    so it would be hunter-server.local. I also can't get to my other computers from it. I get this:

    Code:
    hunter@hunter-server:~$ ssh hunter@hunter-desktop.local
    ssh: hunter-desktop.local: Name or service not known
    Any ideas?
    Site | My PHP Framework
    "…the Linux philosophy is 'laugh in the face of danger'. Oops. Wrong one. 'Do it yourself'. That's it." -Linus Torvalds

  2. #2
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Computer Names on the Network

    Hve you tried just:
    Code:
    ssh hunter@hunter-desktop
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego
    Beans
    182
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Computer Names on the Network

    Quote Originally Posted by Iowan View Post
    Hve you tried just:
    Code:
    ssh hunter@hunter-desktop
    I just tried it and got the same result.

    Code:
    hunter@hunter-server:~$ ssh hunter@hunter-desktop
    ssh: hunter-desktop: Name or service not known
    Site | My PHP Framework
    "…the Linux philosophy is 'laugh in the face of danger'. Oops. Wrong one. 'Do it yourself'. That's it." -Linus Torvalds

  4. #4
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Computer Names on the Network

    I presume you can ping it by IP address?
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego
    Beans
    182
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Computer Names on the Network

    Quote Originally Posted by Iowan View Post
    I presume you can ping it by IP address?
    Yeah. I can SSH to it by IP address, just not host names. I tried changing the /etc/hosts file again. I'll let you know if that works.
    Site | My PHP Framework
    "…the Linux philosophy is 'laugh in the face of danger'. Oops. Wrong one. 'Do it yourself'. That's it." -Linus Torvalds

  6. #6
    Join Date
    Mar 2009
    Location
    Spud Land
    Beans
    3
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Computer Names on the Network

    But you really shouldn't have to edit the hosts file.

    Why is it that current Linux distros tend to fail simple local network IP name resolution? That *other* OS (Windoz) does it well and simple local networks will name resolve easily.

    I don't know the answer either (short of editing the hosts file) but in a DHCP network (even simple "at home" networks) the device that serves out the dynamic IP numbers (usually the router) also by default should be doing at least rudimentary name resolution.

    I know, this doesn't help. It's one of my pet peeves with the recent Linux distros.

  7. #7
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Computer Names on the Network

    dnsmasq reportedly ties DNS and DHCP together better than DHCP3 that I use. "Someday" I'll get around to trying it.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

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
  •