{"id":757,"date":"2012-09-10T00:01:00","date_gmt":"2012-09-10T06:01:00","guid":{"rendered":"http:\/\/blog.supportpro.com\/?p=757"},"modified":"2018-10-04T04:09:13","modified_gmt":"2018-10-04T10:09:13","slug":"how-to-fix-rndc-error-in-whmcpanel-rndc-connection-failed-connection-refused","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/how-to-fix-rndc-error-in-whmcpanel-rndc-connection-failed-connection-refused\/","title":{"rendered":"How to fix rndc error in WHM\/cPanel  (rndc: connection failed \/ refused)"},"content":{"rendered":"<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">&#8216;rncd : connection failed : connection refused&#8217; is a common error occurred in cpanel. Inorder to get the name servers work properly we need to eliminate this error. Elimination of this error is a simple process which takes only a few minutes via cPanel \/scripts..<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">The steps to solve the issue is as follows :<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">1. Login to your server as root via SSH<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">2. Run: \/scripts\/updatenow<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">3. Run: \/scripts\/fixrndc<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">The above steps should fix most of the cases, but if it does not, do follow the following steps :<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">1. Login to your server as root via SSH<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">2. Run: vi \/etc\/rndc.conf (or vi \/etc\/namedb\/rndc.conf on FreeBSD)<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">replace all instances of &#8220;rndc-key&#8221; with &#8220;rndckey&#8221;<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">3. Run: vi \/etc\/named.conf (or vi \/etc\/namedb\/named.conf on FreeBSD)<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">replace all instances of &#8220;rndc-key&#8221; with &#8220;rndckey&#8221;<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">4. Run: \/scripts\/fixnamed<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">5. Run: \/scripts\/fixndc<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">6. If you received an error in the last step, run \/scripts\/fixndc another<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">time.<\/div>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">7. Restart named (on RH this is service named restart)<\/div>\n<p>&#8216;rndc : connection failed : connection refused&#8217; is a common error occurred in cpanel. Inorder to get the name servers work properly we need to eliminate this error. Elimination of this error is a simple process which takes only a few minutes via cPanel \/scripts..<\/p>\n<p>The steps to solve the issue is as follows :<\/p>\n<blockquote><p>1. Login to your server as root via SSH<\/p>\n<p>2. Run: \/scripts\/updatenow<\/p>\n<p>3. Run: \/scripts\/fixrndc<\/p><\/blockquote>\n<p>The above steps should fix most of the cases, but if it does not, do follow the following steps :<\/p>\n<blockquote><p>1. Login to your server as root via SSH<\/p>\n<p>2. Run: vi \/etc\/rndc.conf (or vi \/etc\/namedb\/rndc.conf on FreeBSD)<\/p>\n<p>replace all instances of &#8220;rndc-key&#8221; with &#8220;rndckey&#8221;<\/p>\n<p>3. Run: vi \/etc\/named.conf (or vi \/etc\/namedb\/named.conf on FreeBSD)<\/p>\n<p>replace all instances of &#8220;rndc-key&#8221; with &#8220;rndckey&#8221;<\/p>\n<p>4. Run: \/scripts\/fixnamed<\/p>\n<p>5. Run: \/scripts\/fixrndc<\/p>\n<p>6. If you received an error in the last step, run \/scripts\/fixndc another<\/p>\n<p>time.<\/p>\n<p>7. Restart named (on RH this is service named restart)<\/p><\/blockquote>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8216;rncd : connection failed : connection refused&#8217; is a common error occurred in cpanel. Inorder to get the name servers work properly we need to eliminate this error. Elimination of&hellip;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1,7],"tags":[],"class_list":["post-757","post","type-post","status-publish","format-standard","hentry","category-miscellaneous","category-server-tweaking"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=757"}],"version-history":[{"count":5,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/757\/revisions"}],"predecessor-version":[{"id":3231,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/757\/revisions\/3231"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}