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(
13 ...
14 txtdata => 'single text string'
15 or
16 txtdata => [ 'multiple', 'strings', ... ]
17 );
18
19 use encoding 'utf8';
20 $rr = new Net::DNS::RR( 'jp TXT XXXXXXXXXXXX' );
21
23 Class for DNS Text (TXT) resource records.
24
26 The available methods are those inherited from the base class augmented
27 by the type-specific methods defined in this package.
28
29 Use of undocumented package features or direct access to internal data
30 structures is discouraged and could result in program termination or
31 other unpredictable behaviour.
32
33 txtdata
34 $string = $rr->txtdata;
35 @list = $rr->txtdata;
36
37 When invoked in scalar context, txtdata() returns the descriptive text
38 as a single string, regardless of the number of elements.
39
40 In a list context, txtdata() returns a list of the text elements.
41
43 Copyright (c)2011 Dick Franks.
44
45 Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
46
47 All rights reserved.
48
49 This program is free software; you may redistribute it and/or modify it
50 under the same terms as Perl itself.
51
53 perl, Net::DNS, Net::DNS::RR, RFC1035 Section 3.3.14, RFC3629
54
55
56
57perl v5.16.3 2012-12-28 Net::DNS::RR::TXT(3)