Browse Source

alias: handle `ESERVFAIL`

master
Guillermo Rauch 9 years ago
parent
commit
38d1e4d32f
  1. 2
      lib/alias.js

2
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 {

Loading…
Cancel
Save