Skip to content

doc: add esm examples to `node:dns`

Rodrigo Muino Tomonari requested to merge github/fork/mfdebian/docs-dns-esm into main

This PR adds the ESM counterparts of the CJS examples for the DNS documentation.

I've also updated examples like this one to reflect the up-to-date output for the lookup (it's an IPv6 address now).

I've also changed the examples that used example.com for example.org just to be consistent with the rest of the examples and to update the actual response received nowadays.

I've tested every single example and they all work/behave as expected. Best regards!

Merge request reports

Loading