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::RR";
10

DESCRIPTION

12       Class for DNS Text (TXT) resource records.
13

METHODS

15       txtdata
16
17           print "txtdata = ", $rr->txtdata, "\n";
18
19       Returns the descriptive text as a single string, regardless of actual
20       number of <character-string> elements.  Of questionable value.  Should
21       be deprecated.
22
23       Use "$txt->rdatastr()" or "$txt->char_str_list()" instead.
24
25       char_str_list
26
27        print "Individual <character-string> list: \n\t",
28              join("\n\t", $rr->char_str_list());
29
30       Returns a list of the individual <character-string> elements, as
31       unquoted strings.  Used by TXT->rdatastr and TXT->rr_rdata.
32

FEATURES

34       The RR.pm module accepts semi-colons as a start of a comment. This is
35       to allow the RR.pm to deal with RFC1035 specified zonefile format.
36
37       For some applications of the TXT RR the semicolon is relevant, you will
38       need to escape it on input.
39
40       Also note that you should specify the several character strings sepa‐
41       rately. The easiest way to do so is to include the whole argument in
42       single quotes and the several character strings in double quotes. Dou‐
43       ble quotes inside the character strings will need to be escaped.
44
45       my $TXTrr=Net::DNS::RR->new('txt2.t.net-dns.org.  60   IN      TXT
46       "Test1 \" \; more stuff"  "Test2"');
47
48       would result in $TXTrr->char_str_list())[0] containing 'Test1 " ; more
49       stuff' and $TXTrr->char_str_list())[1] containing 'Test2'
50
52       Copyright (c) 1997-2002 Michael Fuhr.
53
54       Portions Copyright (c) 2002-2004 Chris Reinhardt.  Portions Copyright
55       (c) 2005 Olaf Kolkman (NLnet Labs)
56
57       All rights reserved.  This program is free software; you may redis‐
58       tribute it and/or modify it under the same terms as Perl itself.
59

SEE ALSO

61       perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet,
62       Net::DNS::Header, Net::DNS::Question, Net::DNS::RR, RFC 1035 Section
63       3.3.14
64
65
66
67perl v5.8.8                       2007-08-01              Net::DNS::RR::TXT(3)
Impressum