Skip to content

Full Toolkit for Next-Level Domain Analysis

Fix root server resolution failing ✅

Felix Wotschofsky2cdabeb3b2bb
diff --git a/utils/DnsLookup.ts b/utils/DnsLookup.ts
index 1bc3aaa..5191612 100644
--- a/utils/DnsLookup.ts
+++ b/utils/DnsLookup.ts
@@ -44,7 +44,7 @@ class DnsLookup {
const body = await response.text();
// TODO Support IPv6
- const aRecords = body.match(/IN\s+A\s+(.+)/g);
+ const aRecords = body.match(/\sA\s+(.+)/g);
if (!aRecords) {
throw new Error('Failed to fetch root servers');