Gio.Resolver.prototype.lookup_by_name_async

function lookup_by_name_async(hostname: String, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for g_resolver_lookup_by_name_async()
}
  

Begins asynchronously resolving hostname to determine its associated IP address(es), and eventually calls callback, which must call Gio.Resolver.prototype.lookup_by_name_finish to get the result. See Gio.Resolver.prototype.lookup_by_name for more details.

Since 2.22

hostname

the hostname to look up the address of

cancellable

a Gio.Cancellable, or null

callback

callback to call after resolution completes