Control Web Panel

WebPanel => CentOS-WebPanel GUI => Topic started by: Luca2186 on February 08, 2017, 09:15:16 AM

Title: Wrong info in CWP info block
Post by: Luca2186 on February 08, 2017, 09:15:16 AM
The CWP info block at the end of the right column report a wrong information.
Near 'Server IP' there is a wrong host name
The format should be:
Server IP: 123.123.123.123 | server1.mydomain.it
But what i see is:
Server IP: 123.123.123.123 | server1.mydomserver1.mydomain.it.it
My rdns is correct and points to server1.mydomain.it
My hostname seems to be correctly set in both cwp and centos6 to server1.mydomain.it
Where cwp gui fetch this wrong information? ho can I fix it?
Thanks
Title: Re: Wrong info in CWP info block
Post by: Sandeep on February 08, 2017, 12:25:35 PM
check the /etc/hosts file
Title: Re: Wrong info in CWP info block
Post by: Luca2186 on February 09, 2017, 09:29:25 AM
Thank you, the problem was in /etc/hosts.
I found both correct and incorrect hosts in it, I deleted all the wrong hosts and than ran  /etc/init.d/network restart just to be sure.