Properly resolve remote service hostnames.

Not only connect to a properly resolved TCP endpoint, but also save it for
future reference (or whatever magic in the logging service stub).