line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::DNS::RR::CNAME; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
37
|
use strict; |
|
4
|
|
|
|
|
19
|
|
|
4
|
|
|
|
|
178
|
|
4
|
4
|
|
|
4
|
|
24
|
use warnings; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
305
|
|
5
|
|
|
|
|
|
|
our $VERSION = (qw$Id: CNAME.pm 1896 2023-01-30 12:59:25Z willem $)[2]; |
6
|
|
|
|
|
|
|
|
7
|
4
|
|
|
4
|
|
39
|
use base qw(Net::DNS::RR); |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
501
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Net::DNS::RR::CNAME - DNS CNAME resource record |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=cut |
15
|
|
|
|
|
|
|
|
16
|
4
|
|
|
4
|
|
35
|
use integer; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
29
|
|
17
|
|
|
|
|
|
|
|
18
|
4
|
|
|
4
|
|
185
|
use Net::DNS::DomainName; |
|
4
|
|
|
|
|
14
|
|
|
4
|
|
|
|
|
1518
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub _decode_rdata { ## decode rdata from wire-format octet string |
22
|
31
|
|
|
31
|
|
86
|
my ( $self, @argument ) = @_; |
23
|
|
|
|
|
|
|
|
24
|
31
|
|
|
|
|
95
|
$self->{cname} = Net::DNS::DomainName1035->decode(@argument); |
25
|
31
|
|
|
|
|
84
|
return; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub _encode_rdata { ## encode rdata as wire-format octet string |
30
|
5
|
|
|
5
|
|
11
|
my ( $self, @argument ) = @_; |
31
|
|
|
|
|
|
|
|
32
|
5
|
|
|
|
|
8
|
my $cname = $self->{cname}; |
33
|
5
|
|
|
|
|
13
|
return $cname->encode(@argument); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub _format_rdata { ## format rdata portion of RR string. |
38
|
2
|
|
|
2
|
|
4
|
my $self = shift; |
39
|
|
|
|
|
|
|
|
40
|
2
|
|
|
|
|
3
|
my $cname = $self->{cname}; |
41
|
2
|
|
|
|
|
5
|
return $cname->string; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub _parse_rdata { ## populate RR from rdata in argument list |
46
|
1
|
|
|
1
|
|
2
|
my ( $self, @argument ) = @_; |
47
|
|
|
|
|
|
|
|
48
|
1
|
|
|
|
|
3
|
$self->cname(@argument); |
49
|
1
|
|
|
|
|
2
|
return; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub cname { |
54
|
6
|
|
|
6
|
1
|
32
|
my ( $self, @value ) = @_; |
55
|
6
|
|
|
|
|
16
|
for (@value) { $self->{cname} = Net::DNS::DomainName1035->new($_) } |
|
2
|
|
|
|
|
6
|
|
56
|
6
|
100
|
|
|
|
43
|
return $self->{cname} ? $self->{cname}->name : undef; |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |
61
|
|
|
|
|
|
|
__END__ |