Change hostname on RedHat

by
on
September 10, 2010

Changing the hostname on a RHEL box is fairly straightforward if you perform the following steps.

First change the HOSTNAME line in /etc/sysconfig/network

Then change the hostname in /etc/hosts

From here you can either reboot for the changes to take effect or do the following two steps.

Force the system to start using the hostname.
$ sudo /bin/hostname new_hostname

Get syslog to use the new hostname.
$ sudo /sbin/service syslog restart

No Comments
red hat
, , , , , , ,

Related posts:

  1. Display hostname and IP address in C
  2. Install VirtualBox Guest Additions on Fedora 12
  3. Setup NFS server on Gentoo
  4. Setup SSH access between VirtualBox Host and Guest VMs
  5. Clone a VirtualBox Guest VM

Comments (0)

No comments yet

Trackbacks (0)

No trackbacks yet

Leave a Comment

(displayed with your post)
(will not be published)
(optional)

Copyright 2008-2010 WiredRevolution.com. All rights reserved.