diff --git a/doc/api/dns.md b/doc/api/dns.md index 5cd42c14896f1d..e253039b687ef0 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -200,7 +200,7 @@ will contain an array of IPv4 addresses (e.g. rather than an array of strings. The TTL is expressed in seconds. * `callback` {Function} An `(err, result)` callback function. -## dns.resolve6(hostname, callback) +## dns.resolve6(hostname[, options], callback) @@ -209,6 +209,13 @@ Uses the DNS protocol to resolve a IPv6 addresses (`AAAA` records) for the `hostname`. The `addresses` argument passed to the `callback` function will contain an array of IPv6 addresses. +* `hostname` {String} Hostname to resolve. +* `options` {Object} + * `ttl` {Boolean} Retrieve the Time-To-Live value (TTL) of each record. + The callback receives an array of `{ address: '0:1:2:3:4:5:6:7', ttl: 60 }` + objects rather than an array of strings. The TTL is expressed in seconds. +* `callback` {Function} An `(err, result)` callback function. + ## dns.resolveCname(hostname, callback)