Adam Hopkins > DigitalOcean-0.16.2 > DigitalOcean::Domain::Record

Download:
DigitalOcean-0.16.2.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.05   Source  

NAME ^

DigitalOcean::Domain::Record - Represents a Domain object in the DigitalOcean API

VERSION ^

version 0.16

SYNOPSIS ^

    FILL ME IN   

DESCRIPTION ^

FILL ME IN

METHODS ^

id

A unique identifier for each domain record.

type

The type of the DNS record (ex: A, CNAME, TXT, ...).

name

The name to use for the DNS record.

data

The value to use for the DNS record.

priority

The priority for SRV and MX records.

port

The port for SRV records.

weight

The weight for SRV records.

path

Returns the api path for this record.

update

This method edits an existing domain record.

    my $updated_record = $record->update(
        record_type => 'A',
        name => 'newname',
        data => '196.87.89.45',
    );

This method returns the updated DigitalOcean::Domain::Record.

delete

This deletes the record for the associated domain from your account. This will return 1 on success and undef on failure.

id

AUTHOR ^

Adam Hopkins <srchulo@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2016 by Adam Hopkins.

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

syntax highlighting: