NAME
WWW::LogicBoxes::PrivateNameServer - Representation of Private Nameserver
SYNOPSIS
use
WWW::LogicBoxes;
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
=> [
'8.8.8.8'
,
'2001:4860:4860:0:0:0:0:8888'
],
# IPv4 and IPv6 are supported
);
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 IP addresses ( both IPv4 and IPv6 are supported ) that the above name should resolve to.