Find the answer to your Linux question:
Results 1 to 4 of 4
One of my computers no longer identifies itself by the host name that it used to ... It now shows 'unknown', where it used to show 'chucknb-desktop' Host Name IP ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Apr 2007
    Posts
    298

    'Host name' on router status page...


    One of my computers no longer identifies itself by the host name that it used to ...

    It now shows 'unknown', where it used to show 'chucknb-desktop'

    Host Name IP Address MAC Address Expired Time

    dtop 192.168.0.104 00-0d-56-52-9e-25 Apr/07/2009 22:40:57
    unknown 192.168.0.103 00-14-78-ed-a5-b7 Apr/07/2009 22:40:36

    Any ideas?

  2. #2
    Linux User Giles's Avatar
    Join Date
    May 2005
    Location
    Gloucestershire and Cambridge, UK
    Posts
    283
    I think your host name is set by the file /etc/hosts on most systems - it should say something like
    Code:
    127.0.0.1 chucknb-desktop localhost
    HTH
    Giles
    "Our greatest fear is not that we are powerless. Our greatest fear is Microsoft"
    Registered linux user #391027

  3. #3
    Linux User
    Join Date
    Apr 2007
    Posts
    298
    Well, you're right, and my machine is still wrong.

    ??? Do I need to edit the entry? ADD an entry?

    /etc/hosts
    127.0.0.1 localhost
    127.0.1.1 chucknb-desktop

    # 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

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134
    Actually it's /etc/hostname that sets your host name.

    Also check the manpage for the hostname command.

    /etc/hosts associates host names with IP addresses.

Posting Permissions

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