diff --git a/src/dns.ts b/src/dns.ts index cc7c464..ee4ea2e 100644 --- a/src/dns.ts +++ b/src/dns.ts @@ -32,7 +32,7 @@ export async function resolve( return e as Error; } - if (res) { + if (res && res?.records.length) { cache.set(cacheId, res); }