Net::Dynect::REST::ResourceRecord - An abstract DNS resource record object
use Net::Dynect::REST:ARecord; my $record = Net::Dynect::REST:ARecord->new(connection => $dynect); $record->get('example.com', 'www.example.com'); $ttl = $record->ttl;
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.
This will attempt to load the data from Dynect for the given fully qualified domain name, in the given zone.
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'});
This is the Fully Qaulified Domain Name of the A Record.
the is the DNS zone the record lives in.
This is the address record data
This is the record type.
This is unique to each record.
This is the time to live for the reord. Use 0 to inherit the zone default.
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.
James Bromberger, james@rcpt.to
Net::Dynect::REST, Net::Dynect::REST::Request, Net::Dynect::REST::Response, Net::Dynect::REST::info.
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:
=back doesn't take any parameters, but you said =back =item Net::Dynect::REST:ARecord-find(connection => $dynect, zone => $zone, fqdn => $fqdn);
To install Net::Dynect::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Dynect::REST
CPAN shell
perl -MCPAN -e shell install Net::Dynect::REST
For more information on module installation, please visit the detailed CPAN module installation guide.