resolve4

external fun resolve4(hostname: String, callback: (err: ErrnoException?, @R|kotlin/ParameterName|(name = String(addresses)) ERROR CLASS: Symbol not found for js.array.ReadonlyArray<kotlin/String>) -> Unit)(source)

Uses the DNS protocol to resolve a IPv4 addresses (A records) for the hostname. The addresses argument passed to the callback function will contain an array of IPv4 addresses (e.g.['74.125.79.104', '74.125.79.105', '74.125.79.106']).

Since

v0.1.16

Parameters

hostname

Host name to resolve.


external fun resolve4(hostname: String, options: ResolveWithTtlOptions, callback: (err: ErrnoException?, @R|kotlin/ParameterName|(name = String(addresses)) ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/RecordWithTtl>) -> Unit)(source)
external fun resolve4(hostname: String, options: ResolveOptions, callback: (err: ErrnoException?, addresses: Any) -> Unit)(source)
suspend external fun resolve4(hostname: String): ERROR CLASS: Symbol not found for js.array.ReadonlyArray<kotlin/String>(source)
suspend external fun resolve4(hostname: String, options: ResolveWithTtlOptions): ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/RecordWithTtl>(source)
suspend external fun resolve4(hostname: String, options: ResolveOptions): Any(source)