1Net::DNS::RR::SRV(3) User Contributed Perl Documentation Net::DNS::RR::SRV(3)
2
3
4
6 Net::DNS::RR::SRV - DNS SRV resource record
7
9 use Net::DNS;
10 $rr = new Net::DNS::RR('name SRV priority weight port target');
11
13 Class for DNS Service (SRV) resource records.
14
16 The available methods are those inherited from the base class augmented
17 by the type-specific methods defined in this package.
18
19 Use of undocumented package features or direct access to internal data
20 structures is discouraged and could result in program termination or
21 other unpredictable behaviour.
22
23 priority
24 $priority = $rr->priority;
25 $rr->priority( $priority );
26
27 Returns the priority for this target host.
28
29 weight
30 $weight = $rr->weight;
31 $rr->weight( $weight );
32
33 Returns the weight for this target host.
34
35 port
36 $port = $rr->port;
37 $rr->port( $port );
38
39 Returns the port number for the service on this target host.
40
41 target
42 $target = $rr->target;
43 $rr->target( $target );
44
45 Returns the domain name of the target host.
46
48 By default, rrsort() returns the SRV records sorted from lowest to
49 highest priority and for equal priorities from highest to lowest
50 weight.
51
52 Note: This is NOT the order in which connections should be attempted.
53
55 Copyright (c)1997 Michael Fuhr.
56
57 Portions Copyright (c)2005 Olaf Kolkman, NLnet Labs.
58
59 All rights reserved.
60
61 Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
62
64 Permission to use, copy, modify, and distribute this software and its
65 documentation for any purpose and without fee is hereby granted,
66 provided that the above copyright notice appear in all copies and that
67 both that copyright notice and this permission notice appear in
68 supporting documentation, and that the name of the author not be used
69 in advertising or publicity pertaining to distribution of the software
70 without specific prior written permission.
71
72 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
73 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
74 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
75 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
76 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
77 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
78 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
79
81 perl, Net::DNS, Net::DNS::RR, RFC2782
82
83
84
85perl v5.30.1 2020-01-30 Net::DNS::RR::SRV(3)