dapurhosting.com Blog for Tech

May 14, 2009

Mass Change Nameservers in DNS Zone

Filed under: Server — dh @ 5:13 pm


cd /var/named
replace 'ns1.olddomain.com' 'ns1.newdomain.com' -- *.db
replace 'ns2.olddomain.com' 'ns2.newdomain.com' -- *.db

You have to replace ns1/ns2.olddomain.com and ns1/ns2.newdomain.com with the correct nameservers.

Restart named using the command


service named restart
named -u named
ls /scripts/ | grep named
/scripts/rebuilddnsconfig

Also remember to change your nameserver too


vi /etc/nameserverips

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress