Change hostname OEL5/OEL6

In case you need to assign new name “new_host_name” for your host execute following steps

1. Modify “/etc/hosts” file to contain a fully qualified name for the server.

<IP-address>  <fully-qualified-machine-name>  <machine-name>

Enter following data to “/ect/hosts”

127.0.0.1     localhost.localdomain      localhost
192.168.0.50  new_host_name.dbaora.com   new_host_name

2. Modify “/etc/sysconfig/network” file

NETWORKING=yes
HOSTNAME=new_host_name.dbaora.com

3. Reboot your machine

Have a fun 🙂

Tomasz

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *