Re: Changing the hostname

From: Bill Unruh (unruh_at_string.physics.ubc.ca)
Date: 04/12/04


Date: Mon, 12 Apr 2004 16:09:14 +0000 (UTC)

No One <noone@yahoo.com> writes:

]I have a Linux machine on my local area network. I have run the
]hostname command to change the host and domain name. I also ran the
]domainname command. All is well till I reboot and it resets to
]"localhost.localdomain". I am running RH 9. How do I keep the settings
]on reboot? It has a static ip.

hostname only changes the running hostname. It does not save it.
/etc/sysconfig/network



Relevant Pages

  • Re: hostname for a system with multiple network interfaces
    ... When I give hostname command at my ... Regardless of what names multiple interfaces may have, ... answer at any given time for the hostname command and that name should ... 'host myname.no-ip.com' returns my pppoe_ip ...
    (comp.os.linux.setup)
  • Re: setting computer name
    ... ># that require network functionality will fail. ... >127.0.0.1 localhost.localdomain localhost ... The hostname command does not update the /etc/hosts file. ...
    (Fedora)
  • Re: WORKAROUND Re: Cannot change hostname permanently
    ... command appears to work (the hostname command reports the new hostname ... and a new login shows the new hostname in the prompt) but /etc/hostname ... The hostname command is working correctly. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • hostname -- how is it set?
    ... What configuration file must I edit to change the system's hostname? ... I know I can issue the hostname command, but I want to make whatever ...
    (RedHat)
  • Ubuntu caching config info?
    ... So I made the bad mistake of trying to change my hostname (just put the ... name of the new host in /etc/hostname and rebooted) and it raised 8 ... kinds of new hell on reboot (custom compiled kernel, ... Does Ubuntu cache config info anywhere? ...
    (Ubuntu)