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!

Multiple Domain (DNS Zone) Reset

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

  1. mahdy_sharifi

    mahdy_sharifi Well-Known Member

    Joined:
    Feb 26, 2012
    Messages:
    197
    Likes Received:
    0
    Trophy Points:
    66
    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:
    11
    Trophy Points:
    168
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 quietFinn, Apr 8, 2013
    Last edited: Apr 8, 2013
  3. mahdy_sharifi

    mahdy_sharifi Well-Known Member

    Joined:
    Feb 26, 2012
    Messages:
    197
    Likes Received:
    0
    Trophy Points:
    66
    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:
    16,160
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Did you click thru the link posted just above?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. mahdy_sharifi

    mahdy_sharifi Well-Known Member

    Joined:
    Feb 26, 2012
    Messages:
    197
    Likes Received:
    0
    Trophy Points:
    66
    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:
    11
    Trophy Points:
    168
    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
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. mahdy_sharifi

    mahdy_sharifi Well-Known Member

    Joined:
    Feb 26, 2012
    Messages:
    197
    Likes Received:
    0
    Trophy Points:
    66
    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. Active Member

    Joined:
    Feb 2, 2016
    Messages:
    33
    Likes Received:
    6
    Trophy Points:
    8
    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. Active Member

    Joined:
    Feb 2, 2016
    Messages:
    33
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Palm Coast, Fl
    cPanel Access Level:
    DataCenter Provider
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,629
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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