Added support for Cloudflare and multi domain support for namecheap

As featured at: https://support.cloudflare.com/hc/en-us/articles/200168816-Does-CloudFlare-work-with-Dynamic-DNS-Can-I-update-my-DNS-records-remotely-

Namecheap improvements: https://robertianhawdon.me.uk/2010/09/03/making-ddclient-work-with-multiple-domains-on-namecheap/
You are right, thank you!

On Sun, Oct 12, 2014 at 4:02 PM, Robert Hawdon <notifications@github.com>
wrote:

> In ddclient:
>
> > +sub nic_cloudflare_update {
> > +	debug("\nnic_cloudflare_update -------------------");
> > +
> > +	## group hosts with identical attributes together
> > +	my %groups = group_hosts_by([ @_ ], [ qw(ssh login password server wildcard mx backupmx zone) ]);
> > +
> > +	## update each set of hosts that had similar configurations
> > +	foreach my $sig (keys %groups) {
> > +		my @hosts = @{$groups{$sig}};
> > +		my $hosts = join(',', @hosts);
> > +		my $key   = $hosts[0];
> > +		my $ip    = $config{$key}{'wantip'};
> > +
> > +		# FQDNs
> > +		for my $domain (@hosts) {
> > +			my $hostname = $domain =~ s/\.$config{$key}{zone}$//r;
>
> I have a sneaking suspicion that you're running this on an Enterprise
> Linux 6.X box (CentOS or RHEL). These ship with Perl 5.10.
>
> I've been able to replicate the issue with on CentOS 6.5 with this
> version, and as stated in the documentation, ddclient now requires Perl
> 5.14 or above. Upon upgrading, ddclient works as expected.
>
> Cheers
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/wimpunk/ddclient/pull/7/files#r18749728>.
>



-- 

Saul Shanabrook
about.me/shanabrook
[image: Saul Shanabrook on about.me]
  <http://about.me/shanabrook>