Lim::Plugin::DNS::Server - Server class for DNS Manager Lim plugin
See Lim::Plugin::DNS for version.
use Lim::Plugin::DNS; # Create a Server object $server = Lim::Plugin::DNS->Server;
TODO
These are only internal methods and should not be used externally.
Scan for zone files based on configuration and returns a hash reference.
$hash_ref->{<software>}->{<full path file name>} = { name => <full path file name>, software => <the software related to the zone file>, short => <file name>, write => <true if writable>, read => <true if readable> };
Parse a zone file and returns the content into $option and/or $rr. $option and $rr can be a hash or array reference.
$option
$rr
# $option as an array reference $option = [ { name => <option name>, value => <option value> }, ... ]; # $option as a hash reference $option->{<option name>} = <option value>; # $rr as an array reference $rr = [ { name => <rr name>, ttl => <rr ttl>, class => <rr class>, type => <rr type>, rdata => <rr rdata> }, ... ]; # $rr as a hash reference $rr->{<rr name>} = [ { ttl => <rr ttl>, class => <rr class>, type => <rr type>, rdata => <rr rdata> }, ... ];
Parse a zone content from a string and returns the content into $option and/or $rr. $option and $rr can be a hash or array reference.
Write the content of $rr and $option out to a zone file. A temporary file is used and then renamed to the specified $file once the writing is complete.
$file
The $rr and $option needs to be in the format specified by _ParseZoneFile and _ParseZoneContent.
These methods are called from the Lim framework and should not be used else where.
Please see Lim::Plugin::DNS for full documentation of calls.
Get a list of all zones that can be managed by the plugin.
Create a new zone file.
Returns a zone file as a content or split into option and rr.
Update a zone file, this overwrites all zone data.
Delete a zone file.
Create a new zone option.
Return zone options specified or all zone options for a zone file.
Update a zone option, this does not overwrite other zone options.
Delete a zone options.
Create a new zone resource record.
Return zone resource records specified or all zone resource records for a zone file.
Update a zone resource record, this does not remove other zone resource records.
Delete a zone resource records.
Jerry Lundström, <lundstrom.jerry at gmail.com>
<lundstrom.jerry at gmail.com>
Please report any bugs or feature requests to https://github.com/jelu/lim-plugin-dns/issues.
You can find documentation for this module with the perldoc command.
perldoc Lim::Plugin::DNS
You can also look for information at:
Lim issue tracker (report bugs here)
https://github.com/jelu/lim-plugin-dns/issues
Copyright 2012-2013 Jerry Lundström.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Lim::Plugin::DNS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lim::Plugin::DNS
CPAN shell
perl -MCPAN -e shell install Lim::Plugin::DNS
For more information on module installation, please visit the detailed CPAN module installation guide.