{"id":405,"date":"2021-07-23T12:29:15","date_gmt":"2021-07-23T12:29:15","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/guide-to-dns-cluster-configurations\/"},"modified":"2021-07-23T12:29:15","modified_gmt":"2021-07-23T12:29:15","slug":"guide-to-dns-cluster-configurations","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/guide-to-dns-cluster-configurations\/","title":{"rendered":"Guide to DNS Cluster Configurations"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\"><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>A DNS cluster is a group of nameservers that share records with each other. This allows you to physically separate nameservers that handle the DNS requests from your cPanel &#038; WHM servers.<\/p>\n<ul>\n<li>\n<p>WHM\u2019s <em>DNS Cluster<\/em> feature (<em>WHM &gt;&gt; Home &gt;&gt; Clusters &gt;&gt; DNS Cluster<\/em>) <strong>only<\/strong> provides redundancy for DNS. It does <strong>not<\/strong> add Apache or any other services to a DNS cluster configuration.<\/p>\n<\/li>\n<li>\n<p>cPanel DNSOnly allows you to run a dedicated physical nameserver. It <strong>only<\/strong> replicates DNS zones to your other servers. For more information, read our cPanel DNSOnly documentation.<\/p>\n<\/li>\n<\/ul>\n<h3 id=\"dns-cluster-requirements\">DNS cluster requirements<\/h3>\n<p>To configure your DNS cluster, you must meet the following minimum requirements:<\/p>\n<ul>\n<li>Clusters <strong>must<\/strong> include at least two servers.<\/li>\n<li>You <strong>must<\/strong> have at least one cPanel &#038; WHM server with cPanel &#038; WHM installed. A DNS cluster that includes multiple cPanel DNSOnly\u2122 servers and cPanel &#038; WHM servers is also acceptable.<\/li>\n<li>All machines in the DNS cluster <strong>must<\/strong> have cPanel &#038; WHM or cPanel DNSOnly version 11 or higher installed. Some features may not work with older versions of cPanel &#038; WHM.<\/li>\n<\/ul>\n<h2 id=\"dns-cluster-structures\">DNS cluster structures<\/h2>\n<p>Before you set up your DNS cluster, consider which structure will be the most efficient. The way in which you link each server determines the speed at which your DNS requests resolve.<\/p>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>\n<p>We recommend that you do <strong>not<\/strong> set up the nameserver to synchronize data to a cPanel &#038; WHM server, because this creates extraneous zones on the cPanel &#038; WHM server. This means that you do <strong>not<\/strong> need to log in to WHM on the nameserver and set the cPanel &#038; WHM server\u2019s <em>Synchronize Changes<\/em> DNS role. For more information about DNS server roles, read our <em>DNS Cluster<\/em> documentation.<\/p>\n<\/li>\n<li>\n<p>If you set a server in a DNS cluster to the <em>Write-only<\/em> role, WHM will <strong>not<\/strong> check whether a DNS zone exists before you create an account. Because of this, it is possible to create the same domain name on two or more of these servers. If this occurs, the servers compete for updates to that domain.<\/p>\n<\/li>\n<li>\n<p><strong>Don\u2019t<\/strong> link dedicated nameservers to each other, or link dedicated cPanel &#038; WHM servers to each other.<\/p>\n<\/li>\n<\/ul><\/div>\n<\/div>\n<h3 id=\"use-direct-links\">Use direct links<\/h3>\n<p>Your servers function more slowly if multiple steps exist between a cPanel &#038; WHM server and a nameserver. To improve the performance of your servers, link your cPanel &#038; WHM server directly to the DNS servers. This eliminates the steps that each request must perform, and your DNS requests will resolve more quickly.<\/p>\n<p><img src=\"https:\/\/ssdsunucum.com\/blog\/wp-content\/uploads\/2021\/07\/guidetodnscluster1.png\" title=\"guidetodnscluster1\"><\/p>\n<p><em>A direct link between the web server and each of two nameservers is optimal.<\/em><\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>In this example, <code>webserver.example.com<\/code> sends DNS information directly to <code>ns1.example.com<\/code> and <code>ns2.example.com<\/code>.<\/p>\n<\/p><\/div>\n<\/div>\n<p>To create this configuration, you will need <strong>one<\/strong> cPanel &#038; WHM server and <strong>one or more<\/strong> nameservers.<\/p>\n<div class=\"accordion-wrapper\">\n<div class=\"accordion-item\">\n<p>        Create DNS cluster with direct links<\/p>\n<div class=\"collapse\" id=\"create-dns-cluster-with-direct-links1626990175921301260\">\n<div class=\"card card-body\">\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>When you add the new nameserver to the cluster, you will need to log in to the nameserver and obtain an API token from that server.<\/p>\n<\/p><\/div>\n<\/div>\n<p>To set up a DNS cluster with direct links, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Install cPanel &#038; WHM on the server that you will use to host your websites.<\/p>\n<\/li>\n<li>\n<p>Install cPanel DNSOnly on each of the servers that you will use as nameservers.<\/p>\n<\/li>\n<li>\n<p>Log in to the cPanel &#038; WHM server and navigate to WHM\u2019s <em>DNS Cluster<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Clusters &gt;&gt; DNS Cluster<\/em>).<\/p>\n<\/li>\n<li>\n<p>If you have not already enabled DNS clustering on this server, perform the following steps to enable it:<\/p>\n<ol>\n<li>Click <em>Enable DNS Clustering<\/em>.<\/li>\n<li>Click <em>Change<\/em>.<\/li>\n<li>Click <em>Return to Cluster Status<\/em> to return to the <em>DNS Cluster<\/em> interface.<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>Add each new nameserver to the cluster. To do this, perform the steps in our DNS Cluster documentation.<\/p>\n<\/li>\n<li>\n<p>Use WHM\u2019s <em>Synchronize DNS Records<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; DNS Functions &gt;&gt; Synchronize DNS Records<\/em>) to <strong>manually<\/strong> synchronize each new nameserver with the DNS cluster.<\/p>\n<\/li>\n<li>\n<p>To confirm that each nameserver exists in the cluster, perform the following steps:<\/p>\n<ol>\n<li>Log in to the main cPanel &#038; WHM server via SSH.<\/li>\n<li>Run the following command, where <code>example.com<\/code> represents the nameserver name and <code>ip<\/code> represents the nameserver\u2019s IP address:\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">dig +short example.com @ip<\/code><\/pre>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol><\/div>\n<p>\n    <\/div>\n<\/div>\n<\/div>\n<h3 id=\"use-the-primary-nameserver-as-an-intermediary\">Use the primary nameserver as an intermediary<\/h3>\n<p>If necessary, place the primary nameserver between the cPanel &#038; WHM server and the secondary nameserver. For each intermediate server that you add, data will transfer three times slower than for a direct link.<\/p>\n<p><img src=\"https:\/\/ssdsunucum.com\/blog\/wp-content\/uploads\/2021\/07\/guidetodnscluster2.png\" title=\"guidetodnscluster2\"><\/p>\n<p><em>An intermediate nameserver between the web server and secondary nameserver is acceptable.<\/em><\/p>\n<p>To create this configuration, you will need <strong>one<\/strong> cPanel &#038; WHM server and <strong>at least two<\/strong> nameservers.<\/p>\n<div class=\"accordion-wrapper\">\n<div class=\"accordion-item\">\n<p>        Create DNS cluster with primary nameserver as intermediary<\/p>\n<div class=\"collapse\" id=\"create-dns-cluster-with-primary-nameserver-as-intermediary1626990175922225486\">\n<div class=\"card card-body\">\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>When you add a new nameserver to the cluster, you will need to log in to that nameserver and obtain an API token from that server.<\/p>\n<\/p><\/div>\n<\/div>\n<p>To set up a DNS cluster with the primary nameserver as an intermediary, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Install cPanel &#038; WHM on the server that you will use to host your websites.<\/p>\n<\/li>\n<li>\n<p>Install cPanel DNSOnly on the servers that you will use as nameservers.<\/p>\n<\/li>\n<li>\n<p>Log in to the cPanel &#038; WHM server and navigate to WHM\u2019s <em>DNS Cluster<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Clusters &gt;&gt; DNS Cluster<\/em>).<\/p>\n<\/li>\n<li>\n<p>If you have not already enabled DNS clustering on this server, perform the following steps to enable it:<\/p>\n<ol>\n<li>Click <em>Enable DNS Clustering<\/em>.<\/li>\n<li>Click <em>Change<\/em>.<\/li>\n<li>Click <em>Return to Cluster Status<\/em> to return to the <em>DNS Cluster<\/em> interface.<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>Add the first nameserver to the cluster. To do this, perform the steps in our DNS Cluster documentation.<\/p>\n<\/li>\n<li>\n<p>Use WHM\u2019s <em>Synchronize DNS Records<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; DNS Functions &gt;&gt; Synchronize DNS Records<\/em>) to <strong>manually<\/strong> synchronize the new nameserver with the DNS cluster.<\/p>\n<\/li>\n<li>\n<p>Log in to the nameserver that you just added, and then navigate to WHM\u2019s <em>DNS Cluster<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Clusters &gt;&gt; DNS Cluster<\/em>).<\/p>\n<\/li>\n<li>\n<p>If you have not already enabled DNS clustering on this server on the nameserver, perform the following steps to enable it:<\/p>\n<ol>\n<li>Click <em>Enable DNS Clustering<\/em>.<\/li>\n<li>Click <em>Change<\/em>.<\/li>\n<li>Click <em>Return to Cluster Status<\/em> to return to the <em>DNS Cluster<\/em> interface.<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>Add the second nameserver to the cluster. To do this, perform the steps in our DNS Cluster documentation.<\/p>\n<\/li>\n<li>\n<p>Use WHM\u2019s <em>Synchronize DNS Records<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; DNS Functions &gt;&gt; Synchronize DNS Records<\/em>) to <strong>manually<\/strong> synchronize the second nameserver with the DNS cluster.<\/p>\n<\/li>\n<li>\n<p>To confirm that each nameserver exists in the cluster, perform the following steps:<\/p>\n<ol>\n<li>Log in to the main cPanel &#038; WHM server via SSH.<\/li>\n<li>Run the following command, where <code>example.com<\/code> represents the nameserver name and <code>ip<\/code> represents the nameserver\u2019s IP address:\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">dig +short example.com @ip<\/code><\/pre>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol><\/div>\n<p>\n    <\/div>\n<\/div>\n<\/div>\n<h3 id=\"use-multiple-intermediary-nameservers\">Use multiple intermediary nameservers<\/h3>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<p>We do <strong>not<\/strong> recommend this method. It can significantly reduce performance.<\/p>\n<\/p><\/div>\n<\/div>\n<p>This configuration uses multiple steps between the cPanel &#038; WHM server and nameservers. In the example below, for <code>web1.example.com<\/code> to communicate with <code>ns2.example.com<\/code>, the information <strong>must<\/strong> pass through two intermediary servers. This increases the processor load on the servers because the nameserver software updates the DNS information on each step. This configuration slows the servers\u2019 response time considerably.<\/p>\n<p><img src=\"https:\/\/ssdsunucum.com\/blog\/wp-content\/uploads\/2021\/07\/guidetodnscluster3.png\" title=\"guidetodnscluster3\"><\/p>\n<p><em>If you configure multiple steps between a web server and nameserver, the servers\u2019 performance slows.<\/em><\/p>\n<p>To create this configuration, you will need <strong>at least two<\/strong> cPanel &#038; WHM servers and <strong>at least two<\/strong> nameservers.<\/p>\n<div class=\"accordion-wrapper\">\n<div class=\"accordion-item\">\n<p>        Create DNS cluster with multiple intermediary nameservers<\/p>\n<div class=\"collapse\" id=\"create-dns-cluster-with-multiple-intermediary-nameservers1626990175923332688\">\n<div class=\"card card-body\">\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>When you add a server to the cluster, you will need to log in to that server to obtain your API token.<\/p>\n<\/p><\/div>\n<\/div>\n<p>To set up a DNS cluster with multiple intermediary nameservers, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Install cPanel &#038; WHM on the two servers that you will use to host your websites.<\/p>\n<\/li>\n<li>\n<p>Install cPanel DNSOnly on the two servers that you will use as nameservers.<\/p>\n<\/li>\n<li>\n<p>Log in to the first cPanel &#038; WHM server and navigate to WHM\u2019s <em>DNS Cluster<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Clusters &gt;&gt; DNS Cluster<\/em>).<\/p>\n<\/li>\n<li>\n<p>If you have not already enabled DNS clustering on this server, perform the following steps to enable it:<\/p>\n<ol>\n<li>Click <em>Enable DNS Clustering<\/em>.<\/li>\n<li>Click <em>Change<\/em>.<\/li>\n<li>Click <em>Return to Cluster Status<\/em> to return to the <em>DNS Cluster<\/em> interface.<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>Add the second cPanel &#038; WHM server to the cluster. To do this, perform the steps in our DNS Cluster documentation.<\/p>\n<\/li>\n<li>\n<p>Use WHM\u2019s <em>Synchronize DNS Records<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; DNS Functions &gt;&gt; Synchronize DNS Records<\/em>) to <strong>manually<\/strong> synchronize the second cPanel &#038; WHM server with the DNS cluster.<\/p>\n<\/li>\n<li>\n<p>Log in to the second cPanel &#038; WHM server, and then navigate to WHM\u2019s <em>DNS Cluster<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Clusters &gt;&gt; DNS Cluster<\/em>).<\/p>\n<\/li>\n<li>\n<p>If you have not already enabled DNS clustering on this server, perform the following steps to enable it:<\/p>\n<ol>\n<li>Click <em>Enable DNS Clustering<\/em>.<\/li>\n<li>Click <em>Change<\/em>.<\/li>\n<li>Click <em>Return to Cluster Status<\/em> to return to the <em>DNS Cluster<\/em> interface.<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>Add the first nameserver to the cluster. To do this, perform the steps in our DNS Cluster documentation.<\/p>\n<\/li>\n<li>\n<p>Use WHM\u2019s <em>Synchronize DNS Records<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; DNS Functions &gt;&gt; Synchronize DNS Records<\/em>) to <strong>manually<\/strong> synchronize the first nameserver with the DNS cluster.<\/p>\n<\/li>\n<li>\n<p>Log in to the first nameserver, and then navigate to WHM\u2019s <em>DNS Cluster<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Clusters &gt;&gt; DNS Cluster<\/em>).<\/p>\n<\/li>\n<li>\n<p>If you have not already enabled DNS clustering on this server, perform the following steps to enable it:<\/p>\n<ol>\n<li>Click <em>Enable DNS Clustering<\/em>.<\/li>\n<li>Click <em>Change<\/em>.<\/li>\n<li>Click <em>Return to Cluster Status<\/em> to return to the <em>DNS Cluster<\/em> interface.<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>Add the second nameserver to the cluster. To do this, perform the steps in our DNS Cluster documentation.<\/p>\n<\/li>\n<li>\n<p>Use WHM\u2019s <em>Synchronize DNS Records<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; DNS Functions &gt;&gt; Synchronize DNS Records<\/em>) to <strong>manually<\/strong> synchronize the second nameserver with the DNS cluster.<\/p>\n<\/li>\n<li>\n<p>To confirm that each server exists in the cluster, perform the following steps:<\/p>\n<ol>\n<li>Log in to the main cPanel &#038; WHM server via SSH.<\/li>\n<li>Run the following command, where <code>example.com<\/code> represents the nameserver name and <code>ip<\/code> represents the nameserver\u2019s IP address:\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">dig +short example.com @ip<\/code><\/pre>\n<\/div>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol><\/div>\n<p>\n    <\/div>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview A DNS cluster is a group of nameservers that share records with each other. This allows you to physically separate nameservers that handle the DNS requests from your cPanel &#038; WHM servers. WHM\u2019s DNS Cluster feature (WHM &gt;&gt; Home &gt;&gt; Clusters &gt;&gt; DNS Cluster) only provides redundancy for DNS. It does not add Apache &hellip;<\/p>\n","protected":false},"author":1,"featured_media":406,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/405"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=405"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/405\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/406"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}