line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Whois::Object::InetNum::APNIC; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
31
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
5
|
1
|
|
|
1
|
|
4
|
use base qw/Net::Whois::Object/; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
284
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# whois -h whois.apnic.net -t inetnum |
8
|
|
|
|
|
|
|
# % [whois.apnic.net] |
9
|
|
|
|
|
|
|
# % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html |
10
|
|
|
|
|
|
|
# |
11
|
|
|
|
|
|
|
# inetnum: [mandatory] [single] [primary/lookup key] |
12
|
|
|
|
|
|
|
# netname: [mandatory] [single] [lookup key] |
13
|
|
|
|
|
|
|
# descr: [mandatory] [multiple] [ ] |
14
|
|
|
|
|
|
|
# country: [mandatory] [multiple] [ ] |
15
|
|
|
|
|
|
|
# geoloc: [optional] [single] [ ] |
16
|
|
|
|
|
|
|
# language: [optional] [multiple] [ ] |
17
|
|
|
|
|
|
|
# org: [optional] [single] [inverse key] |
18
|
|
|
|
|
|
|
# admin-c: [mandatory] [multiple] [inverse key] |
19
|
|
|
|
|
|
|
# tech-c: [mandatory] [multiple] [inverse key] |
20
|
|
|
|
|
|
|
# status: [mandatory] [single] [ ] |
21
|
|
|
|
|
|
|
# remarks: [optional] [multiple] [ ] |
22
|
|
|
|
|
|
|
# notify: [optional] [multiple] [inverse key] |
23
|
|
|
|
|
|
|
# mnt-by: [mandatory] [multiple] [inverse key] |
24
|
|
|
|
|
|
|
# mnt-lower: [optional] [multiple] [inverse key] |
25
|
|
|
|
|
|
|
# mnt-routes: [optional] [multiple] [inverse key] |
26
|
|
|
|
|
|
|
# mnt-irt: [mandatory] [multiple] [inverse key] |
27
|
|
|
|
|
|
|
# last-modified: [generated] [single] [ ] |
28
|
|
|
|
|
|
|
# source: [mandatory] [single] [ ] |
29
|
|
|
|
|
|
|
# |
30
|
|
|
|
|
|
|
# % This query was served by the APNIC Whois Service version 1.68.5 (WHOIS4) |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__PACKAGE__->attributes( 'primary', [ 'inetnum' ] ); |
33
|
|
|
|
|
|
|
__PACKAGE__->attributes( 'mandatory', [ 'inetnum', 'netname', 'descr', 'country', 'admin_c', 'tech_c', 'status', 'mnt_by', 'mnt_irt', 'source' ] ); |
34
|
|
|
|
|
|
|
__PACKAGE__->attributes( 'optional', [ 'geoloc', 'language', 'org', 'remarks', 'notify', 'mnt_lower', 'mnt_routes', 'last_modified' ] ); |
35
|
|
|
|
|
|
|
__PACKAGE__->attributes( 'single', [ 'inetnum', 'netname', 'geoloc', 'org', 'status', 'last_modified', 'source' ] ); |
36
|
|
|
|
|
|
|
__PACKAGE__->attributes( 'multiple', [ 'descr', 'country', 'language', 'admin_c', 'tech_c', 'remarks', 'notify', 'mnt_by', 'mnt_lower', 'mnt_routes', 'mnt_irt' ] ); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 NAME |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Net::Whois::Object::InetNum::APNIC - an object representation of a RPSL InetNum block |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 DESCRIPTION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
An inetnum object contains information on allocations and assignments |
45
|
|
|
|
|
|
|
of IPv4 address space. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 METHODS |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head2 new ( @options ) |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Constructor for the Net::Whois::Object::InetNum::APNIC class |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=cut |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
sub new { |
56
|
1
|
|
|
1
|
1
|
4
|
my ( $class, @options ) = @_; |
57
|
|
|
|
|
|
|
|
58
|
1
|
|
|
|
|
4
|
my $self = bless {}, $class; |
59
|
|
|
|
|
|
|
|
60
|
1
|
|
|
|
|
6
|
$self->_init(@options); |
61
|
|
|
|
|
|
|
|
62
|
1
|
|
|
|
|
2
|
return $self; |
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head2 B |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Accessor to the inetnum attribute. |
68
|
|
|
|
|
|
|
Accepts an optional inetnum value, always return the current inetnum value. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head2 B |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Accessor to the netname attribute. |
73
|
|
|
|
|
|
|
Accepts an optional netname, always return the current netname. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head2 B |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Accessor to the descr attribute. |
78
|
|
|
|
|
|
|
Accepts an optional descr value to be added to the descr array, |
79
|
|
|
|
|
|
|
always return the current descr array. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head2 B |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Accessor to the country attribute. |
84
|
|
|
|
|
|
|
Accepts an optional country to be added to the country array, |
85
|
|
|
|
|
|
|
always return the current country array. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head2 B |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
Accessor to the geoloc attribute. |
90
|
|
|
|
|
|
|
Accepts an optional geoloc, always return the current geoloc. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
The location coordinates for the resource |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Location coordinates of the resource. Can take one of the following forms: |
95
|
|
|
|
|
|
|
[-90,90][-180,180] |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head2 B |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Accessor to the language attribute. |
100
|
|
|
|
|
|
|
Accepts an optional language to be added to the language array, |
101
|
|
|
|
|
|
|
always return the current language array. |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Identifies the language. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
Valid two-letter ISO 639-1 language code. |
106
|
|
|
|
|
|
|
=head2 B |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Accessor to the 'org' attribute. |
109
|
|
|
|
|
|
|
Accepts an optional org, always return the current org. |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
Only a single value for the org attribute is allowed in the Inetnum object. |
112
|
|
|
|
|
|
|
This is to ensure only one organisation is responsible for this resource. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head2 B |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Accessor to the admin_c attribute. |
117
|
|
|
|
|
|
|
Accepts an optional contact to be added to the admin_c array, |
118
|
|
|
|
|
|
|
always return the current admin_c array. |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
The NIC-handle of an on-site contact Person object. As more than one person |
121
|
|
|
|
|
|
|
often fulfills a role function, there may be more than one admin_c listed. |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
An administrative contact (admin_c) must be someone who is physically |
124
|
|
|
|
|
|
|
located at the site of the network. |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=head2 B |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
Accessor to the tech_c attribute. |
129
|
|
|
|
|
|
|
Accepts an optional contact to be added to the tech_c array, |
130
|
|
|
|
|
|
|
always return the current tech_c array. |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
The NIC-handle of a technical contact Person or Role object. As more than |
133
|
|
|
|
|
|
|
one person often fulfills a role function, there may be more than one tech_c |
134
|
|
|
|
|
|
|
listed. |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
A technical contact (tech_c) must be a person responsible for the |
137
|
|
|
|
|
|
|
day-to-day operation of the network, but does not need to be |
138
|
|
|
|
|
|
|
physically located at the site of the network. |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=head2 B |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
Accessor to the 'status' attribute. |
143
|
|
|
|
|
|
|
Accepts an optional status, always return the current status. |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
The status attribute indicates where the address range represented by an |
146
|
|
|
|
|
|
|
inetnum object sits in a hierarchy and how it is used. |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
Status can have one of these values: |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
=over 4 |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=item ALLOCATED UNSPECIFIED |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
=item ALLOCATED PA |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
=item ALLOCATED PI |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=item LIR-PARTITIONED PA |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
=item LIR-PARTITIONED PI |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
=item SUB-ALLOCATED PA |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
=item ASSIGNED PA |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
=item ASSIGNED PI |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=item ASSIGNED ANYCAST |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
=item EARLY-REGISTRATION |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=item NOT-SET |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=back |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
=head2 B |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
Accessor to the remarks attribute. |
179
|
|
|
|
|
|
|
Accepts an optional remark to be added to the remarks array, |
180
|
|
|
|
|
|
|
always return the current remarks array. |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
General remarks. May include a URL or instructions on where to send abuse |
183
|
|
|
|
|
|
|
complaints. |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
=head2 B |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
Accessor to the notify attribute. |
188
|
|
|
|
|
|
|
Accepts an optional notify value to be added to the notify array, |
189
|
|
|
|
|
|
|
always return the current notify array. |
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
The email address to which notifications of changes to this object should be |
192
|
|
|
|
|
|
|
sent. |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
=head2 B |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
Accessor to the mnt_by attribute. |
197
|
|
|
|
|
|
|
Accepts an optional mnt_by value to be added to the mnt_by array, |
198
|
|
|
|
|
|
|
always return the current mnt_by array. |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
Lists a registered Mntner used to authorize and authenticate changes to this |
201
|
|
|
|
|
|
|
object. |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
=head2 B |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
Accessor to the mnt_lower attribute. |
206
|
|
|
|
|
|
|
Accepts an optional mnt_lower value to be added to the mnt_lower array, |
207
|
|
|
|
|
|
|
always return the current mnt_lower array. |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
Sometimes there is a hierarchy of maintainers. In these cases, mnt_lower is |
210
|
|
|
|
|
|
|
used as well as mnt_by. |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
=head2 B |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
Accessor to the mnt_routes attribute. |
215
|
|
|
|
|
|
|
Accepts an optional mnt_route to be added to the mnt_routes array, |
216
|
|
|
|
|
|
|
always return the current mnt_routes array. |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
The identifier of a registered Mntner object used to control the creation of |
219
|
|
|
|
|
|
|
Route objects associated with the address range specified by the Inetnum |
220
|
|
|
|
|
|
|
object. |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
=head2 B |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
Accessor to the mnt_domains attribute. |
225
|
|
|
|
|
|
|
Accepts an optional mnt_domain to be added to the mnt_domains array, |
226
|
|
|
|
|
|
|
always return the current mnt_domains array. |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
The identifier of a registered Mntner object used to control the creation of |
229
|
|
|
|
|
|
|
Domain objects associated with the address range specified by the Inetnum |
230
|
|
|
|
|
|
|
object. |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
=head2 B |
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
Accessor to the last-modified attribute. |
235
|
|
|
|
|
|
|
always return the latest modification date. |
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
The email address of who last updated the database object and the date it |
238
|
|
|
|
|
|
|
occurred. |
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
Every time a change is made to a database object, this attribute will show |
241
|
|
|
|
|
|
|
the email address of the person who made those changes. |
242
|
|
|
|
|
|
|
Please use the address format specified in RFC 822 - Standard for |
243
|
|
|
|
|
|
|
the Format of ARPA Internet Text Message and provide the date |
244
|
|
|
|
|
|
|
format using one of the following two formats: YYYYMMDD or YYMMDD. |
245
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
=head2 B |
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
Accessor to the source attribute. |
249
|
|
|
|
|
|
|
Accepts an optional source, always return the current source. |
250
|
|
|
|
|
|
|
|
251
|
|
|
|
|
|
|
The database where the object is registered. |
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
=head2 B |
254
|
|
|
|
|
|
|
|
255
|
|
|
|
|
|
|
Accessor to the mnt_irt attribute. |
256
|
|
|
|
|
|
|
Accepts an optional mnt_irt value to be added to the mnt_irt array, |
257
|
|
|
|
|
|
|
always return the current mnt_irt array. |
258
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
The identifier of a registered Mntner object used to provide information |
260
|
|
|
|
|
|
|
about a Computer Security Incident Response Team (CSIRT). |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
=cut |
263
|
|
|
|
|
|
|
|
264
|
|
|
|
|
|
|
1; |