Net::DNS::CloudFlare::DDNS - Object Orientated Dynamic DNS Interface to CloudFlare DNS
version v0.63.1
Provides an object orientated dynamic DNS interface for CloudFlare
use Net::DNS::CloudFlare::DDNS; my $ddns = Net::DNS::CloudFlare::DDNS->new( user => $CF_USER, apikey => $CF_KEY, zones => $ZONE_CONF ); $ddns->update(); ...
Whether or not the object should be verbose
# Verbosity on $ddns->verbose(1); # Verbosity off $ddns->verbose(0); # Print current verbosity say $ddns->verbose;
Create a new Dynamic DNS object
my $ddns = Net::DNS::CloudFlare::DDNS->new( # Required user => $CF_USER, apikey => $CF_KEY, zones => $ZONE_CONF, # Optional verbose => $VERB_LVL );
The zones specifies the zones and records which will be updated. Its structure is as follows
# Array of [ # Hashes of { # DNS Zone zone => $zone_name_1, # Domains to be updated in this zone domains => [ $domain_1, ..., $domain_n ] }, ... { zone => $zone_name_n, domains => [ $domain_1, ..., $domain_n ] } ]
Each domain is an A record within a zone or undef for the zone itself
Updates CloudFlare DNS with the current IP address if necessary
$ddns->update
Please report any bugs or feature requests to bug-net-dns-cloudflare-ddns at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-DNS-CloudFlare-DDNS
bug-net-dns-cloudflare-ddns at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::DNS::CloudFlare::DDNS
The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources.
MetaCPAN
A modern, open-source CPAN search engine, useful to view POD in HTML format.
http://metacpan.org/release/Net-DNS-CloudFlare-DDNS
You can email the author of this module at me+dev@peter-r.co.uk asking for help with any problems you have.
me+dev@peter-r.co.uk
The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)
https://github.com/pwr22/Net-DNS-CloudFlare-DDNS
git clone git://github.com/pwr22/Net-DNS-CloudFlare-DDNS.git
Please report any bugs or feature requests on the bugtracker website https://github.com/pwr22/Net-DNS-CloudFlare-DDNS/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Peter Roberts <me@peter-r.co.uk>
Peter Roberts <me+dev@peter-r.co.uk>
This software is Copyright (c) 2016 by Peter Roberts.
This is free software, licensed under:
The MIT (X11) License
To install Net::DNS::CloudFlare::DDNS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DNS::CloudFlare::DDNS
CPAN shell
perl -MCPAN -e shell install Net::DNS::CloudFlare::DDNS
For more information on module installation, please visit the detailed CPAN module installation guide.