diff --git a/src/rpc/dns.ts b/src/rpc/dns.ts index f2dc687..3c6b331 100644 --- a/src/rpc/dns.ts +++ b/src/rpc/dns.ts @@ -1,6 +1,8 @@ import { isIp } from "../util.js"; import { RpcMethodList } from "./index.js"; +import { createRequire } from "module"; +const require = createRequire(import.meta.url); const bns = require("bns"); const { StubResolver, RecursiveResolver } = bns;