summaryrefslogtreecommitdiff
path: root/doc/api/dns.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/dns.md')
-rw-r--r--doc/api/dns.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/dns.md b/doc/api/dns.md
index b4d078bbb8..d0d3071cc8 100644
--- a/doc/api/dns.md
+++ b/doc/api/dns.md
@@ -191,7 +191,7 @@ added: v0.1.27
- `rrtype` {string} Resource record type. Default: `'A'`.
- `callback` {Function}
- `err` {Error}
- - `records` {string[] | Object[] | string[][] | Object}
+ - `records` {string[] | Object[] | Object}
Uses the DNS protocol to resolve a hostname (e.g. `'nodejs.org'`) into an array
of the resource records. The `callback` function has arguments
@@ -422,7 +422,7 @@ added: v0.1.27
- `hostname` {string}
- `callback` {Function}
- `err` {Error}
- - `addresses` {string[][]}
+ - `addresses` {string[]}
Uses the DNS protocol to resolve text queries (`TXT` records) for the
`hostname`. The `addresses` argument passed to the `callback` function is
@@ -436,7 +436,7 @@ treated separately.
- `hostname` {string}
- `callback` {Function}
- `err` {Error}
- - `ret` {Object[][]}
+ - `ret` {Object[]}
Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query).
The `ret` argument passed to the `callback` function will be an array containing