jdulberg
11-16-2001, 12:59 AM
I just got a new machine at Rackspace and need to move 165 virtual hosts to it. I was wondering if anyone knows of a batch utility to add zone files instead of adding them one by one in Webmin?
Thanks.
Thanks.
![]() | View Full Version : batch zone file add/edit jdulberg 11-16-2001, 12:59 AM I just got a new machine at Rackspace and need to move 165 virtual hosts to it. I was wondering if anyone knows of a batch utility to add zone files instead of adding them one by one in Webmin? Thanks. allera 11-16-2001, 02:44 AM If you use djbdns, copy one file: data. If you use bind, copy the named.conf file and all the little zone files. Modify the named.conf appropriately, and run 'ndc restart'. Should be fairly easy, unless your zonefiles are spread all over the place. I love djbdns. :) jdulberg 11-16-2001, 03:06 AM Unfortunately since I was on a virtual server before this machine, I don't have any of the zone files. Can they be dynamically created with a batch processor? jks 11-16-2001, 07:35 PM Originally posted by jdulberg Unfortunately since I was on a virtual server before this machine, I don't have any of the zone files. Can they be dynamically created with a batch processor? Yes, surely they can. Just setop one zone manually, and have a look at it. You will then just need to make a small script that replaces the domain name in the zonefile with one from your long list of domains, and saves them to new zonefiles. Zonefiles are really just text files. jdulberg 11-16-2001, 07:52 PM How would I add the serial numbers etc? jks 11-16-2001, 08:00 PM Originally posted by jdulberg How would I add the serial numbers etc? Just add the same serial number on all the zones. For example use a combination of the current date and a number. Remember to reload both the primary and secondary nameserver. |