Our new managed server was installed with the wrong hostname. No problem, I thought, and used the WHM to change the hostname.
It did change the hostname, but maybe not everywhere --
1) The reverse DNS entry still showed the original, wrong hostname.
2) Apache's httpd.conf file still showed the original. wrong hostname in ServerName and ServerAdmin equates.
3) There may be an original wrong hostname somewhere in the exim (sendmail) system, or maybe the emails from [email protected] have been created by the bad reverse DNS. I am too ignorant in this area to know, and haven't found the exim config files yet.
Anybody else ever do a hostname change via WHM, and then needed to patch up a few places where WHM did not change the hostname for you?
-- Arthur Cronos
PS: One other thing. When setting up WHM for the first time, I got a warning that told me that the 'hostname' needed to be a domain I owned and that it could not be any user on the system.
Well, that was very ambiguous to me at the time. I didn't know if 'hostname', in that context, meant 'server', 'domain', 'domain.com', or 'server.domain.com'.
Now after fiddling a bit, I'm pretty sure you meant that the 'hostname' is the first part, then 'domain.com' is the domain, and than the 'server name' is the whole thing. IE:
hostname -- boogie
domain -- shoes.com
servername -- boogie.shoes.com
Is this correct? If so, a definition or example during that set-up script (and in the manual) would avoid some confusion for cpanel users in future.
It did change the hostname, but maybe not everywhere --
1) The reverse DNS entry still showed the original, wrong hostname.
2) Apache's httpd.conf file still showed the original. wrong hostname in ServerName and ServerAdmin equates.
3) There may be an original wrong hostname somewhere in the exim (sendmail) system, or maybe the emails from [email protected] have been created by the bad reverse DNS. I am too ignorant in this area to know, and haven't found the exim config files yet.
Anybody else ever do a hostname change via WHM, and then needed to patch up a few places where WHM did not change the hostname for you?
-- Arthur Cronos
PS: One other thing. When setting up WHM for the first time, I got a warning that told me that the 'hostname' needed to be a domain I owned and that it could not be any user on the system.
Well, that was very ambiguous to me at the time. I didn't know if 'hostname', in that context, meant 'server', 'domain', 'domain.com', or 'server.domain.com'.
Now after fiddling a bit, I'm pretty sure you meant that the 'hostname' is the first part, then 'domain.com' is the domain, and than the 'server name' is the whole thing. IE:
hostname -- boogie
domain -- shoes.com
servername -- boogie.shoes.com
Is this correct? If so, a definition or example during that set-up script (and in the manual) would avoid some confusion for cpanel users in future.