Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    '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 00-0d-56-52-9e-25 Apr/07/2009 22:40:57
    unknown 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
    Gloucestershire and Cambridge, UK
    I think your host name is set by the file /etc/hosts on most systems - it should say something like
    Code: chucknb-desktop localhost
    "Our greatest fear is not that we are powerless. Our greatest fear is Microsoft"
    Registered linux user #391027

  3. #3
    Well, you're right, and my machine is still wrong.

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

    /etc/hosts localhost 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
  5. #4
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    the hills
    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