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.

Deleting old DNS records

Discussion in 'Bind / DNS / Nameserver Issues' started by discountdomains, Jun 10, 2009.

  1. discountdomains

    Joined:
    Feb 25, 2005
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Does anyone know of a way to automatically remove dead DNS records from accounts that have been removed?

    We have hundreds of DNS records on an old server but the accounts are no longer active.

    Thanks
     
  2. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
    Once an account is removed, it should also remove the dns zone. If it is still there then something else is wrong.

    You can use the Delete DNS zone link in whm and select multiple zones to delete them all at once.
     
  3. discountdomains

    Joined:
    Feb 25, 2005
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    What happened was we migrated accounts across to new servers but the old DNS zones were left in tact in for propagation.

    Selecting the Delete DNS zone link would take forever due to the amount of accounts that still remain.

    Is there anyway we can use a script to look up accounts within the cluster and if they are not present on the server they are deleted from the DNS?

    Thanks for your reply
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    /scripts/cleandns might do the work for you
     
Loading...

Share This Page