diff --git a/doc/api/dns.md b/doc/api/dns.md index b405dd1078c784..1dc4f50ef668d2 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -588,7 +588,7 @@ earlier ones time out or result in some other error. ## DNS Promises API -> Stability: 1 - Experimental +> Stability: 2 - Stable The `dns.promises` API provides an alternative set of asynchronous DNS methods that return `Promise` objects rather than using callbacks. The API is accessible diff --git a/lib/dns.js b/lib/dns.js index 952ef39006c8e4..df19807d60206d 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -316,13 +316,11 @@ bindDefaultResolver(module.exports, getDefaultResolver()); Object.defineProperties(module.exports, { promises: { configurable: true, - enumerable: false, + enumerable: true, get() { if (promises === null) { promises = require('internal/dns/promises'); promises.setServers = defaultResolverSetServers; - process.emitWarning('The dns.promises API is experimental', - 'ExperimentalWarning'); } return promises; } diff --git a/test/parallel/test-dns-lookup.js b/test/parallel/test-dns-lookup.js index 951e7e17a98b82..4fdfa1f4c22712 100644 --- a/test/parallel/test-dns-lookup.js +++ b/test/parallel/test-dns-lookup.js @@ -27,8 +27,6 @@ common.expectWarning({ 'internal/test/binding': [ 'These APIs are for internal testing only. Do not use them.' ], - // For dns.promises. - 'ExperimentalWarning': 'The dns.promises API is experimental', // For calling `dns.lookup` with falsy `hostname`. 'DeprecationWarning': { DEP0118: 'The provided hostname "false" is not a valid ' +