:right-sidebar: True ResolverRecordType =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.34 .. class:: ResolverRecordType :no-contents-entry: The type of record that :func:`~gi.repository.Gio.Resolver.lookup_records` or :func:`~gi.repository.Gio.Resolver.lookup_records_async` should retrieve. The records are returned as lists of :obj:`~gi.repository.GLib.Variant` tuples. Each record type has different values in the variant tuples returned. :const:`~gi.repository.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. :const:`~gi.repository.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. :const:`~gi.repository.Gio.ResolverRecordType.TXT` records are returned as variants with the signature ``(as)``\, representing an array of the strings in the text record. Note: Most TXT records only contain a single string, but `RFC 1035 `__ does allow a record to contain multiple strings. The RFC which defines the interpretation of a specific TXT record will likely require concatenation of multiple strings if they are present, as with `RFC 7208 `__\. :const:`~gi.repository.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 a ``guint32``\, the retry interval as a ``guint32``\, the expire timeout as a ``guint32``\, and the TTL as a ``guint32``\. :const:`~gi.repository.Gio.ResolverRecordType.NS` records are returned as variants with the signature ``(s)``\, representing a string of the hostname of the name server. Fields ------ .. rst-class:: interim-class .. class:: ResolverRecordType :no-index: .. attribute:: MX The type of the None singleton. .. attribute:: NS The type of the None singleton. .. attribute:: SOA The type of the None singleton. .. attribute:: SRV The type of the None singleton. .. attribute:: TXT The type of the None singleton.