I'm on a cpanel environment and I get a daily notification to tell me my hostname could not be resolved to ip address. Looking at my /etc/hosts file I then find this:
127.0.0.1 localhost.localdomain localhost
[my server ip] server7 server7
My understanding is that this file should be more like
[my server ip] subdomain.primarydomain.com subdomain
A few things come up for me:
1) Do I need to add all the subdomains in here that I'm using, ie ftp, mail, www ?
2) Is this setup actually erroneous - and if so, what is it in my WHM/Cpanel setup which has created this erroneous /etc/hosts file so that I can fix it?