Re: changing linux hostname without rebooting
From: Tony (tonyw_at_suse.stanford.edu)
Date: Thu, 9 Oct 2003 18:06:25 -0700
why couldnt someone just tell me this:
echo "newhostname" > /proc/sys/kernel/hostname
"Jim Fischer" <firstname.lastname@example.org> wrote in message
> Tony wrote:
> > How can I change the prompt of the linux hostname (REDHAT) without
> > I already changed /etc/hosts
> FWIW, I've noticed that various system startup scripts use the boot-time
> host name when configuring the system. And if you change the host name
> after the system has booted, some existing configuration settings
> continue to use the former (boot-time) host name, and not the new host
> name. (A typical example is the firewall settings.) So this is why the
> system should be rebooted (IMO) after the host name is changed.
> FWIW, on Red Hat 8/9 boxes, the host name should be specified via the
> GUI network configurator program within the X Windows environment:
> [root]# redhat-config-network
> # Click on the "DNS" tab
> This ensures the appropriate RH8/9 system config files are updated as
> needed. You should then reboot the system so that the startup scripts
> are re-run using the new host name.
> To reply by email, remove "link" and change "now.here" to "yahoo"