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

NAME

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

VERSION

version 0.17

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.

  • type String, The record type (A, MX, CNAME, etc).

  • name String (A, AAAA, CNAME, TXT, SRV), The host name, alias, or service being defined by the record.

  • data String (A, AAAA, CNAME, MX, TXT, SRV, NS), Variable data depending on record type.

  • priority Number (MX, SRV), The priority of the host (for SRV and MX records. null otherwise).

  • port Number, The port that the service is accessible on (for SRV records only. null otherwise).

  • weight Number, The weight of records with the same priority (for SRV records only. null otherwise).

    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) 2019 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.