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.

Multiple Domain (DNS Zone) Reset

Discussion in 'Bind / DNS / Nameserver Issues' started by mahdy_sharifi, Apr 8, 2013.

  1. mahdy_sharifi

    mahdy_sharifi Well-Known Member

    Joined:
    Feb 26, 2012
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello :

    I want Reset much DNS zone on my Cpanel server , In WHM I can only select 1 Zone for Reset , If need reset over 100 zone need too much time ! Can you guide to reset multiple zone from command line or etc ?

    Thanks
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    #2 quietFinn, Apr 8, 2013
    Last edited: Apr 8, 2013
  3. mahdy_sharifi

    mahdy_sharifi Well-Known Member

    Joined:
    Feb 26, 2012
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Nobody know this question answer ? :confused:
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,470
    Likes Received:
    199
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Did you click thru the link posted just above?
     
  5. mahdy_sharifi

    mahdy_sharifi Well-Known Member

    Joined:
    Feb 26, 2012
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    This for All Zone , I have over 1000 zone on server and want reset only 100 of them.
    they start with pattern . example : abcd*.com

    Thanks
     
  6. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    As cPanelTristan says in his post:
    so you can do like this,
    1st, you make backups:
    Code:
    cp -R /var/named /var/named.bak130410
    cp -R /etc/named.conf /etc/named.conf.bak130410
    
    then make a list of the domains you want to reset:
    Code:
    cp /etc/trueuserdomains domains_to_reset
    
    then you edit that file:
    Code:
    nano domains_to_reset
    
    remove the domains you do NOT want to reset, then save.
    and then you do:
    Code:
    for i in `domains_to_reset | cut -d: -f1` ;do /scripts/killdns $i ;done
    for i in `domains_to_reset | cut -d: -f1` ;do /scripts/add_dns --domain=$i ;done
    
     
  7. mahdy_sharifi

    mahdy_sharifi Well-Known Member

    Joined:
    Feb 26, 2012
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    which command can use (in CLI) for reset DNS zone ? (If I want reset DNS zone from Cli)
     
  8. Jeff P.

    Jeff P. Member

    Joined:
    Feb 2, 2016
    Messages:
    24
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Palm Coast, Fl
    cPanel Access Level:
    DataCenter Provider
    Upon doing this, it throws this error and does nothing else.

    Sorry, the domain xxxxxx.com is owned by another user (xxxxx)
    No valid IP specified. Using xxx.xxx.xxx.xxx
    Cpanel still has not done crap about this. How about stop trying to make crap LOOK PRETTY and make crap WORK. Hundreds have asked for a bulk tool and in all these years you still do not have one. Get to work cpanel, vacation is over.
     
  9. Jeff P.

    Jeff P. Member

    Joined:
    Feb 2, 2016
    Messages:
    24
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Palm Coast, Fl
    cPanel Access Level:
    DataCenter Provider
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page