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.

change ns2 on all accounts

Discussion in 'General Discussion' started by bidouilleur, Oct 3, 2003.

  1. bidouilleur

    bidouilleur Well-Known Member

    Joined:
    Apr 27, 2003
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    have tried search but didn't find the answer

    we got a second ns and we should change all the dns zones in whm. We have a few hundred accounts to update and should include the new ns2.

    I didn't find a function in whm to do it in one go, I could start editing dns zone by dns zone but it will take ages to finish the job

    Is there a trick to do this on all accounts with one script, function ?

    Thanks for sharing the nowledge

    cPanel.net Support Ticket Number:
     
  2. cat3y3

    cat3y3 Member

    Joined:
    Oct 1, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    ns2

    i would search and replace the ns2 in the httpd.conf

    like ns2.olddomain.com to ns2.newdoamin.com

    maybe there are better ways to accomplish this, but i think this is simple and effectief.

    (if you dont know how to do it on linux, download the conf file to your windows machine, open it in your favorit text editor and search and replace all.) :)

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
  3. bidouilleur

    bidouilleur Well-Known Member

    Joined:
    Apr 27, 2003
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    This trick is possible yes, dl and then the search and replace function

    But I'm afraid it won't be enough, since I'm no expert in Redhat and DNS, I'm afraid it might end in conflict since the ns info is stored in different areas and I'm not sure it will link back to whm and if it does, it wouldn't conflict.

    I saw already so many weird things in cpanel, I'm becoming prudent ;)

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page