The SRVRecord class represents a Domain Name System (DNS) SRV resource record containing a service host.

SRV resource records are returned by a DNSResolver object as a result of a DNS lookup on a service locator. More than one record can be returned by a single lookup if more than one service host is available.

Constructor

new()

Creates an SRV resource record.

SRV records are obtained from a DNS lookup using the DNSResolver class. Application code should not create SRVRecord objects.

Variables

port:Int

The port the service is using on the server.

priority:Int

The priority of the service host identified by this record.

Lower values are higher priority.

target:String

The canonical host name of the server providing the service.

weight:Int

The relative weight to use when selecting from service hosts that have the same priority.

Inherited Variables

Defined by ResourceRecord

name:String

The query string used to look up this resource record.

ttl:Int

The resource time-to-live (ttl) value.

The length of time (in seconds) that the resource record is valid. Records should not be cached for longer than this value. A ttl of zero means the record is volatile and must not be cached. A ttl less than zero means that the resource record is not valid.

Inherited Methods