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.

Sticky NS Problem after Copy multiple accounts

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

  1. connorlong

    connorlong Member

    Joined:
    Feb 23, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    :eek:

    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

    Joined:
    Nov 2, 2005
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Hint!

    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.
    Note!
    In /root/domains you have a list of the websites you wish to change + termination ".db" at the end of each domain (eg. www.domain.com.db NOT the name of the account, eg. domainc.db)

    To create those domain.com.db 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.
     
Loading...

Share This Page