Deno.ResolveDnsOptions

Options which can be set when using Deno.resolveDns.

interface ResolveDnsOptions {
nameServer?: {
ipAddr: string;
port?: number;
}
;
signal?: AbortSignal;
}

§Properties

§
nameServer?: {
ipAddr: string;
port?: number;
}
[src]

The name server to be used for lookups.

If not specified, defaults to the system configuration. For example /etc/resolv.conf on Unix-like systems.

§

An abort signal to allow cancellation of the DNS resolution operation. If the signal becomes aborted the resolveDns operation will be stopped and the promise returned will be rejected with an AbortError.