The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add a new DNS cluster using commandline

Discussion in 'cPanel Developers' started by Anoop P Alias, Apr 14, 2017.

Tags:
  1. Anoop P Alias

    Anoop P Alias Well-Known Member

    Joined:
    Mar 31, 2015
    Messages:
    65
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    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 ?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. Anoop P Alias

    Anoop P Alias Well-Known Member

    Joined:
    Mar 31, 2015
    Messages:
    65
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Kochi,Kerala,India
    cPanel Access Level:
    Root Administrator
    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 .
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page