Problem with DNS setup on cpanel

osyrys14

Member
Jul 5, 2013
23
0
1
cPanel Access Level
DataCenter Provider
Keep getting these emails,

The hostname (cpanel-internal.domain.au) resolves to
103.9.x.xx. It should resolve to 10.1.x.xx. Please be sure that
the contents of /etc/hosts are configured correctly, and also that
there is a correct 'A' entry for the domain in the zone file.

However, if I change it to resolve to the internal IP address, nothing will resolve to the internet properly. Can we just ignore these messages, or is there something that can be done about this?
 

quietFinn

Well-Known Member
Feb 4, 2006
2,042
552
493
Finland
cPanel Access Level
Root Administrator
Change the IP in WHM-> Server Configuration-> Basic cPanel & WHM Setup-> Basic Config to 103.9.xx.xx
 

quietFinn

Well-Known Member
Feb 4, 2006
2,042
552
493
Finland
cPanel Access Level
Root Administrator
If you go to
WHM-> IP Functions -> Show or Delete Current IP Addresses
what do you see?

As far as I understand cPanel server's main address can not be a "private IP address".
 

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Hello,

I can see you server hostname is not setup correctly on your server and due to that it's resolving to correct IP. You will have to setup the correct and fully qualified domain name for your hostname. You can change it through WHM >>Networking Setup >> Change Hostname and after that add correct "A" record for your server hostname through WHM >> DNS Functions >> Add an A Entry for Your Hostname
 

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Also I will suggest you, If your main domain is hosted on other server then you will have to add "A" entry for your " cpanel-internal " to your server IP 103.9.xx.xx so that you should not get any other issues with your server hostname
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

Actually, you can safely ignore this warning message. It's normal for this message to show up when you are using a private IP address. There is an internal case open (#56083) to address this issue in a future build of cPanel, however in the meantime you may want to setup a filter in your email client to prevent this message from appearing in your inbox. Please ensure your hostname does resolve to a public IP address.

Thank you.