Men&Mice Perl Script to Add Multiple Zones in DNS

This script we developed on Men&Mice 5.6. Use -h or type the command by itself and you will get a rudimentary help. As follows:

Usage:
./mm_addzone.pl: -h -d -m master-server -u user -p password -z zone_name -r "comment"
      where:
        -p password to M&M Central
        -m Master server default: somehost.localdomain.local
        -c central server default= 192.168.x.x
        -r comment - this is necessary default comment: initial addition of zone
    -s show the zone specified in -z and exit
    -t template file
    -f file containing list of zones, one per line
        -d debug mode
        -h this message

By default the zone will be created on all the servers

example template file. The one shown is the default template:

$TTL 1D
@ IN SOA ns1.example.com. hostmaster.capitalone.com. 1 3h 1h 7d 3d 
@ IN NS ns1.example.com.
@ IN NS ns2.example.com.
@ IN NS ns3.example.com.
@ IN A 127.0.0.1
www IN A 127.0.0.1

Here is the code:

mm_addzone.pl

Comments are closed.