Gio.Resolver.prototype.lookup_records_async

function lookup_records_async(rrname: String, record_type: Gio.ResolverRecordType, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for g_resolver_lookup_records_async()
}
  

Begins asynchronously performing a DNS lookup for the given rrname, and eventually calls callback, which must call Gio.Resolver.prototype.lookup_records_finish to get the final result. See Gio.Resolver.prototype.lookup_records for more details.

Since 2.34

rrname

the DNS name to lookup the record for

record_type

the type of DNS record to lookup

cancellable

a Gio.Cancellable, or null

callback

callback to call after resolution completes