I am using Plesk control panel on my website and every night it tries to uupdate itself and fails and then crashes completely and I have to reboot the server and flush the iptables just to be able to get into it.
When I look at the error log, part of it says:
Warning: Host name check failed. Can't detect host 94-76-241-19.static.as29550.net IPv4/IPv6 addresses: Name or service not known
And I also get errors about the hostname when trying to run the update manually.
However, I'm a little confused as to what I actually want to change the hostname...to.
I thought it was supposed to be the domain, so when I run hostname in terminal, it's currently set to: the-reborn.com (that's the domain of my main website on it).
When I go to: /etc/resolv.conf
This is what is in there (I haven't touched this):
domain as29550.net search as29550.net nameserver 184.108.40.206 nameserver 220.127.116.11 nameserver 18.104.22.168
And when I go to /etc/hostname there's nothing in that file.
Additionally, If I go to /etc/sysconfig/network I changed the hostname in here the other day, so it now reads:
So my question is this... What should the hostname...actually be? (I've googled for this several times but cannot find any actual answers). And which of these locations do I need to change it in?
FYI: I'm using CentOs 5