resolve4Async
external fun resolve4Async(hostname: String): ERROR CLASS: Symbol not found for Promise<ERROR CLASS: Symbol not found for js.array.ReadonlyArray<kotlin/String>>(source)
Uses the DNS protocol to resolve IPv4 addresses (A records) for the hostname. On success, the Promise is resolved with an array of IPv4 addresses (e.g. ['74.125.79.104', '74.125.79.105', '74.125.79.106']).
Since
v10.6.0
Parameters
hostname
Host name to resolve.
external fun resolve4Async(hostname: String, options: ResolveWithTtlOptions): ERROR CLASS: Symbol not found for Promise<ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/RecordWithTtl>>(source)
external fun resolve4Async(hostname: String, options: ResolveOptions): ERROR CLASS: Symbol not found for Promise<kotlin/Any>(source)