New to linux and confused about changing the hostname

From: Patrick Shroads (patrickshroads_at_hotmail.com)
Date: 02/16/04


Date: 15 Feb 2004 21:07:07 -0800

I'm a begginer so bear with me:

I've just built my first Linux box (Mandrake 9.2) and I want to use it
as a file/print/web/database server for my Mac and Windows machines on
my home network. I am trying to figure out how to change my machine's
name because I use DHCP and so want to access the machine by name
rather than IP address. It's currently called 'localhost' which I
guess is the default. If I change it using the uname or hostname
commands it reverts back to 'localhost' after a reboot. Someone
suggested altering the /etc/hosts file but if I use DHCP so how would
I do that since the IP address could change with a reboot?

Thanks!



Relevant Pages

  • Re: How to reconnect an ethernet connection
    ... Are you using static IP addresses or DHCP? ... If moving Windows machines between the two ... If you're moving between subnets, then you've got to tell the ... I don't think most Linux setups ...
    (comp.os.linux.misc)
  • Re: Network stack: three strikes and youre out....
    ... You can change from say a DHCP network configuration to a static ... your only solution is to reboot. ... when I'm in a free WiFi hotspot or on vacation using the hotel's ...
    (comp.sys.mac.comm)
  • Re: hostname doesnt stick
    ... Do you mean having a localhost name entry? ... that tries to start up using the machine's hostname, ... A lot of them handle DHCP, and act as a caching name ...
    (Fedora)
  • Re: Microsoft Support
    ... > Connection specific DNS Suffix ... > DHCP Enabled ... ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: 2000 server wont boot.
    ... But try a boot disk: ... >> 2000 Server displays the following message during startup "DHCP not ... DHCP had been installed recently (during the last reboot). ...
    (microsoft.public.windows.server.general)