diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-10-21 15:19:49 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-10-21 15:19:53 -0700 |
commit | d5a21a29f847afcfee9344554ec5e35dda9f8467 (patch) | |
tree | ef99b3527339b17d2432ba980a59e68c1a6f2a31 /lib/dns.js | |
parent | efa95c27181a948ccdcbe7ee8bdea8333fb2bb0e (diff) | |
download | node-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.js | 2 |
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; |