Deno installation
For Deno projects, you can import directly from JSR:deno
The library works across all JavaScript runtimes including browsers, Node.js, CloudFlare Workers, Deno, and Bun.
DNS resolvers
The library automatically selects the best DNS resolver for your runtime environment:| Resolver | JavaScript Runtime | Notes |
|---|---|---|
cloudflare-dns | Works on all | Requires fetch as global |
google-dns | Works on all | Requires fetch as global |
node-dns | Node.js only | Uses Node.js DNS module |
node-dig | Node.js only | Uses dig command |
deno-dns | Deno only | Uses Deno.resolveDns |
Next steps
Quickstart
Learn how to make your first DNS lookup