|
@ -354,7 +354,7 @@ export default class Now extends EventEmitter { |
|
|
if (this._debug) console.timeEnd(`> [debug] #${attempt} GET /whois-ns${fallback ? '-fallback' : ''}`); |
|
|
if (this._debug) console.timeEnd(`> [debug] #${attempt} GET /whois-ns${fallback ? '-fallback' : ''}`); |
|
|
const body = await res.json(); |
|
|
const body = await res.json(); |
|
|
if (200 === res.status) { |
|
|
if (200 === res.status) { |
|
|
if (!body.nameservers && !fallback) { |
|
|
if ((!body.nameservers || body.nameservers.length === 0) && !fallback) { |
|
|
// if the nameservers are `null` it's likely
|
|
|
// if the nameservers are `null` it's likely
|
|
|
// that our whois service failed to parse it
|
|
|
// that our whois service failed to parse it
|
|
|
return this.getNameservers(domain, { fallback: true }); |
|
|
return this.getNameservers(domain, { fallback: true }); |
|
|