Skip to the content.

Interface: SRVRecord

Defined in: types.ts:614

SRV record - Specifies the location of services within a domain.

Example

const record: SRVRecord = {
    type: "SRV",
    priority: 10,
    weight: 5,
    port: 443,
    name: "server.example.com",
    ttl: 3600,
};

Extends

Properties

ttl?

optional ttl?: number

Defined in: types.ts:76

Time to live in seconds (optional)

Inherited from

BaseDNSRecord.ttl


name

name: string

Defined in: types.ts:616

Hostname of the target


port

port: number

Defined in: types.ts:618

Port number of the service


priority

priority: number

Defined in: types.ts:620

Priority of the target host (0-65535, lower values preferred)


type

type: "SRV"

Defined in: types.ts:621

The type of DNS record

Overrides

BaseDNSRecord.type


weight

weight: number

Defined in: types.ts:623

Weight for load balancing among hosts with same priority