diff --git a/src/dns.ts b/src/dns.ts index 08541aa..83acfe2 100644 --- a/src/dns.ts +++ b/src/dns.ts @@ -15,8 +15,8 @@ export async function resolve( options?: ResolverOptions, bypassCache = false ): Promise { - let cacheId = `${domain}:{${blake2b( - new TextEncoder().encode(JSON.stringify(options)) + let cacheId = `${domain}:${bufToHex( + blake2b(new TextEncoder().encode(JSON.stringify(options))) )}`; if (cache.has(cacheId)) {