businezz

Well-Known Member
Jan 23, 2021
48
7
8
United States
cPanel Access Level
Root Administrator
Hi all,

I have the following configuration for dns only server:

ns1.domain.com - IP1
ns2.domain.com - IP2
-------------------------------
Both point to the cPanel server (seems like they work so far). I am not just sure if i should have DNS Role selected on the dns servers and the actual server or do i need to have Synchronize Changes on the DNS servers and Standalone on the cPanel server?

I have only one web server so far and i use these 2 name servers on it, but eventually i will have additional servers so i'm planning on using the same name servers.

My question was, which is the correct way to set the DNS roles? Should i have them all standalone or have Synchronize changes on the DNS servers?

Thanks
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
Hey there! We have the steps outlined in the following article:


but here's a copy of that:

  1. Log in to WHM as the root user on ns1.example.com (DNSOnly).
  2. Navigate to Home »Development »Manage API Tokens.
  3. Select the "Generate Token" button.
  4. Enter a name for your token: "webserver-01 dnsCluster".
  5. Put a check next to the "DNS Clustering" privilege to enable it.
  6. Select the Save button at the bottom of the page.
  7. Copy the API token that you are presented.
  8. Log in to WHM as the root user on Webserver-01.example.com.
  9. Navigate to Home »Clusters »DNS Cluster.
  10. Enable DNS Clustering if it is not already enabled.
  11. Select the Configure button to add a new cluster member.
  12. Enter the IP address or hostname of ns1.example.com.
  13. Enter root as the username.
  14. Paste the API token into the box.
  15. Ensure that "Setup Reverse Trust Relationship" is selected. **See "About Reverse Trust Relationships" below.
  16. Only select "Synchronize Zones Immediately" for newly formed clusters. If you are adding a server to a previously established cluster, ensure that this option is not selected.
  17. Select "Synchronize Changes" as the DNS Role.
  18. Select the Submit button.

Repeat the above process until each of your web servers has a Sync relationship with each of your nameservers.
 

businezz

Well-Known Member
Jan 23, 2021
48
7
8
United States
cPanel Access Level
Root Administrator
Hey there! We have the steps outlined in the following article:


but here's a copy of that:

  1. Log in to WHM as the root user on ns1.example.com (DNSOnly).
  2. Navigate to Home »Development »Manage API Tokens.
  3. Select the "Generate Token" button.
  4. Enter a name for your token: "webserver-01 dnsCluster".
  5. Put a check next to the "DNS Clustering" privilege to enable it.
  6. Select the Save button at the bottom of the page.
  7. Copy the API token that you are presented.
  8. Log in to WHM as the root user on Webserver-01.example.com.
  9. Navigate to Home »Clusters »DNS Cluster.
  10. Enable DNS Clustering if it is not already enabled.
  11. Select the Configure button to add a new cluster member.
  12. Enter the IP address or hostname of ns1.example.com.
  13. Enter root as the username.
  14. Paste the API token into the box.
  15. Ensure that "Setup Reverse Trust Relationship" is selected. **See "About Reverse Trust Relationships" below.
  16. Only select "Synchronize Zones Immediately" for newly formed clusters. If you are adding a server to a previously established cluster, ensure that this option is not selected.
  17. Select "Synchronize Changes" as the DNS Role.
  18. Select the Submit button.

Repeat the above process until each of your web servers has a Sync relationship with each of your nameservers.
Thanks for the info. I think that's what i did pretty much. I copied APi from dns only (both servers ns1 and ns2), and pasted them in the cPanel server with the DNS only IPs, and users with reverse trust and kept them on standalone.

Also, still i see the old IP on NS2 when i run dnschecker.org It's been 2 days already.
 

Attachments

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
I believe the second screenshot is showing the webserver configuration page, correct? If so, that needs to be set to either "synchronize" or "write only" in order for the records to get sent over to the cluster machines.

The first screenshot shows what it looks like from one of the nameservers, and that is correct.
 

businezz

Well-Known Member
Jan 23, 2021
48
7
8
United States
cPanel Access Level
Root Administrator
I believe the second screenshot is showing the webserver configuration page, correct? If so, that needs to be set to either "synchronize" or "write only" in order for the records to get sent over to the cluster machines.

The first screenshot shows what it looks like from one of the nameservers, and that is correct.
Hi, yes the second screenshot is from the web server.
 

businezz

Well-Known Member
Jan 23, 2021
48
7
8
United States
cPanel Access Level
Root Administrator
Good, so my advice was correct then. Can you try that and see if that gets the cluster working how you expect?
Hi,

So on the web server i have both set to Synchronize Changes and the DNS servers alone are on Standalone. I got the same diagram like on the documentation Guide to DNS Cluster Configurations | cPanel & WHM Documentation "Use direct links" section. - I hope this will be the right way to do it.

Now, if i add a second web server to the cluster i guess it is the same process.
 

businezz

Well-Known Member
Jan 23, 2021
48
7
8
United States
cPanel Access Level
Root Administrator
Correct - to add another web server or another DNS server, you would just repeat the process.
Hi, that's what i just. I added them to the new server, dns servers are standalone and the new web server it's set to sync. All DNS records from all domains are on both now.

I hope i can easily migrate accounts between without messing with DNS zones since both web servers are synced.

Thanks a lot!!
 

businezz

Well-Known Member
Jan 23, 2021
48
7
8
United States
cPanel Access Level
Root Administrator
You're very welcome - I'm glad I could help!
Hey, i have a question again.

I transferred one account from the old web server to the new web server, and it's not suspended on the old one which is fine, i did it manually. Once i did when i opened the domain in my browser it was suspended instead of loading from the new web server.

What i did was went to the cluster configuration on the new web server and clicked on "save" on both name servers under DNS Role. Seems like kinda that account reloaded from the new web server at that moment. Is that the right way to do it? Feels like it's a quick workaround unless there's some other option that i am missing...