lookupByAddress

open fun lookupByAddress(address: InetAddress, cancellable: Cancellable? = null): <Error class: unknown class><String>

Synchronously reverse-resolves @address to determine its associated hostname.

If the DNS resolution fails, @error (if non-null) will be set to a value from #GResolverError.

If @cancellable is non-null, it can be used to cancel the operation, in which case @error (if non-null) will be set to %G_IO_ERROR_CANCELLED.

Return

a hostname (either ASCII-only, or in ASCII-encoded form), or null on error.

Since

2.22

Parameters

address

the address to reverse-resolve

cancellable

a #GCancellable, or null