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()`][]|
446
448
447
449
On error, `err` is an [`Error`][] object, where `err.code` is one of the
@@ -541,6 +543,7 @@ will be present on the object:
541
543
|`'PTR'`|`value`|
542
544
|`'SOA'`| Refer to [`dns.resolveSoa()`][]|
543
545
|`'SRV'`| Refer to [`dns.resolveSrv()`][]|
546
+
|`'TLSA'`| Refer to [`dns.resolveTlsa()`][]|
544
547
|`'TXT'`| This type of record contains an array property called `entries` which refers to [`dns.resolveTxt()`][], e.g. `{ entries: ['...'], type: 'TXT' }`|
545
548
546
549
Here is an example of the `ret` object passed to the callback:
@@ -800,6 +803,41 @@ be an array of objects with the following properties:
|`'TXT'`| text records | {string\[]} |[`dnsPromises.resolveTxt()`][]|
1208
1248
1209
1249
On error, the `Promise` is rejected with an [`Error`][] object, where `err.code`
@@ -1268,6 +1308,7 @@ present on the object:
1268
1308
|`'PTR'`|`value`|
1269
1309
|`'SOA'`| Refer to [`dnsPromises.resolveSoa()`][]|
1270
1310
|`'SRV'`| Refer to [`dnsPromises.resolveSrv()`][]|
1311
+
|`'TLSA'`| Refer to [`dnsPromises.resolveTlsa()`][]|
1271
1312
|`'TXT'`| This type of record contains an array property called `entries` which refers to [`dnsPromises.resolveTxt()`][], e.g. `{ entries: ['...'], type: 'TXT' }`|
1272
1313
1273
1314
Here is an example of the result object:
@@ -1450,6 +1491,34 @@ the following properties:
1450
1491
}
1451
1492
```
1452
1493
1494
+
### `dnsPromises.resolveTlsa(hostname)`
1495
+
1496
+
<!-- YAML
1497
+
added: REPLACEME
1498
+
-->
1499
+
1500
+
*`hostname` {string}
1501
+
1502
+
Uses the DNS protocol to resolve certificate associations (`TLSA` records) for
1503
+
the `hostname`. On success, the `Promise` is resolved with an array of objects
1504
+
with these properties:
1505
+
1506
+
*`certUsage`
1507
+
*`selector`
1508
+
*`match`
1509
+
*`data`
1510
+
1511
+
<!-- eslint-skip -->
1512
+
1513
+
```js
1514
+
{
1515
+
certUsage:3,
1516
+
selector:1,
1517
+
match:1,
1518
+
data: [ArrayBuffer]
1519
+
}
1520
+
```
1521
+
1453
1522
### `dnsPromises.resolveTxt(hostname)`
1454
1523
1455
1524
<!-- YAML
@@ -1648,6 +1717,7 @@ uses. For instance, they do not use the configuration from `/etc/hosts`.
0 commit comments