Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2017-09-19 15:51:28 +0300
committerJames M Snell <jasnell@gmail.com>2017-09-25 21:11:11 +0300
commit2326d655de93dd0ee8be9ddfb29ecc06578fb8fb (patch)
treea61bc00e286d93a1755329da2ef15c2800b77ddd /doc/api/dns.md
parent9685b9ff2fa1455177b24e6c24271a358d86b1bb (diff)
doc: fix types and description for dns.resolveTxt
PR-URL: https://github.com/nodejs/node/pull/15472 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc/api/dns.md')
-rw-r--r--doc/api/dns.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/dns.md b/doc/api/dns.md
index 5e9fc97bbc4..d564aea424d 100644
--- a/doc/api/dns.md
+++ b/doc/api/dns.md
@@ -266,7 +266,7 @@ records. The type and structure of individual results varies based on `rrtype`:
| `'PTR'` | pointer records | {string} | [`dns.resolvePtr()`][] |
| `'SOA'` | start of authority records | {Object} | [`dns.resolveSoa()`][] |
| `'SRV'` | service records | {Object} | [`dns.resolveSrv()`][] |
-| `'TXT'` | text records | {string} | [`dns.resolveTxt()`][] |
+| `'TXT'` | text records | {string[]} | [`dns.resolveTxt()`][] |
| `'ANY'` | any records | {Object} | [`dns.resolveAny()`][] |
On error, `err` is an [`Error`][] object, where `err.code` is one of the
@@ -479,11 +479,11 @@ added: v0.1.27
- `hostname` {string}
- `callback` {Function}
- `err` {Error}
- - `addresses` {string[]}
+ - `records` {string[][]}
Uses the DNS protocol to resolve text queries (`TXT` records) for the
-`hostname`. The `addresses` argument passed to the `callback` function is
-is a two-dimensional array of the text records available for `hostname` (e.g.,
+`hostname`. The `records` argument passed to the `callback` function is a
+two-dimensional array of the text records available for `hostname` (e.g.,
`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of
one record. Depending on the use case, these could be either joined together or
treated separately.