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

NAME

6       Net::DNS::Text - Domain Name System text representation
7

SYNOPSIS

9           use Net::DNS::Text;
10
11           $object = new Net::DNS::Text('example');
12           $string = $object->string;
13
14           $object = decode Net::DNS::Text( \$data, $offset );
15           ( $object, $next ) = decode Net::DNS::Text( \$data, $offset );
16
17           $data = $object->encode;
18           $text = $object->value;
19

DESCRIPTION

21       The "Net::DNS::Text" module implements a class of text objects with
22       associated class and instance methods.
23
24       Each text object instance has a fixed identity throughout its lifetime.
25

METHODS

27   new
28           $object = new Net::DNS::Text('example');
29
30       Creates a text object which encapsulates a single character string
31       component of a resource record.
32
33       Arbitrary single-byte characters can be represented by \ followed by
34       exactly three decimal digits. Such characters are devoid of any special
35       meaning.
36
37       A character preceded by \ represents itself, without any special
38       interpretation.
39
40   decode
41           $object = decode Net::DNS::Text( \$buffer, $offset );
42
43           ( $object, $next ) = decode Net::DNS::Text( \$buffer, $offset );
44
45       Creates a text object which represents the decoded data at the
46       indicated offset within the data buffer.
47
48       The argument list consists of a reference to a scalar containing the
49       wire-format data and offset of the text data.
50
51       The returned offset value indicates the start of the next item in the
52       data buffer.
53
54   encode
55           $data = $object->encode;
56
57       Returns the wire-format encoded representation of the text object
58       suitable for inclusion in a DNS packet buffer.
59
60   value
61           $value = $text->value;
62
63       Character string representation of the text object.
64
65   string
66           $string = $text->string;
67
68       Conditionally quoted zone file representation of the text object.
69

BUGS

71       Coding strategy is intended to avoid creating unnecessary argument
72       lists and stack frames. This improves efficiency at the expense of code
73       readability.
74
75       Platform specific character coding features are conditionally compiled
76       into the code.
77
79       Copyright (c)2009-2011 Dick Franks.
80
81       All rights reserved.
82
83       This program is free software; you may redistribute it and/or modify it
84       under the same terms as Perl itself.
85

SEE ALSO

87       perl, Net::DNS, RFC1035, RFC3629, Unicode Technical Report #16
88
89
90
91perl v5.16.3                      2012-12-28                 Net::DNS::Text(3)
Impressum