
Net::DNS::ValueDomain::DDNS - Update your Value-Domain (https://www.value-domain.com/) DynamicDNS records.

use Net::DNS::ValueDomain::DDNS;
# Normal usage
my $ddns = Net::DNS::ValueDomain::DDNS->new;
$ddns->update(
domain => 'example.com',
password => '1234',
host => 'www',
ip => '127.0.0.1',
);
# Update multiple hosts on same IP
my $ddns = Net::DNS::ValueDomain::DDNS->new(
domain => 'example.com',
password => '1234',
ip => '127.0.0.1',
);
for my $host (qw/www mail */) {
$ddns->update( host => $host ) or die $ddns->errstr;
}

This module help you to update your Value-Domain (https://www.value-domain.com/) DynamicDNS record(s).

Create a new Object. All %config keys and values (except 'host' and 'domain') is kept and reused by update() function.
set config veriables
return used protocol name. 'http' or 'https'
Update your DynamicDNS record. %config parameters are:
domain- Domain name being updated. (Required)
password- Value-Domain Dynamic DNS Password. (Required)
host- Sub-domain name being updated. For example if your hostname is "www.example.com" you should set "www" here. (Optional)
ip- The IP address to be updated. if empty, your current ip is used. (Optional)
If something error has be occurred, return undef. Use errstr() method to get error message.
return last error.

LWP::UserAgent object.

Daisuke Murase, <typester@cpan.org>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.