server_hostname_validator "invalid hostname configuration"
Randomly over the past several weeks, we get an emailed report from randomly different cPanel servers complaining about our hostname:
The system detected an invalid hostname configuration on: cp2.example.com
The main IP address of your cPanel & WHM server is "actual.IP.address.of.server". The hostname does not resolve to this IP address. This misconfiguration can cause some services on your server to fail to restart properly. The cause of your misconfiguration is:
WHM has detected a manual hostname change.
To fix this problem, we recommend that you perform the following action:
Update your hostname in WHM"s (
We have no issue with our A & PTR records for our servers - they match just as they're supposed to. Next week, we may get a notice from another cPanel server, which will also not reflect reality. Is something wrong with the script? Is there something else we need to check?
We have no issue with our A & PTR records for our servers - they match just as they're supposed to. Next week, we may get a notice from another cPanel server, which will also not reflect reality. Is something wrong with the script? Is there something else we need to check?
-
Hello :) Are you able to reproduce the issue on any of these servers by manually running the "/scripts/check_valid_server_hostname" command? Are these servers connected to the same DNS cluster, or is DNS handled separately on each server? Thank you. 0 -
Hello :) Are you able to reproduce the issue on any of these servers by manually running the "/scripts/check_valid_server_hostname" command? Are these servers connected to the same DNS cluster, or is DNS handled separately on each server? Thank you.
We corrected the issue by renaming the server with the same name it was named with.The hostname was already set to cp2.ourdomain.com, syncing configuration only.0 -
I am happy to see the issue is now resolved. It's likely there was cached data that had yet to update. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
3 comments