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.

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:
    212
    Likes Received:
    0
    Trophy Points:
    16
    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?
     
  2. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Additional related question:

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

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    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)
     
Loading...
Similar Threads - Cleanup abandoned zones
  1. thapame
    Replies:
    7
    Views:
    1,013

Share This Page