Differences
This shows you the differences between two versions of the page.
— |
dns:mass-zone-change [2009-10-08 23:57:39] (current) ndcadmin created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== How to preform mass changes to DNS zones ====== | ||
+ | The following will do a regex match through /var/named and change anything in a .db file (your DNS zones) that matches the string " | ||
+ | |||
+ | - Duplicate the zones with changes, move the originals, and implement the changes:\\ <code console># | ||
+ | # mkdir newzones | ||
+ | # for i in `ls *.db`;do cat $i|sed s/ | ||
+ | # mv / | ||
+ | # cp *.db / | ||
+ | - Download and run the update user domain script from cplicenseing.net (this will use Perl to parse the DNS zones and update all the serials):\\ <code console># | ||
+ | ]# perl updateserial</ | ||
+ | * The Perl module dnszone parse is needed if you don't have it run:\\ <code console># | ||
+ | * **Note:** If the above link is ever broken check the download section of the knowledge base and/or contact support. | ||
+ | - Sync your new zones with the other zones in your dns cluster (you can skip this if you don't run DNS clustering): | ||
+ | |||
+ | {{tag> |