1Net::DNS::RR::TXT(3) User Contributed Perl Documentation Net::DNS::RR::TXT(3)
2
3
4
6 Net::DNS::RR::TXT - DNS TXT resource record
7
9 use Net::DNS;
10 $rr = new Net::DNS::RR( 'name TXT txtdata ...' );
11
12 $rr = new Net::DNS::RR( name => 'name',
13 type => 'TXT',
14 txtdata => 'single text string'
15 );
16
17 $rr = new Net::DNS::RR( name => 'name',
18 type => 'TXT',
19 txtdata => [ 'multiple', 'strings', ... ]
20 );
21
22 use utf8;
23 $rr = new Net::DNS::RR( 'jp TXT 古池や 蛙飛込む 水の音' );
24
26 Class for DNS Text (TXT) resource records.
27
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
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 above copyright notice appear in all copies and that
59 both that 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
73 perl, Net::DNS, Net::DNS::RR, RFC1035 Section 3.3.14, RFC3629
74
75
76
77perl v5.30.0 2019-07-26 Net::DNS::RR::TXT(3)