diff options
author | Feng Yu <F3n67u@outlook.com> | 2022-06-18 15:54:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-18 15:54:31 +0300 |
commit | dc53c29b97e866c72391cad45905afbb5a5643f1 (patch) | |
tree | 0d41180da489c4915fdac3d5f478eb99047063ed /doc/api | |
parent | fe776b8f42be7aa8d17b6619de3ecd67d7a4d743 (diff) |
dns: export error code constants from `dns/promises`
PR-URL: https://github.com/nodejs/node/pull/43176
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/dns.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/dns.md b/doc/api/dns.md index 297cda2efcd..dc2f578fa05 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -1405,6 +1405,8 @@ Each DNS query can return one of the following error codes: * `dns.ADDRGETNETWORKPARAMS`: Could not find `GetNetworkParams` function. * `dns.CANCELLED`: DNS query cancelled. +The above error codes are also exported by the `dnsPromises` API, e.g., `dnsPromises.NODATA`. + ## Implementation considerations Although [`dns.lookup()`][] and the various `dns.resolve*()/dns.reverse()` |