summaryrefslogtreecommitdiff
path: root/lib/dns.js
diff options
context:
space:
mode:
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 cb8b2ca0be..fdfcec2e7e 100644
--- a/lib/dns.js
+++ b/lib/dns.js
@@ -229,7 +229,7 @@ function resolver(bindingName) {
req.oncomplete = onresolve;
req.ttl = !!(options && options.ttl);
var err = this._handle[bindingName](req, name);
- if (err) throw dnsException(err, bindingName);
+ if (err) throw dnsException(err, bindingName, name);
return req;
}
Object.defineProperty(query, 'name', { value: bindingName });