Hope you are doing well,


You have not updated the /etc/hosts file in the CentOS


1) First of all type the command to get the ip address

ifconfig

For eg - > Ipaddress of my vm is 192.168.1.144




2) Now Login as root

su


4) Open /etc/hosts file using 

gedit /etc/hosts


and add two lines given below


127.0.0.1 localhost.localdomain localhost

 

192.168.1.144 localhost.localdomain localhost


        

I think this will resolve the query