dns.resolveTxt()

dns.resolveTxt(hostname, callback)

Uses the DNS protocol to resolve text queries (TXT records) for the hostname. The addresses argument passed to the callback function is is a two-dimentional array of the text records available for hostname (e.g., [ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]). Each sub-array contains TXT chunks of one record. Depending on the use case, these could be either joined together or treated separately.

doc_Nodejs
2016-04-30 04:38:58
Comments
Leave a Comment

Please login to continue.