File: RESINFO.pm

package info (click to toggle)
libnet-dns-perl 1.50-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,644 kB
  • sloc: perl: 18,185; makefile: 9
file content (116 lines) | stat: -rw-r--r-- 2,888 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
package Net::DNS::RR::RESINFO;

use strict;
use warnings;
our $VERSION = (qw$Id: RESINFO.pm 2003 2025-01-21 12:06:06Z willem $)[2];

use base qw(Net::DNS::RR::TXT);


=head1 NAME

Net::DNS::RR::RESINFO - DNS RESINFO resource record

=cut

use integer;


1;
__END__


=head1 SYNOPSIS

	use Net::DNS;
	my $target = 'resolver.example.net';

	my $resolver = Net::DNS::Resolver->new(
				nameserver => $target,
				recurse	   => 0
				);

	$resolver->send( $target, 'RESINFO' )->print;

	;; HEADER SECTION
	;;	id = 46638
	;;	qr = 1	aa = 1	tc = 0	rd = 0	opcode = QUERY
	;;	ra = 0	z  = 0	ad = 0	cd = 0	rcode  = NOERROR
	;;	do = 0	co = 0
	;;	qdcount = 1	ancount = 1
	;;	nscount = 0	arcount = 0

	;; QUESTION SECTION (1 record)
	;; resolver.example.net.	IN	RESINFO

	;; ANSWER SECTION (1 record)
	resolver.example.net.	7200	IN	RESINFO	(
		qnamemin exterr=15-17
		infourl=https://resolver.example.com/guide )

	;; AUTHORITY SECTION (0 records)

	;; ADDITIONAL SECTION (0 records)

=head1 DESCRIPTION

Class for DNS Resolver Information(RESINFO) resource records.

RESINFO is a clone of the Net::DNS::RR::TXT class.

=head1 METHODS

The available methods are those inherited from the base class augmented
by the type-specific methods defined in this package.

Use of undocumented package features or direct access to internal data
structures is discouraged and could result in program termination or
other unpredictable behaviour.


=head2 txtdata

	$string = $rr->txtdata;
	@list	 = $rr->txtdata;

When invoked in scalar context, $rr->txtdata() returns the resolver
properties as a single string, with elements separated by a single space.

In a list context, $rr->txtdata() returns a list of the text elements.


=head1 COPYRIGHT

Copyright (c)2024 Dick Franks.

All rights reserved.

Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.


=head1 LICENSE

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted, provided
that the original copyright notices appear in all copies and that both
copyright notice and this permission notice appear in supporting
documentation, and that the name of the author not be used in advertising
or publicity pertaining to distribution of the software without specific
prior written permission.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.


=head1 SEE ALSO

L<perl> L<Net::DNS> L<Net::DNS::RR>
L<Net::DNS::RR::TXT>
L<RFC9606|https://iana.org/go/rfc9606>

=cut