dns-resolve
v1.0.1
Published
DNS resolution with timeout and retry control.
Downloads
74
Readme
dns-resolve
DNS resolution with timeout and retry control
Installation
npm install dns-resolveUsage
import resolve from "dns-resolve";
// resolve A resource record type by default
await resolve("example.com");API
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
