2015-05-19 13:00:06 +02:00
|
|
|
'use strict';
|
2018-07-17 08:23:49 +02:00
|
|
|
require('../common');
|
2016-12-31 00:38:06 +01:00
|
|
|
const assert = require('assert');
|
|
|
|
const dns = require('dns');
|
2018-06-11 20:56:33 +02:00
|
|
|
const dnsPromises = dns.promises;
|
|
|
|
|
|
|
|
(async function() {
|
|
|
|
const result = await dnsPromises.resolveTxt('www.microsoft.com');
|
|
|
|
assert.strictEqual(result.length, 0);
|
|
|
|
})();
|
2015-02-25 23:59:29 +01:00
|
|
|
|
|
|
|
dns.resolveTxt('www.microsoft.com', function(err, records) {
|
2017-01-08 16:36:25 +01:00
|
|
|
assert.strictEqual(err, null);
|
|
|
|
assert.strictEqual(records.length, 0);
|
2015-02-25 23:59:29 +01:00
|
|
|
});
|