1. Navigate to “vi /etc/hosts”
Add the below line to the file, first the IP address followed by the ESX host name as shown below.
2. Navigate to “vi /etc/sysconfig/network” and update ESX host name in the second line of the file as shown below.
You would need to restart the network service to implement the change, by issuing the below command.
service network restart