Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeng Yu <F3n67u@outlook.com>2022-06-18 15:54:31 +0300
committerGitHub <noreply@github.com>2022-06-18 15:54:31 +0300
commitdc53c29b97e866c72391cad45905afbb5a5643f1 (patch)
tree0d41180da489c4915fdac3d5f478eb99047063ed /doc/api/dns.md
parentfe776b8f42be7aa8d17b6619de3ecd67d7a4d743 (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/dns.md')
-rw-r--r--doc/api/dns.md2
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()`