summaryrefslogtreecommitdiff
path: root/lib/dns.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-10-21 15:19:49 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-10-21 15:19:53 -0700
commitd5a21a29f847afcfee9344554ec5e35dda9f8467 (patch)
treeef99b3527339b17d2432ba980a59e68c1a6f2a31 /lib/dns.js
parentefa95c27181a948ccdcbe7ee8bdea8333fb2bb0e (diff)
downloadnode-new-d5a21a29f847afcfee9344554ec5e35dda9f8467.tar.gz
getaddrinfo returns ENOTFOUND for invalid domain names
change test-http-dns-error to reflect this.
Diffstat (limited to 'lib/dns.js')
-rw-r--r--lib/dns.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dns.js b/lib/dns.js
index c149646981..4be48ee672 100644
--- a/lib/dns.js
+++ b/lib/dns.js
@@ -32,7 +32,7 @@ function errnoException(errorno, syscall) {
// For backwards compatibility. libuv returns ENOENT on NXDOMAIN.
if (errorno == 'ENOENT') {
- errorno = 'EBADNAME'
+ errorno = 'ENOTFOUND'
}
e.errno = e.code = errorno;