Add a new DNS cluster using commandline

Anoop P Alias

Well-Known Member
Mar 31, 2015
103
15
18
Kochi,Kerala,India
cPanel Access Level
Root Administrator
If I know the accesshash of a remote server, is there a way to setup dns clustering with sync(or any other role) role from the commandline? I know creating the files in /var/cpanel/cluster/root/config with the ip ip-dnsrole will work .But is there a better way ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,211
363
I know creating the files in /var/cpanel/cluster/root/config with the ip ip-dnsrole will work .But is there a better way ?
Hello,

There's not an alternate method of setting up a DNS cluster via the command line. I encourage you to open a feature request if you'd like to see WHM API 1 functions added for this purpose:

Submit A Feature Request

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,211
363
New ok please let me know what config option is changed when cluster is turned on or off . I could not find anything in /var/cpanel/cpanel.config .
The existence of the following file determines whether clustering is enabled on the system:

Code:
/var/cpanel/useclusteringdns
Thus, if you wanted to enable clustering, you'd run the following command:

Code:
touch /var/cpanel/useclusteringdns
Thank you.