Skip to content

Dns

JSTime implements the node:dns module.

import * as dns from "node:dns";
const addrs = await dns.promises.resolve4("jstime.sh", { ttl: true });
console.log(addrs);
// => [{ address: "172.67.161.226", family: 4, ttl: 0 }, ...]