DNS-PunyDNS
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/DNS/PunyDNS.pm view on Meta::CPAN
sub new {
my ( $class, @args ) = @_;
my $self = {};
bless $self, $class || $class;
$self->{'username'} = $args[0]->{'username'} || die "No username provided";
$self->{'password'} = $args[0]->{'password'} || die "No password provided";
return $self;
}
sub update_dns {
my ( $self, $domain, $ip, $record_type, $old_record_type ) = @_;
die "You must provide a domain" if !$domain;
die "You must provide an IP address" if !$ip;
my %args = (
'domain' => $domain,
'ip' => $ip,
'record_type' => $record_type,
);
$args{'old_record_type'} = $old_record_type if $old_record_type;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.172 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )