You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dns.lookupTxt() function returns the TXT entries but omits the TTL entries. This is a problem if one intends to add a cache on top of lookupTxt()
Describe the solution you'd like
Probably the best I could see is to have an option for lookupTxt in the form of { ttl: true } that returns a value + ttl object instead of a simple string:
dns.lookupTxt('domain',{ttl: true},(err,data)=>{data[0].value// text entrydata[0].ttl// ttl number})
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.
Activity
evanlucas commentedon Jul 16, 2021
It doesn't look like cares supports this out of the box. c-ares/c-ares#393 seems to be some progress though.
I did find a patch thanks to @saghul's work on https://github.com/saghul/pycares that adds TTL support to cares, but it breaks ABI
richardlau commentedon Jul 16, 2021
#14713 is the Node.js issue tracking things "missing" from c-ares.
targos commentedon Jul 16, 2021
Also, #38184 could be the solution to many of these :)
tniessen commentedon Aug 8, 2021
Just copying #39528 (comment) from a duplicate issue:
github-actions commentedon Mar 29, 2022
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.
github-actions commentedon Apr 29, 2022
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.
For more information on how the project manages feature requests, please consult the feature request management document.