Transfer of an account, all addon domains with wrong IP

slice16

Active Member
Nov 24, 2004
42
0
156
I have just copied over various accounts from another server.

each have many addon domains, and upon runnign a dns check, they are giving the old ip address (not the nameservers, just hte IP) is there a script that i can run to sort these out, so they update to the new IP address?
 

@home

Well-Known Member
Nov 5, 2003
121
2
168
cPanel Access Level
Root Administrator
You can try this.

Login to your new server as root

cd /var/named
perl -pi.bak -e "s/oldip/newip/g" *.db
/etc/rc.d/init.d/named restart
 

slice16

Active Member
Nov 24, 2004
42
0
156
thanks,

so when i incremement the serial number, do i simply add one onto it?