Re: changing linux hostname without rebooting

From: Tony (tonyw_at_suse.stanford.edu)
Date: 10/10/03


Date: Thu, 9 Oct 2003 18:06:25 -0700

why couldnt someone just tell me this:

echo "newhostname" > /proc/sys/kernel/hostname

"Jim Fischer" <jfischer_link5809@now.here.com> wrote in message
news:1065739451.718200@cache5.usenetserver.com...
> Tony wrote:
> > How can I change the prompt of the linux hostname (REDHAT) without
rebooting
> >
> > 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.
>
> --
> Jim
>
> To reply by email, remove "link" and change "now.here" to "yahoo"
> jfischer_link5809{at}now.here.com
>



Relevant Pages

  • Change local name of bluetooth module
    ... I have to change the local name of my bluetooth device. ... host name by calling sethostname and rebooting the system didn't solve ...
    (microsoft.public.windowsce.platbuilder)
  • Re: changing linux hostname without rebooting
    ... > How can I change the prompt of the linux hostname without rebooting ... I've noticed that various system startup scripts use the boot-time ... host name when configuring the system. ...
    (comp.os.linux.networking)
  • Re: Duplicate Host (A) Records
    ... Seemed to of solved the problem by rebooting the host, ... Having looked at the two DNS entries in detail, ... had cached the old IP address somehow and was registering both the old and ...
    (microsoft.public.windows.server.dns)
  • Re: RDP Session
    ... The host PC isn't rebooting I've checked the log events. ... The re-connect window appears if I ping the host after the vpn is ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Zeroconfig and Multicast DNS
    ... I see LLA as a way of configuring an IP-address while ... That's an important part of zeroconf, implemented via mDNS. ... The answer is that either both hosts must implement ARP/RARP functionality, or that there be at least one additional host with addresses in both ranges that is willing to act as a router. ...
    (freebsd-net)