Hi
Just looking for some clarity here in reguards to updating WHM zones
I found these 2 suggestions here
cd /var
cp -R named named.backup
replace "OLDIP" "NEWIP" -- /var/named/*.db
replace "OLDDNS" "NEWDNS" -- /var/named/*.db
service named restart
And...
1) make backup copy of your zones folder cp -a /var/named /var/named.backup
2) Change into your zone folder cd /var/named ( or /var/named/chroot/named)
3) use the perl to replace the old ip with new ip
perl -pi.bak -e "s/oldip/newip/g" *.db
Now Id rather use the Perl script.. however I have been reading that there
are serial numbers to the files?
Can anybody help me clarify what needs to be done here?
Thanks
Ricky
Just looking for some clarity here in reguards to updating WHM zones
I found these 2 suggestions here
cd /var
cp -R named named.backup
replace "OLDIP" "NEWIP" -- /var/named/*.db
replace "OLDDNS" "NEWDNS" -- /var/named/*.db
service named restart
And...
1) make backup copy of your zones folder cp -a /var/named /var/named.backup
2) Change into your zone folder cd /var/named ( or /var/named/chroot/named)
3) use the perl to replace the old ip with new ip
perl -pi.bak -e "s/oldip/newip/g" *.db
Now Id rather use the Perl script.. however I have been reading that there
are serial numbers to the files?
Can anybody help me clarify what needs to be done here?
Thanks
Ricky
Last edited by a moderator: