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!

Sticky NS Problem after Copy multiple accounts

Discussion in 'General Discussion' started by connorlong, Oct 9, 2006.

  1. connorlong

    connorlong Member

    Feb 23, 2005
    Likes Received:
    Trophy Points:

    I have successfully copied multiple accounts from Server A to Server B using WHM.

    The problem is that server B has different NS from server A. Each account copied has the NS of Server A. I can change this 1 by 1. Is there a way to do the whole lot in one go?

    Thank you
  2. designeru

    designeru Well-Known Member

    Nov 2, 2005
    Likes Received:
    Trophy Points:

    You can use the following code to chage the nameservers from all the accounts you have to the one you need. Please do backups before. This script was never tested.
    In /root/domains you have a list of the websites you wish to change + termination ".db" at the end of each domain (eg. NOT the name of the account, eg. domainc.db)

    To create those file for the reseller "reseller_name" you can use this script. For all resellers, just delete the reseller name.
    Please let me know if this helped anyone.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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