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::RR";
10
12 Class for DNS Text (TXT) resource records.
13
15 txtdata
16 print "txtdata = ", $rr->txtdata, "\n";
17
18 Returns the descriptive text as a single string, regardless of actual
19 number of <character-string> elements. Of questionable value. Should
20 be deprecated.
21
22 Use "$txt->rdatastr()" or "$txt->char_str_list()" instead.
23
24 char_str_list
25 print "Individual <character-string> list: \n\t",
26 join("\n\t", $rr->char_str_list());
27
28 Returns a list of the individual <character-string> elements, as
29 unquoted strings. Used by TXT->rdatastr and TXT->rr_rdata.
30
32 The RR.pm module accepts semi-colons as a start of a comment. This is
33 to allow the RR.pm to deal with RFC1035 specified zonefile format.
34
35 For some applications of the TXT RR the semicolon is relevant, you will
36 need to escape it on input.
37
38 Also note that you should specify the several character strings
39 separately. The easiest way to do so is to include the whole argument
40 in single quotes and the several character strings in double quotes.
41 Double quotes inside the character strings will need to be escaped.
42
43 my $TXTrr=Net::DNS::RR->new('txt2.t.net-dns.org. 60 IN TXT
44 "Test1 \" \; more stuff" "Test2"');
45
46 would result in $TXTrr->char_str_list())[0] containing 'Test1 " ; more
47 stuff' and $TXTrr->char_str_list())[1] containing 'Test2'
48
50 Copyright (c) 1997-2002 Michael Fuhr.
51
52 Portions Copyright (c) 2002-2004 Chris Reinhardt. Portions Copyright
53 (c) 2005 Olaf Kolkman (NLnet Labs)
54
55 All rights reserved. This program is free software; you may
56 redistribute it and/or modify it under the same terms as Perl itself.
57
59 perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet,
60 Net::DNS::Header, Net::DNS::Question, Net::DNS::RR, RFC 1035 Section
61 3.3.14
62
63
64
65perl v5.10.1 2009-01-26 Net::DNS::RR::TXT(3)