How can I create zones for 50 domains on Ubuntu 12 VPS? I have webmin (which allows me to use BIND to create/ manage zones). I was able to figure out what gets created to add a zone successfully.
But creating record for 50 domains is time consuming and I will make errors.
What is the best way to add the same quickly? Can someone share an example of shell script or something to achieve it? Or some third party tools which can help me achieve the same?
The format for each zones will be the same as below:
File 1: /etc/bind/named.conf.local
zone "dummy.org" {
type master;
file "/var/lib/bind/dummy.org.hosts";
};
----------------------
File 2: /var/lib/bind/<dummy.org.hosts>
$ttl 38400
dummy.org. IN SOA abc.com. dns.abc.com (
1366568118
10800
3600
604800
38400 )
dummy.org. IN NS ns1.abc.com.
dummy.org. 600 IN A <MyIP>
www.dummy.org. 600 IN A <My IP>