File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ records. The type and structure of individual results varies based on `rrtype`:
266
266
| ` 'PTR' ` | pointer records | {string} | [ ` dns.resolvePtr() ` ] [ ] |
267
267
| ` 'SOA' ` | start of authority records | {Object} | [ ` dns.resolveSoa() ` ] [ ] |
268
268
| ` 'SRV' ` | service records | {Object} | [ ` dns.resolveSrv() ` ] [ ] |
269
- | ` 'TXT' ` | text records | {string} | [ ` dns.resolveTxt() ` ] [ ] |
269
+ | ` 'TXT' ` | text records | {string[ ] } | [ ` dns.resolveTxt() ` ] [ ] |
270
270
| ` 'ANY' ` | any records | {Object} | [ ` dns.resolveAny() ` ] [ ] |
271
271
272
272
On error, ` err ` is an [ ` Error ` ] [ ] object, where ` err.code ` is one of the
@@ -479,11 +479,11 @@ added: v0.1.27
479
479
- ` hostname ` {string}
480
480
- ` callback ` {Function}
481
481
- ` err ` {Error}
482
- - ` addresses ` {string[ ] }
482
+ - ` records ` {string[ ] [ ] }
483
483
484
484
Uses the DNS protocol to resolve text queries (` TXT ` records) for the
485
- ` hostname ` . The ` addresses ` argument passed to the ` callback ` function is
486
- is a two-dimensional array of the text records available for ` hostname ` (e.g.,
485
+ ` hostname ` . The ` records ` argument passed to the ` callback ` function is a
486
+ two-dimensional array of the text records available for ` hostname ` (e.g.,
487
487
` [ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ] ` ). Each sub-array contains TXT chunks of
488
488
one record. Depending on the use case, these could be either joined together or
489
489
treated separately.
You can’t perform that action at this time.
0 commit comments