labs: use hostname_to_ip where appropriate

Where configuration key names suggest using an IP address, use
hostname_to_ip to convert hostnames to IP addresses.

Change-Id: I8c19cf5d8a677d2fd6f2f79929f838c6c77d96b8
Merge "labs: use hostname_to_ip where appropriate"