From 24fe112ec5558e929724e27c3e6e7f2b5337643f Mon Sep 17 00:00:00 2001 From: Roman Reiss Date: Sat, 26 Sep 2015 15:14:15 +0200 Subject: [PATCH] dns: add missing exports.BADNAME MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the documented but missing DNS error exports.BADNAME. This export has been there before but got lost in a 2012 commit that added more error codes. https://github.com/nodejs/node/pull/3076 will remove the wrong error code exports.ADNAME. PR-URL: https://github.com/nodejs/node/pull/3051 Fixes: https://github.com/nodejs/node/issues/3050 Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Michaël Zasso Reviewed-By: Evan Lucas --- lib/dns.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns.js b/lib/dns.js index 97f730c27b7ea0..e1a2c03385309d 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -331,6 +331,7 @@ exports.NOTIMP = 'ENOTIMP'; exports.REFUSED = 'EREFUSED'; exports.BADQUERY = 'EBADQUERY'; exports.ADNAME = 'EADNAME'; +exports.BADNAME = 'EBADNAME'; exports.BADFAMILY = 'EBADFAMILY'; exports.BADRESP = 'EBADRESP'; exports.CONNREFUSED = 'ECONNREFUSED';