Gio.Resolver::lookup_records

function vfunc_lookup_records(rrname: String, record_type: Gio.ResolverRecordType, cancellable: Gio.Cancellable): Array(GLib.Variant) {
}
  

Synchronously performs a DNS record lookup for the given rrname and returns a list of records as GLib.Variant tuples. See Gio.ResolverRecordType for information on what the records contain for each record_type.

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

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

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

Returns

a GLib.List of GLib.Variant, or null on error. You must free each of the records and the list when you are done with it. (You can use GLib.List.free_full with GLib.Variant.prototype.unref to do this.)