The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

WWW::LogicBoxes::PrivateNameServer - Representation of Private Nameserver

SYNOPSIS

    use WWW::LogicBoxes;
    use WWW::LogicBoxes::Domain;
    use WWW::LogicBoxes::PrivateNameServer;

    my $domain = WWW::LogicBoxes::Domain->new( ... ); # Valid LogicBoxes domain

    my $private_name_server = WWW::LogicBoxes::PrivateNameServer->new(
        domain_id => $domain->id,
        name      => 'ns1.' . $domain->name,
        ips       => [ '4.2.2.1', '8.8.8.8' ],
    );

    my $logic_boxes = WWW::LogicBoxes->new( ... );

    my $updated_domain = $logic_boxes->create_private_nameserver( $private_name_server );

DESCRIPTION

Private Nameservers are those that are from the same domain as the registered domain. For example, a domain test-domain.com could have private nameservers ns1.test-domain.com and ns2.test-domain.com.

These nameservers must be "registered" with LogicBoxes and it is the responsiblity of WWW::LogicBoxes::PrivateNameServer to represent all of the data assoicated with these registrations.

ATTRIBUTES

domain_id

The domain id assoicated with the domain that this will be a private nameserver for (test-domain.com).

name

The full domain name that will represent the private nameserver (ns1.test-domain.com). It must be a child of the domain whose id is being used.

ips

An ArrayRef of IPv4 addresses that the above name should resolve to.