WWW::LogicBoxes::PrivateNameServer - Representation of Private Nameserver
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 => [ '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 );
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.
The domain id assoicated with the domain that this will be a private nameserver for (test-domain.com).
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.
An ArrayRef of IP addresses ( both IPv4 and IPv6 are supported ) that the above name should resolve to.
To install WWW::LogicBoxes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::LogicBoxes
CPAN shell
perl -MCPAN -e shell install WWW::LogicBoxes
For more information on module installation, please visit the detailed CPAN module installation guide.