Resolve hostnames in connect.