diff --git a/doc/api/dns.md b/doc/api/dns.md index 3037f5fcf8a793..8aa8662d6bdc16 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -716,6 +716,14 @@ The following methods from the `dnsPromises` API are available: * [`resolver.reverse()`][`dnsPromises.reverse()`] * [`resolver.setServers()`][`dnsPromises.setServers()`] +### `resolver.cancel()` + + +Cancel all outstanding DNS queries made by this resolver. The corresponding +promises will be rejected with an error with code `ECANCELLED`. + ### `dnsPromises.getServers()`