Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cleanup of abandoned zones in DNS cluster

Discussion in 'Workarounds and Optimization' started by ttremain, Jan 13, 2013.

  1. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    I'm doing some DNS work. I have discovered there are a lot of DNS zones in my cluster that have not been serviced for years.

    There are multiple servers with domains in use. All sorts of uses.. Hosted domains, add-on domains, zones belonging to resellers.

    What I would like to do, is make a list of all the zones that SHOULD be in the cluster. I will have to collect this list from each server so it is complete, then I should be able to remove any zones not in the list.

    Can anyone offer me a starting direction for collecting the domains?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    Additional related question:

    is `/scripts/killdns <domainname.com>` the correct way to delete a zone from all servers in the cluster in SSH?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    I do see that MOST of the domains are listed in the files within:
    /var/cpanel/users
    as:
    DNS=domain name
    DNS2=another domain.name

    But where do the resellers "additional" domain zones get listed? (I.E. created in WHM with no hosting attached)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice