To resolve the DNS error within WHM, follow the steps below:
1.Log into WHM as the root user. https://ip address:2087.
2.Once logged in as the root user, navigate to Networking Setup and click Hostname.
3.Enter in a fully-qualified domain name and click Change. This should automatically change the server information noted in the email.
4.Log into the server via SSH as the root user.
5. Within the SSH session, open /etc/hosts in your favorite text editor. Make sure that an entry for your hostname iscontained within this file.
6.If the files does not have the updated hostname as entered into WHM, edit the file to contain the new hostname. Save the file and close it.
7.Next, ensure that /etc/resolv.conf is setup correctly. Open the file in your favorite test editor. The data contained within this file should be similar to the following: nameserver 220.127.116.11 nameserver 18.104.22.168
8.If this file is incorrect, edit it accordingly. The final step is to setup DNS for the hostname. If the hostname is set to cpanel.yourdomain.com and the IP address of the server is 22.214.171.124, an A record should be added for yourdomain.com with the value of cpanel pointed to the IP address 126.96.36.199.