The copyright and license notice is already in the LICENSE file. There is no justifiable reason to also require that it be included in every file, since the individual files are not individually distributed except as part of the entire package.
25 lines
502 B
JavaScript
25 lines
502 B
JavaScript
var common = require('../common');
|
|
var assert = require('assert');
|
|
var dns = require('dns');
|
|
var domain = require('domain');
|
|
|
|
var methods = [
|
|
'resolve4',
|
|
'resolve6',
|
|
'resolveCname',
|
|
'resolveMx',
|
|
'resolveNs',
|
|
'resolveTxt',
|
|
'resolveSrv',
|
|
'resolveNaptr',
|
|
'resolveSoa'
|
|
]
|
|
|
|
methods.forEach(function(method) {
|
|
var d = domain.create();
|
|
d.run(function() {
|
|
dns[method]('google.com', function() {
|
|
assert.strictEqual(process.domain, d, method + ' retains domain')
|
|
});
|
|
});
|
|
});
|