The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Dynect::REST::ResourceRecord - An abstract DNS resource record object

SYNOPSIS

  use Net::Dynect::REST:ARecord;
  my $record = Net::Dynect::REST:ARecord->new(connection => $dynect);
  $record->get('example.com', 'www.example.com');
  $ttl = $record->ttl;

METHODS

Creating

Net::Dynect::REST:ARecord->new()

This constructor takes arguments of the connection object (Net::Dynect::REST), and optionally a zone and arecord FQDN to fetch.

This will return an array of objects that match the Name and Zone. Each A Record may have multiple entries in the zone.

Operations

$record->get( $zone, $fqdn [, $redord_id] )

This will attempt to load the data from Dynect for the given fully qualified domain name, in the given zone.

$arecord->save();

This will create a new ARecord resource. You need to already populate the zone, fqdn, and rdata attributes with the correct data. The rdata should be a Net::Dynect::REST::RData object, with the address field set to one IPv4 address, such as:

  Net::Dynect::REST::RData->new(data => {address => '1.2.3.4'});

Attributes

fqdn

This is the Fully Qaulified Domain Name of the A Record.

zone

the is the DNS zone the record lives in.

rdata

This is the address record data

record_type

This is the record type.

record_id

This is unique to each record.

ttl

This is the time to live for the reord. Use 0 to inherit the zone default.

last_response

This is the Net::Dynect::REST::Response object that was returned most recently returned. Fromt his you can see stuff like when the request was submitted, and how long it took to get a response.

AUTHOR

James Bromberger, james@rcpt.to

SEE ALSO

Net::Dynect::REST, Net::Dynect::REST::Request, Net::Dynect::REST::Response, Net::Dynect::REST::info.

COPYRIGHT AND LICENSE

Copyright (C) 2010 by James Bromberger

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 58:

=back doesn't take any parameters, but you said =back =item Net::Dynect::REST:ARecord-find(connection => $dynect, zone => $zone, fqdn => $fqdn);