line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::DNS::RR::NS; |
2
|
|
|
|
|
|
|
|
3
|
10
|
|
|
10
|
|
91
|
use strict; |
|
10
|
|
|
|
|
26
|
|
|
10
|
|
|
|
|
342
|
|
4
|
10
|
|
|
10
|
|
62
|
use warnings; |
|
10
|
|
|
|
|
19
|
|
|
10
|
|
|
|
|
601
|
|
5
|
|
|
|
|
|
|
our $VERSION = (qw$Id: NS.pm 1896 2023-01-30 12:59:25Z willem $)[2]; |
6
|
|
|
|
|
|
|
|
7
|
10
|
|
|
10
|
|
70
|
use base qw(Net::DNS::RR); |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
925
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Net::DNS::RR::NS - DNS NS resource record |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=cut |
15
|
|
|
|
|
|
|
|
16
|
10
|
|
|
10
|
|
85
|
use integer; |
|
10
|
|
|
|
|
32
|
|
|
10
|
|
|
|
|
70
|
|
17
|
|
|
|
|
|
|
|
18
|
10
|
|
|
10
|
|
403
|
use Net::DNS::DomainName; |
|
10
|
|
|
|
|
22
|
|
|
10
|
|
|
|
|
3200
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub _decode_rdata { ## decode rdata from wire-format octet string |
22
|
512
|
|
|
512
|
|
1158
|
my ( $self, @argument ) = @_; |
23
|
|
|
|
|
|
|
|
24
|
512
|
|
|
|
|
1309
|
$self->{nsdname} = Net::DNS::DomainName1035->decode(@argument); |
25
|
512
|
|
|
|
|
1239
|
return; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub _encode_rdata { ## encode rdata as wire-format octet string |
30
|
60
|
|
|
60
|
|
120
|
my ( $self, @argument ) = @_; |
31
|
|
|
|
|
|
|
|
32
|
60
|
|
|
|
|
81
|
my $nsdname = $self->{nsdname}; |
33
|
60
|
|
|
|
|
125
|
return $nsdname->encode(@argument); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub _format_rdata { ## format rdata portion of RR string. |
38
|
7
|
|
|
7
|
|
11
|
my $self = shift; |
39
|
|
|
|
|
|
|
|
40
|
7
|
|
|
|
|
12
|
my $nsdname = $self->{nsdname}; |
41
|
7
|
|
|
|
|
16
|
return $nsdname->string; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub _parse_rdata { ## populate RR from rdata in argument list |
46
|
62
|
|
|
62
|
|
128
|
my ( $self, @argument ) = @_; |
47
|
|
|
|
|
|
|
|
48
|
62
|
|
|
|
|
137
|
$self->nsdname(@argument); |
49
|
62
|
|
|
|
|
135
|
return; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub nsdname { |
54
|
271
|
|
|
271
|
1
|
513
|
my ( $self, @value ) = @_; |
55
|
271
|
|
|
|
|
456
|
for (@value) { $self->{nsdname} = Net::DNS::DomainName1035->new($_) } |
|
87
|
|
|
|
|
202
|
|
56
|
271
|
100
|
|
|
|
816
|
return $self->{nsdname} ? $self->{nsdname}->name : undef; |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |
61
|
|
|
|
|
|
|
__END__ |