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.

Adding/Removing Servers from DNS Cluster - DNS Cleanup?

Discussion in 'Bind / DNS / Nameserver Issues' started by sneader, Sep 23, 2013.

  1. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    I have a new cPanel server (Server A) and I would like to have an existing cPanel server (Server B) be a DNS Cluster partner with it. However, sometime next year another new cPanel server will come online (Server C), then I will want to remove Server B from the cluster and add Server C:

    NOW: Server A <--> Server B
    FUTURE: Server A <--> Server C

    The question is: When I remove Server B from the Cluster, what do I need to do, to get the old Server A zone files off of Server B... and the Server B zone files off of Server A? Is that what the DNS Cleanup feature in WHM does? It says it removes "duplicated entries" but that isn't really what I need.

    If this doesn't make sense, let me know! Otherwise, thanks in advance for a push in the right direction!

    - Scott
     
    #1 sneader, Sep 23, 2013
    Last edited: Sep 23, 2013
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,713
    Likes Received:
    658
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The "Perform a DNS Cleanup" option will only remove duplicate DNS entries. You will have to manually delete the DNS Zones on a server after removing it from the cluster. The following feature request may be of interest to you:

    Ownership and access control of zones in the dns server

    Thank you.
     
  3. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Hi Michael. Hmmm... OK... do you have any tips on the process to "manually delete the DNS Zones on a server after removing it from the cluster" ?

    - Scott
     
  4. fi77i

    fi77i Well-Known Member

    Joined:
    Aug 20, 2008
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Uruguay
    cPanel Access Level:
    Root Administrator
    You can login to your WHM and remove the zones from the delete DNS zone section.

    Main >> DNS Functions >> Delete DNS zone

    Multiple zone selection is enable in whm and you can remove them all form there.

    You can also remove them by hand via console by deleting the zone file in /var/named/<domain>.db but you need to remove the entries in /etc/named.conf for each zone also.

    WHM way should be the easiest.
     
    #4 fi77i, Sep 23, 2013
    Last edited: Sep 23, 2013
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,713
    Likes Received:
    658
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You could look at the files on the server that list your domain names. EX:

    /etc/localdomains
    /etc/remotedomains

    Use these files to populate a list of domain names. Then, develop a custom bash script to exclude those domain names from deletion or copy the zones to another location. This will allow you to delete the DNS zones all domain names not added to the server.

    Thank you.
     
Loading...

Share This Page