| 1 | package Net::Whois::Object::Domain::AFRINIC; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use base qw/Net::Whois::Object/; | ||
| 6 | |||
| 7 | # whois -t domain -h whois.afrinic.net | ||
| 8 | # % This is the AfriNIC Whois server. | ||
| 9 | # | ||
| 10 | # domain: [mandatory] [single] [primary/look-up key] | ||
| 11 | # descr: [mandatory] [multiple] [ ] | ||
| 12 | # org: [optional] [multiple] [inverse key] | ||
| 13 | # admin-c: [mandatory] [multiple] [inverse key] | ||
| 14 | # tech-c: [mandatory] [multiple] [inverse key] | ||
| 15 | # zone-c: [mandatory] [multiple] [inverse key] | ||
| 16 | # nserver: [optional] [multiple] [inverse key] | ||
| 17 | # ds-rdata: [optional] [multiple] [inverse key] | ||
| 18 | # sub-dom: [optional] [multiple] [inverse key] | ||
| 19 | # dom-net: [optional] [multiple] [ ] | ||
| 20 | # remarks: [optional] [multiple] [ ] | ||
| 21 | # notify: [optional] [multiple] [inverse key] | ||
| 22 | # mnt-by: [optional] [multiple] [inverse key] | ||
| 23 | # mnt-lower: [optional] [multiple] [inverse key] | ||
| 24 | # refer: [optional] [single] [ ] | ||
| 25 | # changed: [mandatory] [multiple] [ ] | ||
| 26 | # source: [mandatory] [single] [ ] | ||
| 27 | |||
| 28 | __PACKAGE__->attributes( 'primary', ['domain'] ); | ||
| 29 | __PACKAGE__->attributes( 'mandatory', [ 'domain', 'descr', 'admin_c', 'tech_c', 'zone_c', 'changed', 'source' ] ); | ||
| 30 | __PACKAGE__->attributes( 'optional', [ 'org', 'nserver', 'ds_rdata', 'sub_dom', 'dom_net', 'remarks', 'notify', 'mnt_by', 'mnt_lower', 'refer' ] ); | ||
| 31 | __PACKAGE__->attributes( 'single', [ 'domain', 'refer', 'source' ] ); | ||
| 32 | __PACKAGE__->attributes( 'multiple', [ 'descr', 'org', 'admin_c', 'tech_c', 'zone_c', 'nserver', 'ds_rdata', 'sub_dom', 'dom_net', 'remarks', 'notify', 'mnt_by', 'mnt_lower', 'changed' ] ); | ||
| 33 | |||
| 34 | |||
| 35 | =head1 NAME | ||
| 36 | |||
| 37 | Net::Whois::Object::Domain::AFRINIC - an object representation of a RPSL Domain block | ||
| 38 | |||
| 39 | =head1 DESCRIPTION | ||
| 40 | |||
| 41 | The domain object represents Top Level Domain (TLD) and other domain | ||
| 42 | registrations. It is also used for Reverse Delegations. The domain | ||
| 43 | name is written in fully qualified format, without a trailing " . " | ||
| 44 | |||
| 45 | =head1 METHODS | ||
| 46 | |||
| 47 | =head2 new ( @options ) | ||
| 48 | |||
| 49 | Constructor for the Net::Whois::Object::Domain::AFRINIC class | ||
| 50 | |||
| 51 | =cut | ||
| 52 | |||
| 53 | sub new { | ||
| 54 | my ( $class, @options ) = @_; | ||
| 55 | |||
| 56 | my $self = bless {}, $class; | ||
| 57 | $self->_init(@options); | ||
| 58 | |||
| 59 | return $self; | ||
| 60 | } | ||
| 61 | |||
| 62 | =head2 B<domain( [$domain] )> | ||
| 63 | |||
| 64 | Accessor to the domain attribute. | ||
| 65 | Accepts an optional domain, always return the current domain. | ||
| 66 | |||
| 67 | The domain name in fully qualified format, without a trailing dot. If a | ||
| 68 | trailing dot is included it will be removed. | ||
| 69 | |||
| 70 | =cut | ||
| 71 | |||
| 72 | sub domain { | ||
| 73 | my ( $self, $domain ) = @_; | ||
| 74 | |||
| 75 | # Enforce the format | ||
| 76 | $domain =~ s/\.$// if $domain; | ||
| 77 | |||
| 78 | return $self->_single_attribute_setget( 'domain', $domain ); | ||
| 79 | } | ||
| 80 | |||
| 81 | =head2 B<descr( [$descr] )> | ||
| 82 | |||
| 83 | Accessor to the descr attribute. | ||
| 84 | Accepts an optional descr line to be added to the descr array, | ||
| 85 | always return the current descr array. | ||
| 86 | |||
| 87 | The name of the organization responsible for the reverse delegation. Or can | ||
| 88 | describe the use of the IP range described in the domain object. | ||
| 89 | |||
| 90 | =head2 B<org( [$org] )> | ||
| 91 | |||
| 92 | Accessor to the org attribute. | ||
| 93 | Accepts an optional org value to be added to the org array, | ||
| 94 | always return the current org array. | ||
| 95 | |||
| 96 | The organisation responsible for this domain. | ||
| 97 | |||
| 98 | =head2 B<admin_c( [$contact] )> | ||
| 99 | |||
| 100 | Accessor to the admin_c attribute. | ||
| 101 | Accepts an optional contact to be added to the admin_c array, | ||
| 102 | always return the current admin_c array. | ||
| 103 | |||
| 104 | The NIC-handle of an on-site contact 'person' object. As more than one person | ||
| 105 | often fulfills a role function, there may be more than one admin_c listed. | ||
| 106 | |||
| 107 | An administrative contact (admin_c) must be someone who is physically | ||
| 108 | located at the site of the network. | ||
| 109 | |||
| 110 | =head2 B<tech_c( [$contact] )> | ||
| 111 | |||
| 112 | Accessor to the tech_c attribute. | ||
| 113 | Accepts an optional contact to be added to the tech_c array, | ||
| 114 | always return the current tech_c array. | ||
| 115 | |||
| 116 | The NIC-handle of a technical contact 'person' or 'role' object. As more than | ||
| 117 | one person often fulfills a role function, there may be more than one tech_c | ||
| 118 | listed. | ||
| 119 | |||
| 120 | A technical contact (tech_c) must be a person responsible for the | ||
| 121 | day-to-day operation of the network, but does not need to be | ||
| 122 | physically located at the site of the network. | ||
| 123 | |||
| 124 | =head2 B<zone_c( [$contact] )> | ||
| 125 | |||
| 126 | Accessor to the zone_c attribute. | ||
| 127 | Accepts an optional contact to be added to the zone_c array, | ||
| 128 | always return the current zone_c array. | ||
| 129 | |||
| 130 | The NIC-handle of a 'person' or 'role' object with authority over a zone. | ||
| 131 | |||
| 132 | =head2 B<nserver( [$server] )> | ||
| 133 | |||
| 134 | Accessor to the nserver attribute. | ||
| 135 | Accepts an optional server to be added to the nserver array, | ||
| 136 | always return the current nserver array. | ||
| 137 | |||
| 138 | A list of nameservers for a domain object. A minimum of one nameserver is | ||
| 139 | mandatory. | ||
| 140 | |||
| 141 | =head2 B<ds_rdata( [$server] )> | ||
| 142 | |||
| 143 | Accessor to the ds_rdata attribute. | ||
| 144 | Accepts an optional server to be added to the ds_rdata array, | ||
| 145 | always return the current ds_rdata array. | ||
| 146 | |||
| 147 | The ds_rdata attribute holds information about a signed delegation record | ||
| 148 | for DNSSEC (short for DNS Security Extensions) | ||
| 149 | |||
| 150 | =head2 B<sub_dom( [$dom] )> | ||
| 151 | |||
| 152 | Accessor to the sub_dom attribute. | ||
| 153 | Accepts an optional dom to be added to the sub_dom array, | ||
| 154 | always return the current sub_dom array. | ||
| 155 | |||
| 156 | The sub_dom attribute specifies a list of sub-domains of a domain. Domain | ||
| 157 | names are relative to the domain represented by the domain object that | ||
| 158 | contains this attribute | ||
| 159 | |||
| 160 | =head2 B<dom_net( [$dom_net] )> | ||
| 161 | |||
| 162 | Accessor to the dom_net attribute. | ||
| 163 | Accepts an optional dom_net value to be added to the dom_net array, | ||
| 164 | always return the current dom_net array. | ||
| 165 | |||
| 166 | The dom_net attribute contains a list of IP networks in a domain. | ||
| 167 | |||
| 168 | =head2 B<remarks( [$remark] )> | ||
| 169 | |||
| 170 | Accessor to the remarks attribute. | ||
| 171 | Accepts an optional remark to be added to the remarks array, | ||
| 172 | always return the current remarks array. | ||
| 173 | |||
| 174 | General remarks. May include a URL or email address. | ||
| 175 | |||
| 176 | =head2 B<notify( [$notify] )> | ||
| 177 | |||
| 178 | Accessor to the notify attribute. | ||
| 179 | Accepts an optional notify value to be added to the notify array, | ||
| 180 | always return the current notify array. | ||
| 181 | |||
| 182 | The email address to which notifications of changes to this object should be | ||
| 183 | sent. | ||
| 184 | |||
| 185 | =head2 B<mnt_by( [$mnt_by] )> | ||
| 186 | |||
| 187 | Accessor to the mnt_by attribute. | ||
| 188 | Accepts an optional mnt_by value to be added to the mnt_by array, | ||
| 189 | always return the current mnt_by array. | ||
| 190 | |||
| 191 | Lists a registered 'mntner' used to authorize and authenticate changes to | ||
| 192 | this object. | ||
| 193 | |||
| 194 | =head2 B<mnt_lower( [$mnt_lower] )> | ||
| 195 | |||
| 196 | Accessor to the mnt_lower attribute. | ||
| 197 | Accepts an optional mnt_lower value to be added to the mnt_lower array, | ||
| 198 | always return the current mnt_lower array. | ||
| 199 | |||
| 200 | The identifier of a registered mntner object used to authorize the creation of | ||
| 201 | reverse domain objects more specific than the reverse domain specified by this | ||
| 202 | object. | ||
| 203 | |||
| 204 | =head2 B<refer( [$refer] )> | ||
| 205 | |||
| 206 | Accessor to the refer attribute. | ||
| 207 | Accepts an optional refer, always return the current refer. | ||
| 208 | |||
| 209 | The refer attribute is used to refer a query to another authorative | ||
| 210 | database. See the "RIPE Database Query Reference Manual" for an | ||
| 211 | explanation of its use. This will be redundant when forward domains are | ||
| 212 | removed and may be deprecated. | ||
| 213 | |||
| 214 | =head2 B<changed( [$changed] )> | ||
| 215 | |||
| 216 | Accessor to the changed attribute. | ||
| 217 | Accepts an optional changed value to be added to the changed array, | ||
| 218 | always return the current changed array. | ||
| 219 | |||
| 220 | The email address of who last updated the database object and the date it | ||
| 221 | occurred. | ||
| 222 | |||
| 223 | Every time a change is made to a database object, this attribute will show | ||
| 224 | the email address of the person who made those changes. | ||
| 225 | Please use the address format specified in RFC 822 - Standard for | ||
| 226 | the Format of ARPA Internet Text Message and provide the date | ||
| 227 | format using one of the following two formats: YYYYMMDD or YYMMDD. | ||
| 228 | |||
| 229 | =head2 B<source( [$source] )> | ||
| 230 | |||
| 231 | Accessor to the source attribute. | ||
| 232 | Accepts an optional source, always return the current source. | ||
| 233 | |||
| 234 | The database where the object is registered. | ||
| 235 | |||
| 236 | =cut | ||
| 237 | |||
| 238 | 1; |