| 1 | package WWW::eNom::PrivateNameServer; | ||
| 2 | |||
| 3 | 46 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 46 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 46 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 46 | ▶ | use MooseX::StrictConstructor; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 46 | ▶ | use MooseX::Params::Validate; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 46 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 46 | ▶ | use WWW::eNom::Types qw( DomainName IP ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 46 | ▶ | use Try::Tiny; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 46 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 46 | our $VERSION = 'v2.0.0'; # VERSION | |
| 17 | # ABSTRACT: Representation of Private Nameserver | ||
| 18 | |||
| 19 | 46 | has 'name' => ( | |
| 20 | is => 'ro', | ||
| 21 | isa => DomainName, | ||
| 22 | required => 1, | ||
| 23 | ); | ||
| 24 | |||
| 25 | 46 | has 'ip' => ( | |
| 26 | is => 'ro', | ||
| 27 | isa => IP, | ||
| 28 | required => 1, | ||
| 29 | ); | ||
| 30 | |||
| 31 | 46 | __PACKAGE__->meta->make_immutable; | |
| 32 | 46 | 1; | |
| 33 | |||
| 34 | __END__ | ||
| 35 | |||
| 36 | =head1 NAME | ||
| 37 | |||
| 38 | WWW::eNom::PrivateNameServer - Representation of Private Nameserver | ||
| 39 | |||
| 40 | =head1 SYNOPSIS | ||
| 41 | |||
| 42 | my $domain = WWW::eNom::Domain->new( ... ); | ||
| 43 | |||
| 44 | my $private_name_server = WWW::eNom::PrivateNameServer->new( | ||
| 45 | name => 'ns1.' . $domain->name, | ||
| 46 | ip => '4.2.2.1', | ||
| 47 | ); | ||
| 48 | |||
| 49 | =head1 DESCRIPTION | ||
| 50 | |||
| 51 | Represents L<eNom|https://www.enom.com> private nameservers, containing the name and ip address. | ||
| 52 | |||
| 53 | =head1 ATTRIBUTES | ||
| 54 | |||
| 55 | =head2 B<name> | ||
| 56 | |||
| 57 | The FQDN of the nameserver (will be ns1.your-domain.com). Keep in mind the 'your-domain.com' part must match the registered domain this is going to be a private nameserver for. | ||
| 58 | |||
| 59 | =head2 B<ip> | ||
| 60 | |||
| 61 | The IP address that the above name should resolve to. | ||
| 62 | |||
| 63 | =cut | ||