-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Closed
Labels
caresIssues and PRs related to the c-ares dependency or the cares_wrap binding.Issues and PRs related to the c-ares dependency or the cares_wrap binding.dnsIssues and PRs related to the dns subsystem.Issues and PRs related to the dns subsystem.duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.
Description
Is your feature request related to a problem? Please describe.
I would like to implement some application cache on top of dns.resolveTxt
but TTL are not parsed nor returned by the dns lib
Describe the solution you'd like
The same way as https://nodejs.org/docs/latest-v15.x/api/dns.html#dns_dns_resolve4_hostname_options_callback I would love to have the ability to provide a ttl
boolean flag so that I retrieved the dnx txt records with their ttl
Describe alternatives you've considered
None
Note: I updated unit tests to show case how I would like to use this API: #39529
nemanjan00
Metadata
Metadata
Assignees
Labels
caresIssues and PRs related to the c-ares dependency or the cares_wrap binding.Issues and PRs related to the c-ares dependency or the cares_wrap binding.dnsIssues and PRs related to the dns subsystem.Issues and PRs related to the dns subsystem.duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.