Resolver.lookupByAddress

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. Since 2.22

class Resolver
string
lookupByAddress

Parameters

address GInetAddress*

the address to reverse-resolve

cancellable Cancellable

a GCancellable, or NULL. [allow-none]

Return Value

Type: string

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

Throws

GException on failure.

Meta