[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing machine's name



On Fri, Feb 16, 2001, Sagi Bashari wrote about "Re: changing machine's name":
> /bin/hostname newhost
> 
> On Fri, 16 Feb 2001, Ishai Parasol (IGLU) wrote:
> 
> > Hi
> >
> > How can I change my box's name without rebooting. Let's say its name is:
> > localhost.localdomain and I want to change it to localhost.mydomain.com.
> > I tried to do it with linuxconf but from some reason it does'nt work.
> > Any one has any other ideas ?

True, the hostname command can be used to change the host's name of the
running system (this isn't remembered after the next reboot!), but why
doesn't linuxconf, which changes the appropriate file (/etc/sysconfig/network?
I don't know), also run "hostname" to change the hostname immediately?
I also ran across this problem, and consider it a bug.

-- 
Nadav Har'El                        |      Friday, Feb 16 2001, 23 Shevat 5761
nyh@math.technion.ac.il             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |Experience is what causes a person to
http://nadav.harel.org.il           |make new mistakes instead of old ones.

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il