Optional
errorOptional
maxThe maximum time to cache a DNS response. Up to this limit, responses will be cached according to their own TTL. Defaults to Infinity.
Optional
serversThe 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().
How long to cache a DNS ENODATA or ENOTFOUND response. Defaults to 0.15.