Change DNS zone IP for all domains – cPanel DNS Zone shows the old IP address for all domains

cPanel DNS Zone shows the old IP address for all domains

Do the following
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

4) make sure all the ip changed on the zones and remove the .bak files

 4,884 total views,  9 views today

Comments

So empty here ... leave a comment!

Leave a Reply

Your email address will not be published. Required fields are marked *

Sidebar