lookup_by_address


Description:

public virtual string lookup_by_address (InetAddress address, Cancellable? cancellable = null) throws Error

Synchronously reverse-resolves address to determine its associated hostname.

If the DNS resolution fails, throws (if non-null) will be set to a value from ResolverError.

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

Parameters:

this

a Resolver

address

the address to reverse-resolve

cancellable

a Cancellable, or null

Returns:

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