lookup_records
Description:
public virtual List<Variant> lookup_records (string rrname, ResolverRecordType record_type, Cancellable? cancellable = null) throws Error
Synchronously performs a DNS record lookup for the given rrname and returns a list of records as
Variant tuples.
See ResolverRecordType for information on what the records contain for each
record_type.
If the DNS resolution fails, throws (if non-null) will be set to a value from ResolverError and null will be returned.
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 |
| rrname |
the DNS name to look up the record for |
| record_type |
the type of DNS record to look up |
| cancellable |
a Cancellable, or null |
Returns:
|
a non-empty List of Variant,
or null on error. You must free each of the records and the list when you are done with it. (You can
use |