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”     localhost.localdomain      localhost   new_host_name

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


3. Reboot your machine

Have a fun 🙂




Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.