NoZone - a Bind DNS zone file generator
use NoZone; use YAML qw(); my $cfg = YAML::LoadFile("/etc/nozone.yml"); my $nozone = NoZone->new(); $nozone->load_config($cfg); $nozone->generate_zones();
The NoZone module provides a system for generating Bind DNS zone files from data stored in a much simpler configuration file format.
NoZone
Creates a new NoZone object instance. The datadir parameter specifies where the zone data files should be created, while confdir specifies where the zone conf files should be created. Both have sensible defaults if omitted. The optional masters list provides a list of master servers. If present, only a slave zone config will be generated.
datadir
confdir
masters
Load details for the DNS zones from the configuration data in $cfg, which is a hash reference, typically resulting from loading a YAML file. See nozone.yml for a description of the required configuration file format.
$cfg
Generate all the bind DNS zone data files for loaded zones. If the $verbose flag is set to a true value, the progress will be printed
$verbose
nozone was written by Daniel P. Berrange <dan@berrange.com>
nozone
nozone is distributed under the terms of the GNU GPL version 3 or any later version. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
http://www.gnu.org/licenses/
NoZone::Zone, nozone(1)
nozone(1)
To install NoZone, copy and paste the appropriate command in to your terminal.
cpanm
cpanm NoZone
CPAN shell
perl -MCPAN -e shell install NoZone
For more information on module installation, please visit the detailed CPAN module installation guide.