-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.stale
Description
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 entry
data[0].ttl // ttl number
})
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.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.stale