Network: add helpers to resolve hostnames to IPs