Support
- Advanced Backup
- Client Side
- Cloud Enterprise
- ColdFusion
- Control Panel
- cPanel
- Addon
- Apachebuild
- Changerootpassword
- Configure
- Cpmysqldb
- Createemailuser
- Createftpuser
- Hostname
- Mainipwebsite
- Newaccount
- Packages
- Parkdomain
- Phpmyadminaccess
- Restartservices
- Services
- Timezone
- Whitelistpremiumspamservers
- Cpanelvps
- Configuring cPanel wide email filters
- Managing your suspended page in WHM
- Creating an add-on domain or pointer
- Creating an auto responder
- Creating Cron Jobs
- Using the database wizard
- Forward Domain Emails to Another Domain
- Forward Emails
- Reset Email User Passwords
- Install FrontPage Extensions
- Manage FTP Sessions
- Provide Hotlink Protection
- Use Image Manager
- Change cPanel Language
- Create a Mailing List
- Manage MIME Types
- Park a Domain
- Reset/Modify cPanel Account Password in WHM
- Using PHPMyAdmin in cPanel
- Set Up Remote Access Key
- Create Subdomains
- Change Control Panel Theme
- Manage Bandwidth Limits
- Update Contact Information
- Deny IPs
- Trace an Email Address
- Disable Reset Password Option
- Redirect URLs
- Suspend Accounts
- Configure Email User Filters
- Add a MySQL Database in cPanel
- Fix a WHM DNS Error
- Fix Suspended Page in WHM
- How to Modify the Number of Processes for SpamAssassin in cPanel
- Enabling Domain Keys In cPanel
- Install SSL in cPanel
- Using Winscp To Upload Files To A cPanel Server
- Migrating From cPanel To Plesk
- Preview Website on a Linux Server via cPanel
- Fix Expired License Error with WHM
- Installing ImageMagick For cPanel
- Changing the Mail Routing Settings in cPanel
- MySQL Disk Usage Tracking
- Set Up a Password Protected Directory in Cpanel
- Restart Services in WHM
- PCI Compliance in Cpanel
- Advanced Policy Firewall
- Customer Portal
- DNS Information
- Dedicated Servers
- DirectAdmin
- Domain Name
- dotDefender
- Dreamweaver
- FileCatalyst
- Front Page
- FTP
- General Information
- Hosted Exchange & SharePoint
- IIS6
- IIS7
- Juniper Netscreen Firewalls
- Linux
- List Server
- MIVA Merchant
- MySQL
- Patching / Server Updates
- phpMyAdmin
- Plesk
- Policies and Procedures
- Premium Spam Filtering
- Programming
- Ruby on Rails
- Search Engine Submission
- SharePoint 3
- SharePoint 2010
- SiteDesigner
- SmarterMail 3
- SmarterMail 4
- SmarterMail 5
- SmarterMail 6
- SmarterMail 7
- SmarterStats
- SmarterTrack
- SQL Server
- Secure Socket Layer (SSL)
- Uploading Your Website
- Video Tutorials
- Windows Server 2003
- Windows Server 2008
- Web Design
- WordPress
- Advanced Monitoring
- MediaWiki
- Enkompass
- Microsoft Outlook 2010
- Android
- Outlook Web Access
- Critical Availability Service
- NAS Data Transfer
- Customer Portal Demos
- Joomla
- Moodle
- Cloud Dedicated
- Gallery CMS
- phpBB
- Standard Monitoring
- Righteous Restore
- NAS (Network Attached Storage)
- Networking
- SmarterMail 8
- PCI Security Scan
- LinkTiger
- Windows Cloud VPS
- Linux Cloud VPS
- Linux VPS
- Windows VPS
- Hyper V
- ENSIM
- Alert Logic
- Webmin
- e107
- Vbulletin
- VPN
- Visual Vault
- Mozilla Thunderbird
- PyroCMS
- Active Directory
- Vmware Related
- Drupal
Fix a WHM DNS Error
When a new setup is deployed, the default hostname is set to account_number.account_number. For example if you have a Virtual Machine or Dedicated Linux Server with cPanel installed and your account number is 12345-1, the hostname defaults to 12345-1.12345-1.com in the initial setup. As such, the server administrator may receive an email similar to the one below until the issue is resolved:
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
Since 12345-1.12345-1.com is not a fully qualified domain name, the server sends an email to the server administrator prompting to fix the issue.
To resolve the DNS error within WHM, please follow the steps below:
- Log into WHM as the root user. The URL to WHM is https://ip address:2087.
- Once logged in as the root user, navigate to Networking Setup and click Hostname.
- Enter in a fully-qualified domain name and click Change. This should automatically change the server information noted in the email. However, it is best to double-check. For the remainder of this article, let's assume the hostname is set to cpanel.yourdomain.com and the IP address of the server is 1.2.3.4.
- Log into the server via SSH as the root user. If you are not familiar with SSH, please see How do I log into a server via SSH?
- Within the SSH session, open /etc/hosts in your favorite text editor (ex: vi, nano, emacs). Make sure contained within this file is an entry for your hostname. The file contents should be similar to the following:
- If the files does not have the updated hostname as entered into WHM, edit the file to contain the new hostname. Once the files does, save the file and close out of it.
- 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.110nameserver 208.112.89.187 - If this file is incorrect, edit it accordingly. The final step is to setup DNS for the hostname. Continuing with the example set forth earlier, 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. If DNS is hosted with Hosting.com, this record can be added via the Customer Portal following the support article Edit a DNS Zone. Otherwise, you must contact the company hosting the DNS zone for yourdomain.com to add the record.
127.0.0.1 localhost.localdomain localhost 1.2.3.4 cpanel.yourdomain.com
