Gio.ResolverRecordType

The type of record that Gio.Resolver.prototype.lookup_records or Gio.Resolver.prototype.lookup_records_async should retrieve. The records are returned as lists of GLib.Variant tuples. Each record type has different values in the variant tuples returned.

Gio.ResolverRecordType.srv records are returned as variants with the signature '(qqqs)', containing a guint16 with the priority, a guint16 with the weight, a guint16 with the port, and a string of the hostname.

Gio.ResolverRecordType.mx records are returned as variants with the signature '(qs)', representing a guint16 with the preference, and a string containing the mail exchanger hostname.

Gio.ResolverRecordType.txt records are returned as variants with the signature '(as)', representing an array of the strings in the text record.

Gio.ResolverRecordType.soa records are returned as variants with the signature '(ssuuuuu)', representing a string containing the primary name server, a string containing the administrator, the serial as a guint32, the refresh interval as guint32, the retry interval as a guint32, the expire timeout as a guint32, and the ttl as a guint32.

Gio.ResolverRecordType.ns records are returned as variants with the signature '(s)', representing a string of the hostname of the name server.

Since 2.34

ResolverRecordType.SRV

lookup DNS SRV records for a domain

ResolverRecordType.MX

lookup DNS MX records for a domain

ResolverRecordType.TXT

lookup DNS TXT records for a name

ResolverRecordType.SOA

lookup DNS SOA records for a zone

ResolverRecordType.NS

lookup DNS NS records for a domain