Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14625 reviews 1734 hosting providers

Questions & Answers

WHM DNS Error

May 10, 2012 by chris
Hi all.. I received an email with a WHM DNS error. This is the email I got
From: cpanel@12345-1.12345-1com
Subject: [ipcheck] Problems with dns setup on 12345-12345-1.com
IMPORTANT: Do not ignore this email. The hostname (12345-12345-1.com) resolves to <does not resolve>. It should resolve to <server IP address>.
Please be sure to correct /etc/hosts as well as the 'A' entry in zone file for the domain.  Some are all of these problems can be caused by /etc/resolv.conf being setup incorrectly. Please check this file if you believe everything else is correct.
You may be able to automatically correct this problem by using the ' Add an A entry for your hostname ' under ' Dns Functions ' in your Web Host Manager

Does anyone know what should I do to resolve this?
thanks

1 Answer

0 votes
May 10, 2012 by moon_tag
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 76.12.32.110 nameserver 208.112.89.187
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 1.2.3.4, an A record should be added for yourdomain.com with the value of cpanel pointed to the IP address 1.2.3.4.