This is a script used to create zone files for named.

        Usage: zone [--help] 

Both forward and reverse (in-addr.arpa) files will be created.
Supports creating subnetted (/24-/29) zones.

Example:
]# zone 
Enter domain name for this zone file --------------> test.com
Enter the first 3 octects of the address space ----> 10.2.3
Enter the CIDR block (24,27,etc - /24-/29 only) ---> /24
Enter primary nameserver for zone -----------------> ns1.test.com
Enter secondary nameserver for zone ---------------> ns2.test.com


Saved to db.test.com and reverse saved to db.test.com.rev

DB.TEST.COM: @ IN SOA ns1.test.com. hostmaster.test.com. ( 2007092612 ; serial number 10800 ; refresh (3 hours) 1800 ; retry (30 minutes) 864000 ; expire (1 week 3 days) 43200 ; cache (12 hours) ) @ IN NS ns1.test.com. @ IN NS ns2.test.com. $ORIGIN test.com. IN MX 1 mail.test.com. www IN CNAME host1.test.com. ftp IN CNAME host1.test.com. mail IN CNAME host1.test.com. host1 IN A 10.2.3.1 host2 IN A 10.2.3.2 host3 IN A 10.2.3.3 ... host254 IN A 10.2.3.254 DB.TEST.COM.REV: @ IN SOA ns1.test.com. hostmaster.test.com. ( 2007092612 ; serial number 10800 ; refresh (3 hours) 1800 ; retry (30 minutes) 864000 ; expire (1 week 3 days) 43200 ; cache (12 hours) ) @ IN NS ns1.test.com. @ IN NS ns2.test.com. $ORIGIN 3.2.10.in-addr.arpa. 1 IN PTR host1.test.com. 2 IN PTR host2.test.com. 3 IN PTR host3.test.com. ... 254 IN PTR host254.test.com.