gio.network_address.NetworkAddress provides an easy way to resolve a hostname and then attempt to connect to that host, handling the possibility of multiple IP addresses and multiple address families.
Fluent builder for gio.network_address.NetworkAddress
Fluent builder implementation template for gio.network_address.NetworkAddress
Module for NetworkAddress class