diff --git a/lib/dns.js b/lib/dns.js index dcf2128e287..15ee6a43625 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -184,11 +184,9 @@ exports.resolve = function(domain, type_, callback_) { if (typeof type_ == 'string') { resolver = resolveMap[type_]; callback = callback_; - } else if (util.isFunction(type_)) { + } else { resolver = exports.resolve4; callback = type_; - } else { - throw new Error('Type must be a string') } if (typeof resolver === 'function') {