1Net::DNS::RR::TXT(3)  User Contributed Perl Documentation Net::DNS::RR::TXT(3)
2
3
4

NAME

6       Net::DNS::RR::TXT - DNS TXT resource record
7

SYNOPSIS

9           use Net::DNS;
10           $rr = Net::DNS::RR->new( 'name TXT  txtdata ...' );
11
12           $rr = Net::DNS::RR->new( name    => 'name',
13                                    type    => 'TXT',
14                                    txtdata => 'single text string'
15                                    );
16
17           $rr = Net::DNS::RR->new( name    => 'name',
18                                    type    => 'TXT',
19                                    txtdata => [ 'multiple', 'strings', ... ]
20                                    );
21
22           use utf8;
23           $rr = Net::DNS::RR->new( 'jp TXT    古池や 蛙飛込む 水の音' );
24

DESCRIPTION

26       Class for DNS Text (TXT) resource records.
27

METHODS

29       The available methods are those inherited from the base class augmented
30       by the type-specific methods defined in this package.
31
32       Use of undocumented package features or direct access to internal data
33       structures is discouraged and could result in program termination or
34       other unpredictable behaviour.
35
36   txtdata
37           $string = $rr->txtdata;
38           @list   = $rr->txtdata;
39
40           $rr->txtdata( @list );
41
42       When invoked in scalar context, txtdata() returns a concatenation of
43       the descriptive text elements each separated by a single space
44       character.
45
46       In a list context, txtdata() returns a list of the text elements.
47
49       Copyright (c)2011 Dick Franks.
50
51       All rights reserved.
52
53       Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
54

LICENSE

56       Permission to use, copy, modify, and distribute this software and its
57       documentation for any purpose and without fee is hereby granted,
58       provided that the original copyright notices appear in all copies and
59       that both copyright notice and this permission notice appear in
60       supporting documentation, and that the name of the author not be used
61       in advertising or publicity pertaining to distribution of the software
62       without specific prior written permission.
63
64       THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
65       OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
66       MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
67       IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
68       CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
69       TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
70       SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
71

SEE ALSO

73       perl Net::DNS Net::DNS::RR RFC1035(3.3.14)
74       <https://tools.ietf.org/html/rfc1035> RFC3629
75       <https://tools.ietf.org/html/rfc3629>
76
77
78
79perl v5.36.1                      2023-06-01              Net::DNS::RR::TXT(3)
Impressum