Changing Name servers

Bullcat

Verified User
Joined
Feb 18, 2006
Messages
29
Location
Netherlands / Haarlem
Hello,

Is there a tool or script so i can change all the name servers voor al the accounts on a server ?

Or have i do it once at a time :(

Kind Regards
Hans
 
Code:
# cd /var/named
# perl -pi -e 's/OLD_NS1/NEW_NS1/' *.db
# perl -pi -e 's/OLD_NS2/NEW_NS2/' *.db
# service named restart
 
You'll also have to tell DA to update all the zone files to update the serial numbers.
Code:
# echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
Jeff
 
Back
Top