interface DenoSrvRecord
Since 0.2.0

One SRV record as Deno.resolveDns returns it.

The target field is named target here; Node spells the identical field name. Normalizing both onto SrvRecord.host is the whole reason these two resolvers exist separately — a port that passed either shape through unchanged would type-check on both runtimes and produce undefined hostnames on one of them.

Properties

target: string

Target hostname.

port: number

TCP port.

priority: number

RFC 2782 priority.

weight: number

RFC 2782 weight.

Usage

import { type DenoSrvRecord } from "runtime/src/index.ts";