Interface PassThroughLookupOptions

interface PassThroughLookupOptions {
    errorTtl?: number;
    maxTtl?: number;
    servers?: string[];
}

Properties

errorTtl?: number

How long to cache a DNS ENODATA or ENOTFOUND response. Defaults to 0.15.

maxTtl?: number

The maximum time to cache a DNS response. Up to this limit, responses will be cached according to their own TTL. Defaults to Infinity.

servers?: string[]

The primary servers to use. DNS queries will be resolved against these servers first. If no data is available, queries will fall back to dns.lookup, and use the OS's default DNS servers.

This defaults to dns.getServers().