Skip to content

Full Toolkit for Next-Level Domain Analysis

Fix nested CNAMEs being shown in results ✅

Felix Wotschofskyaa9e6f9cbb0e
diff --git a/utils/DnsLookup.ts b/utils/DnsLookup.ts
index 7c1e03d..1bc3aaa 100644
--- a/utils/DnsLookup.ts
+++ b/utils/DnsLookup.ts
@@ -161,9 +161,7 @@ class DnsLookup {
if (response.answers?.length) {
const filteredAnswers = response.answers.filter(
- (answer) =>
- // @ts-expect-error
- RECORD_TYPES.includes(answer.type) && answer.type === recordType
+ (answer) => answer.name === domain && answer.type === recordType
) as Extract<Answer, { type: RecordType }>[];
const recordData: RawRecord[] =