Skip to content

Commit

Permalink
dns: export setDefaultResultOrder from 'dns/promises'
Browse files Browse the repository at this point in the history
  • Loading branch information
F3n67u committed May 28, 2022
1 parent 331088f commit 29ff235
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ ObjectDefineProperties(module.exports, {
if (promises === null) {
promises = require('internal/dns/promises');
promises.setServers = defaultResolverSetServers;
promises.setDefaultResultOrder = setDefaultResultOrder;
}
return promises;
}
Expand Down
3 changes: 2 additions & 1 deletion lib/internal/dns/promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const {
validateTries,
emitInvalidHostnameWarning,
getDefaultVerbatim,
setDefaultResultOrder,
} = require('internal/dns/utils');
const { codes, dnsException } = require('internal/errors');
const { toASCII } = require('internal/idna');
Expand Down Expand Up @@ -313,5 +314,5 @@ Resolver.prototype.resolve = function resolve(hostname, rrtype) {
};


module.exports = { lookup, lookupService, Resolver };
module.exports = { lookup, lookupService, Resolver, setDefaultResultOrder };
bindDefaultResolver(module.exports, Resolver.prototype);

0 comments on commit 29ff235

Please sign in to comment.