You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`'TXT'`| text records | {string\[]} |[`dns.resolveTxt()`][]|
448
450
449
451
On error, `err` is an [`Error`][] object, where `err.code` is one of the
@@ -543,6 +545,7 @@ will be present on the object:
543
545
|`'PTR'`|`value`|
544
546
|`'SOA'`| Refer to [`dns.resolveSoa()`][]|
545
547
|`'SRV'`| Refer to [`dns.resolveSrv()`][]|
548
+
|`'TLSA'`| Refer to [`dns.resolveTlsa()`][]|
546
549
|`'TXT'`| This type of record contains an array property called `entries` which refers to [`dns.resolveTxt()`][], e.g. `{ entries: ['...'], type: 'TXT' }`|
547
550
548
551
Here is an example of the `ret` object passed to the callback:
@@ -802,6 +805,41 @@ be an array of objects with the following properties:
|`'TXT'`| text records | {string\[]} |[`dnsPromises.resolveTxt()`][]|
1216
1256
1217
1257
On error, the `Promise` is rejected with an [`Error`][] object, where `err.code`
@@ -1276,6 +1316,7 @@ present on the object:
1276
1316
|`'PTR'`|`value`|
1277
1317
|`'SOA'`| Refer to [`dnsPromises.resolveSoa()`][]|
1278
1318
|`'SRV'`| Refer to [`dnsPromises.resolveSrv()`][]|
1319
+
|`'TLSA'`| Refer to [`dnsPromises.resolveTlsa()`][]|
1279
1320
|`'TXT'`| This type of record contains an array property called `entries` which refers to [`dnsPromises.resolveTxt()`][], e.g. `{ entries: ['...'], type: 'TXT' }`|
1280
1321
1281
1322
Here is an example of the result object:
@@ -1458,6 +1499,34 @@ the following properties:
1458
1499
}
1459
1500
```
1460
1501
1502
+
### `dnsPromises.resolveTlsa(hostname)`
1503
+
1504
+
<!-- YAML
1505
+
added: REPLACEME
1506
+
-->
1507
+
1508
+
*`hostname` {string}
1509
+
1510
+
Uses the DNS protocol to resolve certificate associations (`TLSA` records) for
1511
+
the `hostname`. On success, the `Promise` is resolved with an array of objects
1512
+
with these properties:
1513
+
1514
+
*`certUsage`
1515
+
*`selector`
1516
+
*`match`
1517
+
*`data`
1518
+
1519
+
<!-- eslint-skip -->
1520
+
1521
+
```js
1522
+
{
1523
+
certUsage:3,
1524
+
selector:1,
1525
+
match:1,
1526
+
data: [ArrayBuffer]
1527
+
}
1528
+
```
1529
+
1461
1530
### `dnsPromises.resolveTxt(hostname)`
1462
1531
1463
1532
<!-- YAML
@@ -1658,6 +1727,7 @@ uses. For instance, they do not use the configuration from `/etc/hosts`.
0 commit comments