How do I change linux hostname

 
SOLVED
Go to solution
Steven E. Protter
Exalted Contributor

How do I change linux hostname

I have a server

I log on as root.

I type hostname

answer teleaviv

I wish to change this to telaviv.investmenttool.com

I want to be fully qualified.

If this were possible under HP-UX, I would change the hostname in /etc/rc.config.d/netconf

Where do I do it in linux?

Thanks.

Points will be awarded liberally.
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
3 REPLIES 3
U.SivaKumar_2
Honored Contributor
Solution

Re: How do I change linux hostname

Hi,

Edit /etc/sysconfig/network file and put this.
NETWORKING=yes
HOSTNAME=wcproto.mydomain.com

#service network restart

regards,
U.SivaKumar
Innovations are made when conventions are broken
Mel C. Thompson
New Member

Re: How do I change linux hostname

I apologize for posting in a non-applicable thread, but I lost the orignal one, since I'm a newbie.

Just wanted to thank Mr. Protter for helping get my first Linux install to work on Suse by reminding us how to get into the command line via YaST
Steven E. Protter
Exalted Contributor

Re: How do I change linux hostname

Thanks.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com