interface ADnsDiscoveryOptions
extends DnsDiscoveryCommon

The 'dns' arm in address mode — A/AAAA records carry no port.

Properties

readonly
mode: "a"

Query A/AAAA records.

readonly
port: number

Port every resolved address is reached on.

Mandatory in this mode and absent from the 'srv' arm: DNS address records carry no port, and defaulting to 80 would silently point traffic at the wrong place.

Usage

import { type ADnsDiscoveryOptions } from "service-discovery-plugin/src/index.ts";