Closed
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
})