[dns] - resolveTxt ttl flag #39528
Labels
cares
Issues and PRs related to the c-ares dependency or the cares_wrap binding.
dns
Issues and PRs related to the dns subsystem.
duplicate
Issues and PRs that are duplicates of other issues or PRs.
feature request
Issues that request new features to be added to Node.js.
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 libDescribe 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 ttlDescribe alternatives you've considered
None
Note: I updated unit tests to show case how I would like to use this API: #39529
The text was updated successfully, but these errors were encountered: