1'use strict'; 2const common = require('../common'); 3const assert = require('assert'); 4const dns = require('dns'); 5const dnsPromises = dns.promises; 6 7(async function() { 8 const result = await dnsPromises.resolveTxt('www.microsoft.com'); 9 assert.strictEqual(result.length, 0); 10})().then(common.mustCall()); 11 12dns.resolveTxt('www.microsoft.com', function(err, records) { 13 assert.strictEqual(err, null); 14 assert.strictEqual(records.length, 0); 15}); 16