Gio.Resolver

const Gio = imports.gi.Gio;

let resolver = new Gio.Resolver();
  

Gio.Resolver provides cancellable synchronous and asynchronous DNS resolution, for hostnames (Gio.Resolver.prototype.lookup_by_address, Gio.Resolver.prototype.lookup_by_name and their async variants) and SRV (service) records (Gio.Resolver.prototype.lookup_service).

Gio.NetworkAddress and Gio.NetworkService provide wrappers around Gio.Resolver functionality that also implement Gio.SocketConnectable, making it easy to connect to a remote host/service.

Hierarchy

  • GObject.Object
    • Gio.Resolver