{"id":3517,"date":"2010-02-27T18:37:20","date_gmt":"2010-02-27T23:37:20","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=3517"},"modified":"2025-03-12T05:15:21","modified_gmt":"2025-03-12T09:15:21","slug":"whm-unable-create-remove-accounts","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/whm-unable-create-remove-accounts\/","title":{"rendered":"Why Your Server Might Be Failing DNS Lookups &#038; How to Fix It"},"content":{"rendered":"<h2>Common Causes of DNS Resolution Failures on Your Server<\/h2>\n<p>When your server fails to resolve domain names, services relying on the internet may stop working. This is often due to incorrect nameserver settings or missing dependencies. Here\u2019s how to diagnose and fix the issue.<\/p>\n<h3>1. Check If Your Server Is Missing Valid Nameservers<\/h3>\n<p>A missing or misconfigured <code>\/etc\/resolv.conf<\/code> file can prevent DNS lookups. To verify, run the following command:<\/p>\n<pre><code>dig . NS<\/code><\/pre>\n<p>If this command times out, your server lacks valid nameservers. To fix it, edit <code>\/etc\/resolv.conf<\/code> and add proper nameservers. For example:<\/p>\n<pre><code>\r\nnano \/etc\/resolv.conf\r\n<\/code><\/pre>\n<p>Add the following lines:<\/p>\n<pre><code>\r\nnameserver 8.8.8.8\r\nnameserver 8.8.4.4\r\n<\/code><\/pre>\n<p>Save the file and restart the networking service:<\/p>\n<pre><code>systemctl restart networking<\/code><\/pre>\n<h3>2. Ensure Your Server Has the Necessary Perl Modules<\/h3>\n<p>If your cPanel server is missing required Perl modules, scripts may fail. Run these commands to install missing modules:<\/p>\n<pre><code>\r\n\/scripts\/perlinstaller File::Copy::Recursive\r\n\/usr\/local\/cpanel\/bin\/checkperlmodules --bootstrap\r\n\/usr\/local\/cpanel\/bin\/checkperlmodules --full\r\n<\/code><\/pre>\n<h3>3. Fix Version Conflicts Between cPanel 10.x and 11.x<\/h3>\n<p>If you&#8217;re running a mix of cPanel versions, stability issues may occur. To keep using cPanel 10.x, lock it in the stable release channel:<\/p>\n<pre><code>\r\necho \"CPANEL=stable\" >> \/etc\/cpupdate.conf\r\n\/scripts\/upcp --force\r\n<\/code><\/pre>\n<h3>Need Expert Assistance? @CustomerPanel Can Help<\/h3>\n<p>If you&#8217;re still experiencing DNS resolution failures, reach out to <a href=\"https:\/\/customerpanel.ca\/client\">UnderHost Support<\/a> for professional troubleshooting. Our hosting solutions, including <a href=\"https:\/\/underhost.com\/dedicated-servers-offshore.php\">dedicated servers<\/a> and <a href=\"https:\/\/underhost.com\/cloud-vps.php\">cloud VPS<\/a>, come with expert-managed services to ensure reliability.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DNS resolution failures can cause serious connectivity issues on your server. If your system can\u2019t resolve domain names, it could be due to a misconfigured \/etc\/resolv.conf or missing Perl modules. This guide walks you through troubleshooting steps to restore DNS functionality efficiently.<\/p>\n","protected":false},"author":1,"featured_media":4853,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3517","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=3517"}],"version-history":[{"count":2,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3517\/revisions"}],"predecessor-version":[{"id":5141,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3517\/revisions\/5141"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media\/4853"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=3517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=3517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=3517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}