Returns an array of active DNS servers.
Create a new independent resolver for DNS requests.
-
resolver.resolve(hostname[, rrtype], callback): void
-
resolver.resolve(hostname[, rrtype]): Promise
-
resolver.resolve4(hostname[, options], callback): void
-
resolver.resolve4(hostname[, options]): Promise
-
resolver.resolve6(hostname[, options], callback): void
-
resolver.resolve6(hostname[, options]): Promise
-
resolver.resolveCname(hostname, callback): void
-
resolver.resolveCname(hostname): Promise
-
resolver.resolveMx(hostname, callback): void
-
resolver.resolveMx(hostname): Promise
-
resolver.resolveNs(hostname, callback): void
-
resolver.resolveNs(hostname): Promise
-
resolver.resolvePtr(hostname, callback): void
-
resolver.resolvePtr(hostname): Promise
-
resolver.resolveSoa(hostname, callback): void
-
resolver.resolveSoa(hostname): Promise
-
resolver.resolveSrv(hostname, callback): void
-
resolver.resolveSrv(hostname): Promise
-
resolver.resolveTxt(hostname, callback): void
-
resolver.resolveTxt(hostname): Promise
-
resolver.getServers(): DNSStamp[]
-
resolver.setServers(sdns): void
Change the address of internal secure DNS server.
Close encrypted DNS session.