mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
1.8 KiB
1.8 KiB
Bun implements the node:dns module.
import * as dns from "node:dns";
const addrs = await dns.promises.resolve4("bun.sh", { ttl: true });
console.log(addrs);
// => [{ address: "172.67.161.226", family: 4, ttl: 0 }, ...]