Results 1 to 4 of 4

Thread: How to give a computer an hostname (on ssh)?

  1. #1
    Join Date
    Oct 2006
    Beans
    120
    Distro
    Kubuntu 10.10 Maverick Meerkat

    How to give a computer an hostname (on ssh)?

    Hello,

    I am running Ubuntu 8.04 with latest updates.

    I have two machines which connects to a third one used as a file server, using ssh.

    My router is configured with DHCP and hence sometimes changes the IP of the file server.

    When that happens, I need to reconfigure the other two computers so they will be able to connect to the file server.

    My question is: How can I give the file server a name, like a domain on the web, that will point to the file server no matter what IP address he has?

  2. #2
    Join Date
    Feb 2008
    Beans
    1,031

    Re: How to give a computer an hostname (on ssh)?

    There are other ways, involving wither enabling netbios broadcasts or setting up a wins or a dns server within the network, but probably the easiest thing to try first is to use the .local domain.

    i.e. if your machine is called "malcolm", try connecting to "malcolm.local", this should try and do the name resolution by avahi (at least I think thats what it does).

    So try this:

    Code:
    ping malcolm.local
    with malcolm replaced by your machine's host name.

    See if that works.

    Hope that helps

  3. #3
    Join Date
    Oct 2006
    Beans
    120
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: How to give a computer an hostname (on ssh)?

    WOW! Thanks!

    That works fine for me.

  4. #4
    Join Date
    Feb 2008
    Beans
    1,031

    Re: How to give a computer an hostname (on ssh)?

    excellent

Tags for this Thread

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
  •