DNS resolution with timeout and retry control
npm install dns-resolveimport resolve from "dns-resolve";
// resolve A resource record type by default
await resolve("example.com");resolve(hostname[, rrtype, options]):
hostnameHost name to resolve.rrtypeResource record type. Default: 'A'.optionstimeoutQuery timeout in milliseconds, or -1 to use the default timeout.triesThe number of tries the resolver will try contacting each name server before giving up. Default: 4servers<string[]> array of RFC 5952 formatted addresses