A SRV record has the form: •
service: the symbolic name of the desired service. •
proto: the transport protocol of the desired service; this is usually either
TCP or
UDP. •
name: the domain name for which this record is valid, ending in a dot. •
ttl: standard DNS
time to live field. •
IN: standard DNS class field (this is always
IN). •
SRV: Type of Record (this is always
SRV). •
priority: the priority of the target host, lower value means more preferred. •
weight: A relative weight for records with the same priority, higher value means higher chance of getting picked. •
port: the TCP or UDP port on which the service is to be found. •
target: the canonical hostname of the machine providing the service, ending in a dot. An example SRV record in textual form that might be found in a
zone file might be the following: This points to a server named sipserver.example.com listening on TCP port 5060 for
Session Initiation Protocol (SIP) services. The priority given here is 0, and the weight is 5. As in
MX records, the target in SRV records must point to hostname with an address record (
A or
AAAA record). Pointing to a hostname with a
CNAME record is not a valid configuration. == Provisioning for high service availability ==