line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::DNS::RR::NS; |
2
|
|
|
|
|
|
|
|
3
|
10
|
|
|
10
|
|
70
|
use strict; |
|
10
|
|
|
|
|
22
|
|
|
10
|
|
|
|
|
303
|
|
4
|
10
|
|
|
10
|
|
51
|
use warnings; |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
597
|
|
5
|
|
|
|
|
|
|
our $VERSION = (qw$Id: NS.pm 1896 2023-01-30 12:59:25Z willem $)[2]; |
6
|
|
|
|
|
|
|
|
7
|
10
|
|
|
10
|
|
64
|
use base qw(Net::DNS::RR); |
|
10
|
|
|
|
|
19
|
|
|
10
|
|
|
|
|
920
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Net::DNS::RR::NS - DNS NS resource record |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=cut |
15
|
|
|
|
|
|
|
|
16
|
10
|
|
|
10
|
|
76
|
use integer; |
|
10
|
|
|
|
|
21
|
|
|
10
|
|
|
|
|
78
|
|
17
|
|
|
|
|
|
|
|
18
|
10
|
|
|
10
|
|
354
|
use Net::DNS::DomainName; |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
3004
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub _decode_rdata { ## decode rdata from wire-format octet string |
22
|
534
|
|
|
534
|
|
1089
|
my ( $self, @argument ) = @_; |
23
|
|
|
|
|
|
|
|
24
|
534
|
|
|
|
|
1333
|
$self->{nsdname} = Net::DNS::DomainName1035->decode(@argument); |
25
|
534
|
|
|
|
|
1310
|
return; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub _encode_rdata { ## encode rdata as wire-format octet string |
30
|
60
|
|
|
60
|
|
115
|
my ( $self, @argument ) = @_; |
31
|
|
|
|
|
|
|
|
32
|
60
|
|
|
|
|
81
|
my $nsdname = $self->{nsdname}; |
33
|
60
|
|
|
|
|
120
|
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
|
|
|
|
|
11
|
my $nsdname = $self->{nsdname}; |
41
|
7
|
|
|
|
|
24
|
return $nsdname->string; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub _parse_rdata { ## populate RR from rdata in argument list |
46
|
62
|
|
|
62
|
|
137
|
my ( $self, @argument ) = @_; |
47
|
|
|
|
|
|
|
|
48
|
62
|
|
|
|
|
136
|
$self->nsdname(@argument); |
49
|
62
|
|
|
|
|
129
|
return; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub nsdname { |
54
|
278
|
|
|
278
|
1
|
539
|
my ( $self, @value ) = @_; |
55
|
278
|
|
|
|
|
460
|
for (@value) { $self->{nsdname} = Net::DNS::DomainName1035->new($_) } |
|
87
|
|
|
|
|
191
|
|
56
|
278
|
100
|
|
|
|
825
|
return $self->{nsdname} ? $self->{nsdname}->name : undef; |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |
61
|
|
|
|
|
|
|
__END__ |