- {record.ip ? (
- <>
-
-
- {record.ip}
-
-
- >
- ) : (
- '--'
- )}
+
+
+ {record.ip}
+
+
diff --git a/src/server/api/routers/lookup.ts b/src/server/api/routers/lookup.ts
index a75d616..5a29cde 100644
--- a/src/server/api/routers/lookup.ts
+++ b/src/server/api/routers/lookup.ts
@@ -2,6 +2,7 @@ import isCloudflare from '@authentication/cloudflare-ip';
// @ts-expect-error package has no types
import { getAllRecords } from '@layered/dns-records';
import ky from 'ky';
+import { parseDomain, ParseResultType } from 'parse-domain';
import ping from 'ping';
import { domainSchema, ipSchema } from '@/app/(tools)/schema';
@@ -65,36 +66,42 @@ export const lookupRouter = createTRPCRouter({
})
.json