Fix FTP Problem after Cpanel Migration

Posted by cikul | Posted in cpanel, Linux | Posted on 18-03-2011-05-2008

0

I have transferred accounts from server A to server B, but after transfer process finished, i checked DNS Zone for the accounts in server B, i found that FTP still pointed to server A.

How to fix this? i move more than 200 accounts, and it’s not possible to change each.

To solve the problem, you can use this simple command :

cd /var/named
perl -pi.bak -e “s/[oldip]/[newip]/g” *.db

Note : [oldip] and [newip] written without “[]”, and before doing this process, you must backup all db files in your named directory.

Write a comment

*