Resolves services through DNS.
Parameters
options: DnsProviderOptions
Mode, template, port, and poll interval
readonly
kind: string
Backend id.
domainFor(serviceName: string): string
Substitutes the service name into the configured template.
resolve(serviceName: string): Promise<readonly ServiceInstance[]>
Reads the current instance list for a service.
watch(serviceName: string,listener: (instances: readonly ServiceInstance[]) => void): Promise<Unsubscribe>
Polls at watchIntervalMs, firing only when the instance list changed.
DNS has no push channel. Polling is the honest implementation: a watch()
that never fires would be worse than a documented interval.