Open
Description
What is the problem this feature will solve?
Follow up to #57640 , we should create an API that allows users to specify the DNS querying cache TTL.
With the addition of this API, we should restore the default behavior to match the (sensible) defaults of c-ares (i.e. remove the qcache_max_ttl=0`).
I will contribute this in the coming days.
What is the feature you are proposing to solve the problem?
API I have in my head is to add a ttl
option to https://nodejs.org/api/dns.html#resolveroptions and to all of the shortcuts too i.e. https://nodejs.org/api/dns.html#dnsresolvehostname-rrtype-callback
Something like dns.resolve('...', { ttl: 100 }, () => {});
or new dns.Resolver({ ttl: 100 });
What alternatives have you considered?
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Awaiting Triage