doc: add changelogs for dns

PR-URL: https://github.com/nodejs/node/pull/11489
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
pull/11489/head
Anna Henningsen 2017-02-21 23:38:44 +01:00
parent fb9572bf61
commit 049a63601f
No known key found for this signature in database
GPG Key ID: D8B9F5AEAE84E4CF
1 changed files with 14 additions and 0 deletions

View File

@ -65,6 +65,10 @@ resolution.
## dns.lookup(hostname[, options], callback)
<!-- YAML
added: v0.1.90
changes:
- version: v1.2.0
pr-url: https://github.com/nodejs/node/pull/744
description: The `all` option is supported now.
-->
Resolves a hostname (e.g. `'nodejs.org'`) into the first found A (IPv4) or
@ -198,6 +202,11 @@ one of the error codes listed [here](#dns_error_codes).
## dns.resolve4(hostname[, options], callback)
<!-- YAML
added: v0.1.16
changes:
- version: v7.2.0
pr-url: https://github.com/nodejs/node/pull/9296
description: This method now supports passing `options`,
specifically `options.ttl`.
-->
Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the
@ -215,6 +224,11 @@ will contain an array of IPv4 addresses (e.g.
## dns.resolve6(hostname[, options], callback)
<!-- YAML
added: v0.1.16
changes:
- version: v7.2.0
pr-url: https://github.com/nodejs/node/pull/9296
description: This method now supports passing `options`,
specifically `options.ttl`.
-->
Uses the DNS protocol to resolve a IPv6 addresses (`AAAA` records) for the