Web Hosting Talk







View Full Version : Changing linux server names


nipguards
01-03-2003, 10:59 AM
lo' there.

I have 2 linux boxes that I'm in the process of reconfiguring. I was wondering if anyone could point me in the direction of a help file on what's required to change the server names.

I know I have to edit the DNS and /etc/hostname, but can anyone help fill in a little bit more of process?

Thanks,
nipguards


--------------
Yeah, I'm chafing a bit right around "here" from my long runs.

Oh, you need some nip guards!

zerphyte
01-03-2003, 01:01 PM
man hostname

apollo
01-03-2003, 01:03 PM
If you are on a RedHat you should do the following

1.) As zerphyte pointed out.

hostname dude.yourdomain.com

2.) Then you should edit /etc/sysconfig/network and correct hostname there :)

All the above should do the work :)

ps. don't forget to update /etc/hosts file as well and also DNS records