interface SrvRecord
Since 0.2.0

One DNS SRV record, normalized across runtimes.

The field is named host deliberately: Deno's resolver calls it target and Node's calls it name, so passing either spelling through would make a consumer correct on one runtime and silently undefined on the other. Each adapter maps its own spelling onto this one.

Properties

readonly
host: string

Target hostname. Trailing dots are left as the resolver returned them.

readonly
port: number

TCP port the service listens on.

readonly
priority: number

RFC 2782 priority — clients use the lowest-numbered tier first.

readonly
weight: number

RFC 2782 weight — relative share within one priority tier.

Usage

import { type SrvRecord } from "common/src/index.ts";