{"id":3058,"date":"2014-12-17T07:58:18","date_gmt":"2014-12-17T07:58:18","guid":{"rendered":"http:\/\/blog.shineservers.com\/?p=3058"},"modified":"2014-12-17T07:58:18","modified_gmt":"2014-12-17T07:58:18","slug":"set-clustered-nameservers-cpanel","status":"publish","type":"post","link":"https:\/\/www.shineservers.com\/2014\/12\/17\/set-clustered-nameservers-cpanel\/","title":{"rendered":"How To Set Up Clustered Nameservers With cPanel"},"content":{"rendered":"<p>As important as DNS is to web hosting, it is a good idea to make it redundant when possible. If you have two or more cPanel servers, you can use cPanel\u2019s DNS clustering to lower the risk of a DNS failure on a nameserver taking down all of your sites. Here\u2019s how to set that up:<br \/>\n<span id=\"more-4143\"><\/span><\/p>\n<h3>Step One: Enable Clustering For Each Server<\/h3>\n<p>First, click over to\u00a0<em>Configure Cluster<\/em>\u00a0in WHM on each server. In the\u00a0<em>Modify Cluster Status<\/em>\u00a0box, select\u00a0<em>Enable DNS clustering<\/em>. Click the\u00a0<em>Change<\/em>\u00a0button.<\/p>\n<h3>Step Two: Configure The Primary Nameserver<\/h3>\n<p>On the first server, scroll down to\u00a0<em>Add a new server to the cluster<\/em>. The type will be cpanel. Click\u00a0<em>Configure<\/em>. This will take you to the\u00a0<em>cPanel DNS Remote Configuration<\/em>\u00a0page.<br \/>\nIn\u00a0<em>Remote cPanel &amp; WHM DNS service<\/em>, put the hostname or IP address of the second nameserver. Next, in\u00a0<em>Remote server username<\/em>, put the username of the nameserver. While this can sometimes be reseller, in most cases it will be\u00a0<strong>root<\/strong>.<\/p>\n<p>In the next area,\u00a0<em>Remote server access hash<\/em>, you will need to put the ssh public key of the other server. To find that key, go to the\u00a0<em>Manage root\u2019s SSH Keys<\/em>\u00a0page in the second server\u2019s WHM. Click\u00a0<em>Generate a New Key<\/em>. On the next page, leave the password blank and click the\u00a0<em>Generate Key<\/em>\u00a0button. cPanel will issue a warning about the security of an SSH key without a password, but unfortunately it is needed for this sort of automation. (It is only a security risk if someone gains root access to your server, by which point your server\u2019s security will already have been compromised.)<\/p>\n<p>Still on the second server, click back to\u00a0<em>Manage root\u2019s SSH Keys<\/em>. Then click\u00a0<em>View\/Download Key<\/em>\u00a0under the\u00a0<strong>Public Keys:<\/strong>\u00a0heading. This will take you to the key which you will then copy back to the first server, in the\u00a0<em>Remote server access hash<\/em>\u00a0field.<\/p>\n<p>Uncheck the\u00a0<em>Setup Reverse Trust Relationship<\/em>\u00a0checkbox.<\/p>\n<p>Set the DNS role of the server to\u00a0<em>Write-only<\/em>. Click Submit.<\/p>\n<h3>Step Three: Repeat Step Two, Only Backwards<\/h3>\n<p>Step Three is going through the same process as Step Two, only reversing the servers. Also, role of the server should be set to\u00a0<em>Standalone<\/em>\u00a0instead of\u00a0<em>Write-Only<\/em>.<\/p>\n<h3>Adding DNS Zones<\/h3>\n<p>There is one quirk of this system: DNS zones for domains will have to be added on the Write-Only server. So when creating cPanel accounts on the Standalone server, make sure to add the DNS for the domain to the Write-Only server.<\/p>\n<p>===<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As important as DNS is to web hosting, it is a good idea to make it redundant when possible. If you have two or more cPanel servers, you can use cPanel\u2019s DNS clustering to lower the risk of a DNS failure on a nameserver taking down all of your sites. Here\u2019s how to set that [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[58],"tags":[208,209,210,211],"class_list":["post-3058","post","type-post","status-publish","format-standard","hentry","category-cpanel-control-panel","tag-cluster","tag-cpanel","tag-how-to-set-up-clustered-nameservers-with-cpanel","tag-nameservers"],"acf":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts\/3058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/comments?post=3058"}],"version-history":[{"count":0,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts\/3058\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/media?parent=3058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/categories?post=3058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/tags?post=3058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}