Skip to content

[dns] - resolveTxt ttl flag #39528

Closed
Closed
@tanguyantoine

Description

@tanguyantoine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    caresIssues and PRs related to the c-ares dependency or the cares_wrap binding.dnsIssues and PRs related to the dns subsystem.duplicateIssues and PRs that are duplicates of other issues or PRs.feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions