From 38d1e4d32f824a0c851486c4f5434b8a87edafeb Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Fri, 22 Jul 2016 17:40:12 -0700 Subject: [PATCH] alias: handle `ESERVFAIL` --- lib/alias.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/alias.js b/lib/alias.js index c58bdf9..cedfdc1 100644 --- a/lib/alias.js +++ b/lib/alias.js @@ -282,7 +282,7 @@ export default class Alias extends Now { try { ips = await resolve4(domain); } catch (err) { - if ('ENODATA' === err.code || 'ENOTFOUND' === err.code) { + if ('ENODATA' === err.code || 'ESERVFAIL' === err.code || 'ENOTFOUND' === err.code) { // not errors per se, just absence of records if (this._debug) console.log(`> [debug] No records found for "${domain}"`); } else {