resolve6

external fun resolve6(hostname: String, callback: (err: ErrnoException?, ReadonlyArray<String>) -> Unit)(source)

Uses the DNS protocol to resolve IPv6 addresses (AAAA records) for the hostname. The addresses argument passed to the callback function will contain an array of IPv6 addresses.

Since

v0.1.16

Parameters

hostname

Host name to resolve.


external fun resolve6(hostname: String, options: ResolveWithTtlOptions, callback: (err: ErrnoException?, ReadonlyArray<RecordWithTtl>) -> Unit)(source)
external fun resolve6(hostname: String, options: ResolveOptions, callback: (err: ErrnoException?, addresses: Any) -> Unit)(source)
suspend external fun resolve6(hostname: String): ReadonlyArray<String>(source)
suspend external fun resolve6(hostname: String, options: ResolveWithTtlOptions): ReadonlyArray<RecordWithTtl>(source)
suspend external fun resolve6(hostname: String, options: ResolveOptions): Any(source)