Net::DNS::RR::SRV3pm
Dns srv resource record
Usage
use Net::DNS;$rr = Net::DNS::RR->new('name SRV priority weight port target');
Overview
Class for DNS Service (SRV) resource records.
Methods
The available methods are those inherited from the base class augmented by the type-specific methods defined in this package.
Use of undocumented package features or direct access to internal data structures is discouraged and could result in program termination or other unpredictable behaviour.
priority
$priority = $rr->priority;$rr->priority( $priority );
Returns the priority for this target host.
weight
$weight = $rr->weight;$rr->weight( $weight );
Returns the weight for this target host.
port
$port = $rr->port;$rr->port( $port );
Returns the port number for the service on this target host.
target
$target = $rr->target;$rr->target( $target );
Returns the domain name of the target host.
Sorting of SRV Records
By default, rrsort() returns the SRV records sorted from lowest to highest priority and for equal priorities from highest to lowest weight.
Note: This is NOT the order in which connections should be attempted.
Releases
15 releases since Debian 2.1 (Slink); the text changed 14 times.