Skip to content

Full Toolkit for Next-Level Domain Analysis

Add "no records" message to DNS map 🙈

Felix Wotschofsky8dc1217ae8f5
diff --git a/components/ResultsGlobe.tsx b/components/ResultsGlobe.tsx
index cca9a43..b9797ce 100644
--- a/components/ResultsGlobe.tsx
+++ b/components/ResultsGlobe.tsx
@@ -111,6 +111,16 @@ const ResultsGlobe: FC<ResultsGlobeProps> = ({ markers }) => {
: ''
}
</div>
+
+ ${
+ d.results.A.length === 0 &&
+ d.results.AAAA.length === 0 &&
+ d.results.CNAME.length === 0
+ ? `
+ <p class="text-xs text-muted-foreground italic">No records found!</p>
+ `
+ : ''
+ }
</div>`;
return el;
}}