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

NAME

6       Net::DNS::RR::OPT - DNS OPT
7

SYNOPSIS

9       "use Net::DNS::RR";
10

DESCRIPTION

12       Class for EDNS pseudo resource record OPT.
13

METHODS

15       This object should only be used inside the Net::DNS classes itself.
16
17   new
18       Since "OPT" is a pseudo record and should not be stored in masterfiles;
19       Therefore we have not implemented a method to create this RR from
20       string.
21
22       One may create the object from a hash. See RFC 2671 for details for the
23       meaning of the hash keys.
24
25        $rr= new Net::DNS::RR {
26           name => "",     # Ignored and set to ""
27           type => "OPT",
28           class => 1024,    # sets UDP payload size
29           extendedrcode =>  0x00,    # sets the extended RCODE 1 octets
30           ednsflags     =>  0x0000,  # sets the ednsflags (2octets)
31           optioncode   =>   0x0      # 2 octets
32           optiondata   =>   0x0      # optionlength octets
33        }
34
35       The ednsversion is set to 0 for now. The ttl value is determined from
36       the extendedrcode, the ednsversion and the ednsflag.  The rdata is
37       constructed from the optioncode and optiondata see section 4.4 of RFC
38       2671
39
40       If optioncode is left undefined then we do not expect any RDATA.
41
42       The defaults are no rdata.
43
44   do, set_do, clear_do
45           $opt->set_do;
46
47       Reads, sets and clears the do flag. (first bit in the ednssflags);
48
49   size
50           $opt->size(1498);
51           print "Packet size:". $opt->size() ;
52
53       Sets or gets the packet size.
54

TODO

56       - This class is tailored to use with dnssec.
57
58       - Do some range checking on the input.
59
60       - This class probably needs subclasses once OPTION codes start to be
61       defined.
62
63       - look at use of extended labels
64
66       Copyright (c) 2001, 2002  RIPE NCC.  Author Olaf M. Kolkman
67
68       All Rights Reserved
69
70       Permission to use, copy, modify, and distribute this software and its
71       documentation for any purpose and without fee is hereby granted,
72       provided that the above copyright notice appear in all copies and that
73       both that copyright notice and this permission notice appear in
74       supporting documentation, and that the name of the author not be used
75       in advertising or publicity pertaining to distribution of the software
76       without specific, written prior permission.
77
78       THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
79       INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO
80       EVENT SHALL AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
81       DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
82       PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
83       ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
84       THIS SOFTWARE.
85
86       Based on, and contains, code by Copyright (c) 1997-2002 Michael Fuhr.
87

SEE ALSO

89       perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet,
90       Net::DNS::Header, Net::DNS::Question, Net::DNS::RR, RFC 2435 Section 3
91
92
93
94perl v5.12.0                      2009-01-26              Net::DNS::RR::OPT(3)
Impressum