Introducing the new DNS module

Published by Gustaf S on March 23rd, 2017 under Updates.

We've just added a new module (dns) to the growing JavaScript API. The module currently contains only one function: dns.resolve() but more will be added in time.

You can use the function in the following way:

dns.resolve('', 'a').then((result) => {
    // do something with result.time or result.answers

Feel free to read more in the documentation.