resolvePtr

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

Uses the DNS protocol to resolve pointer records (PTR records) for the hostname. The addresses argument passed to the callback function will be an array of strings containing the reply records.

Since

v6.0.0


suspend fun resolvePtr(hostname: String): ReadonlyArray<String>(source)