OptionalcacheOptionalmaxLimits the cache time (TTL). If set to 0, it will make a new DNS query each time.
OptionalresolverDNS Resolver used to make DNS queries.
OptionalfallbackWhen the DNS server responds with ENOTFOUND or ENODATA and the OS reports that the entry is available,
it will use dns.lookup(...) directly for the requested hostnames for the specified amount of time (in seconds).
If you don't query internal hostnames (such as localhost, database.local etc.),
it is strongly recommended to set this value to 0.
OptionalerrorThe time how long it needs to remember failed queries (TTL in seconds).
Note: This option is independent, options.maxTtl does not affect this.
OptionallookupThe fallback function to use when the DNS server responds with ENOTFOUND or ENODATA.
Note: This has no effect if the fallbackDuration option is less than 1.
Custom cache instance. If
undefined, it will create a new one.