Net::DNS::Create::Bind - Bind backend for Net::DNS::Create
use Net::DNS::Create qw(Bind), default_ttl => "1h", conf_prefix => "local_", dest_dir => "./bind"; domain "example.com", { %records }; master "master.conf", "/etc/bind/";
You should never use Net::DNS::Create::Bind directly. Instead pass "Bind" to Net::DNS::Create in the "use" line.
The following options are specific to Net::DNS::Create::Bind:
conf_prefix
This controls how the file names for each zone file are created. If you have 2 domains, "example.com" and "example.net", and the conf_prefix is "local_" then the zone files will be named "local_example.com.zone" and "local_example.net.zone".
The default conf_prefix is ''.
''
dest_dir
This controls where the master and zone files are put. It defaults to ''.
master "filename", "prefix", @extra_lines;
filename
The file name for the master file. The file will be placed in the directory specified by the dest_dir option, described above.
prefix
Bind requires absolute path names. This parameter controls the include path for the zone files inside the master file. You will probably want '/etc/bind' or '/etc/named'.
@extra_lines
This lets you add extra configuration lines to the master.conf file, if you need to for some reason.
The Bind Home Page
Net::DNS::Create
The Net::DNS::Create Home Page
David Caldwell <david@porkrind.org>
Copyright (C) 2013 by David Caldwell
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.4 or, at your option, any later version of Perl 5 you may have available.
To install Net::DNS::Create, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DNS::Create
CPAN shell
perl -MCPAN -e shell install Net::DNS::Create
For more information on module installation, please visit the detailed CPAN module installation guide.