Find the answer to your Linux question:
Results 1 to 2 of 2
when I open a shell tjhe prompt in my system is <name>@localhost this despite the fact teh machine has been asiigned a definite name by the dhcp server. why does ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Posts
    17

    host name


    when I open a shell tjhe prompt in my system is

    <name>@localhost

    this despite the fact teh machine has been asiigned a definite name by the dhcp server.
    why does my machine does not recognize its own name?

  2. #2
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    The dhcp server assigns you an ip address, it has nothing to do with the hostname.
    To change the your hostname do
    Code:
    nano -w /etc/hostname
    Change it to whatever you like.
    Hit Ctrl + x to quit, say y to save your work, hit Enter.
    Hostname changed.
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

Posting Permissions

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